HiFiLES / HiFiLES-solver

High Fidelity Large Eddy Simulation Solver
Other
172 stars 131 forks source link

Fatal error '$PhysicalNames tag not found!' at ../src/geometry.cpp:1884 #27

Closed popstar0426 closed 9 years ago

popstar0426 commented 9 years ago

Hi:

 I made a 2d C-grid (s809.msh) with ICEM. Only two boundary conditions: pressure-far-field and wall. 
I copied input_cylinder_visc as input and change the mesh name.
Then I got the Fatal error above.
What is wrong with the settings?
Could you kindly have a look with my mesh file and input file itions (I could send them by email to you)?
Could you kindly change it and tell me how to set boundary conditions?

Best regards! Yue Wang

JacobCrabill commented 9 years ago

The "PhysicalNames" tag is a standard section of the Gmsh (.msh) file format pertaining to the naming of boundaries; if it is not found, then there must be something wrong with the format of the mesh that ICEM is giving you. The top of your Gmsh file should look something like this, with your own boundary conditions, of course:

$MeshFormat 2.2 0 8 $EndMeshFormat $PhysicalNames 3 1 2 "Slip_Wall" 1 3 "Char" 2 1 "FLUID" $EndPhysicalNames $Nodes ...etc.

See http://geuz.org/gmsh/doc/texinfo/gmsh.html#MSH-ASCII-file-format for more details about the format. Hope that helps!

-Jacob

popstar0426 commented 9 years ago

Hi:

The former has been solved.  Thank you, Jacob.
However, there is a new error: "0.00% Fatal error 'Negative Jacobian at solution points' at ../src/eles.cpp:4461".
It seems it is still a problem related to mesh?
Is that true? 
Files will be attached.

Best regards! Yue Wang

JacobCrabill commented 9 years ago

Yes, the problem is mostly likely due to an inverted element in the mesh - see https://github.com/HiFiLES/HiFiLES-solver/issues/17.

popstar0426 commented 9 years ago

Hi:

Could you kindly share a .geo file for (2D) NACA 0012 mesh (Gmsh)?

Best regards! Yue

JacobCrabill commented 9 years ago

I don't know of any way to upload a file to the forum/wiki pages here, so I've uploaded a couple meshes that I have to my personal website; you can find them at the bottom of the page here: http://jcrabill.weebly.com/errata.html

Hopefully, they should be relatively straightforward to understand & modify (although they are both fairly large and complex for .geo files). Good luck!