<div dir="ltr"><div><span style="font-family:arial,helvetica,sans-serif"><font size="2">Good Morning,<br><br>I am trying to update the visualization portion of an HPC fluid model.
Used to use legacy VTK but its starting to reach its limits. I read that
HDF5 was good for large data sets and that it could be viewed in
Paraview with XDMF. However, it seems there are so few examples online. I
got a long rectangular channel to show up but the pressure data in it
is wrong. Hopefully if I can solve this, then it will help me update my
code along with anybody else who might be struggling with the same
problem.<br><br></font></span></div><span style="font-family:arial,helvetica,sans-serif"><font size="2">Is
the formatting for this XDMF file incorrect, or is there some other
problem I'm not considering? I can attach the HDF5 file too if its
necessary.<br></font></span><pre class="gmail-m_-8913890625462947958gmail-lang-py gmail-m_-8913890625462947958gmail-prettyprint gmail-m_-8913890625462947958gmail-prettyprinted"><span style="font-family:arial,helvetica,sans-serif"><font size="2"><code><font size="4"><span style="font-family:times new roman,serif"><span class="gmail-m_-8913890625462947958gmail-pun"><?</span><span class="gmail-m_-8913890625462947958gmail-pln">xml version</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"1.0"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-pun">?></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><!</span><span class="gmail-m_-8913890625462947958gmail-pln">DOCTYPE </span><span class="gmail-m_-8913890625462947958gmail-typ">Xdmf</span><span class="gmail-m_-8913890625462947958gmail-pln"> SYSTEM </span><span class="gmail-m_-8913890625462947958gmail-str">"Xdmf.dtd"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-pun">[]></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">Xdmf</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">Domain</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">Grid</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Name</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"my_Grid"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">GridType</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"Uniform"</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">Topology</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">TopologyType</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"3DCoRectMesh"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Dimensions</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"91 19 19"</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">Topology</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">Geometry</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">GeometryType</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"Origin_DxDyDz"</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">DataItem</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Dimensions</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"3"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">NumberType</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"Float"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Format</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"XML"</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-lit">0</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-lit">0</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-lit">0</span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">DataItem</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">DataItem</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Dimensions</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"3"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">NumberType</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"Float"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Format</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"XML"</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-lit">1</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-lit">1</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-lit">1</span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">DataItem</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">Geometry</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">Attribute</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Name</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"pressure"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">AttributeType</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"Scalar"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Center</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"Node"</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"><</span><span class="gmail-m_-8913890625462947958gmail-typ">DataItem</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Dimensions</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"91 19 19"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">NumberType</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"Float"</span><span class="gmail-m_-8913890625462947958gmail-pln"> </span><span class="gmail-m_-8913890625462947958gmail-typ">Format</span><span class="gmail-m_-8913890625462947958gmail-pun">=</span><span class="gmail-m_-8913890625462947958gmail-str">"HDF"</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
output</span><span class="gmail-m_-8913890625462947958gmail-pun">.</span><span class="gmail-m_-8913890625462947958gmail-pln">h5</span><span class="gmail-m_-8913890625462947958gmail-pun">:/</span><span class="gmail-m_-8913890625462947958gmail-pln">pres_group</span><span class="gmail-m_-8913890625462947958gmail-pun">/</span><span class="gmail-m_-8913890625462947958gmail-pln">presmag
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">DataItem</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">Attribute</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">Grid</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">Domain</span><span class="gmail-m_-8913890625462947958gmail-pun">></span><span class="gmail-m_-8913890625462947958gmail-pln">
</span><span class="gmail-m_-8913890625462947958gmail-pun"></</span><span class="gmail-m_-8913890625462947958gmail-typ">Xdmf</span></span></font><span class="gmail-m_-8913890625462947958gmail-pun"><font size="4"><span style="font-family:times new roman,serif">><br><br></span></font></span></code></font></span></pre><pre class="gmail-m_-8913890625462947958gmail-lang-py gmail-m_-8913890625462947958gmail-prettyprint gmail-m_-8913890625462947958gmail-prettyprinted"><span style="font-family:arial,helvetica,sans-serif"><font size="2"><code><span class="gmail-m_-8913890625462947958gmail-pun"><font size="4"><span style="font-family:times new roman,serif">Thanks<br></span></font></span></code></font></span></pre></div>