<div>š</div><div>Hi,</div><h2>-<span style="font-size:small;">you apply the line physical surface to the _.geo_ file, See keyword "Physical" in tutorials and manual.</span></h2><div>-then convert with gmsh to .msh and then convert to a format, in that the solver can import the so called pe: physical entities aka boundary conditions. š</div><div>-ElmerGrid does this for example, do not know Openfoam, though.</div><div>Regards</div><div>š</div><div>29.01.2016, 22:54, "AnTu Xie" <antuxie@tamu.edu>:</div><blockquote type="cite"><div>Hi,<div><br /><div>I'm using the finite element library deal.II to generate some '.msh' files, and exporting through deal.II. I find that all I can export is the mesh itself, with no boundaries define.dš</div><div>š</div><div>I would like to modify the meshes by adding in boundary conditions through using physical entities in gmsh, since I want to import these meshes into OpenFOAM for later manipulation. However, I can't actually find any way to do this. Is it possible to do this in gmsh somehow? I find that all I can do is add a 'volume' physical entity which takes up the entire volume.</div><div>š</div><div>The .msh basically looks like:</div><div>$MeshFormat</div><div><div>2.2 0 8</div><div>$EndMeshFormat</div><div>$Nodes</div><div>429</div><div>1 0 0.<span>333333 0</span>.333333</div><div>2 0.<span>333333 0</span>.<span>333333 0</span>.333333</div></div><div>.</div><div>.</div><div>.</div><div><div>428 0.<span>416667 0</span>.<span>583333 0</span>.75</div><div>429 0.<span>583333 0</span>.<span>583333 0</span>.75</div><div>$EndNodes</div><div>$Elements</div><div>248</div><div><span>1 5 2 2 1 13 107 197 63 110 304 310 199</span></div><div>.</div></div><div>.</div><div>.</div><div><div><span>248 5 2 2 1 392 100 260 429 349 11 105 393</span></div><div>$EndElements</div></div><div>š</div><div>š</div><div>Sincerely,</div><div>James Xie</div></div></div>,<p>_______________________________________________<br />gmsh mailing list<br /><a href="mailto:gmsh@onelab.info">gmsh@onelab.info</a><br /><a href="http://onelab.info/mailman/listinfo/gmsh">http://onelab.info/mailman/listinfo/gmsh</a></p></blockquote>