<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried to use PythonAnnotation but it only seems to work properly with FieldVariables.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So for instance, with field variables of REACTZ_901 and REACTZ_902, the following expressions work and display the values as expected<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">REACTZ_901 displays array of values for all timesteps<o:p></o:p></p>
<p class="MsoNormal">REACTZ_901[t_index] displays single number (no brackets)<o:p></o:p></p>
<p class="MsoNormal">Int(REACTZ_901) (error)<o:p></o:p></p>
<p class="MsoNormal">Int(REACTZ_901[t_index] displays truncated integer value (no brackets)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To try to work with CellData I have made an ExtractSelection of a
<span style="color:red">single Cell</span>. I have a Cell variable of FBFORCE1<o:p></o:p></p>
<p class="MsoNormal">I want to use PythonAnnotation to print out the FBFORCE1 for that cell over time (with formatting)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">FBFORCE1 [VTKArray([154.2])] shouldn’t this have a value for each timestep?<o:p></o:p></p>
<p class="MsoNormal">FBFORCE1[t_index] (error)<o:p></o:p></p>
<p class="MsoNormal">FBFORCE1[0] [ 154.2]<o:p></o:p></p>
<p class="MsoNormal">FBFORCE1[1] (error)<o:p></o:p></p>
<p class="MsoNormal">Int(FBFORCE1) (error)<o:p></o:p></p>
<p class="MsoNormal">Int(FBFORCE1[0]) (error) <o:p>
</o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2<sup>nd</sup> try – Ran PythonAnnotation on an entire file – many cells, with following results<o:p></o:p></p>
<p class="MsoNormal">FBFORCE1 VTKArray([ value1, value2 ………value_final]) – seems like 1 value per timestep (shouldn’t there be array of # of cells by # of timesteps?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">FBFORCE1[t_index] [131.4] - again- should be array of # of cells? Which cell is this<o:p></o:p></p>
<p class="MsoNormal">FBFORCE1[t_index][0] (error)<o:p></o:p></p>
<p class="MsoNormal">Int(FBFORCE1[t_index]) error)
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">So it seems that Field Variables are numpy-friendly in that formatting works with them, while Cell Variables are still VTK Array variables and not numpy-friendly.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It’s possible that I am completely missing something here, but it seems Cell Variables are not very useable in the PythonAnnotation. Is there a way for me to Annotate with individual cell values, either by running PythonAnnotation on a
single cell, or by manipulating the variables which are available in the filter?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">At this point I don’t know why Cell and Point Variables are included in the filter since I can only figure out how to use Field Variables<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for any hints<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dennis <o:p></o:p></p>
</div>
</body>
</html>