Difference between revisions of "NetgenNeutralToFoam"
From OpenFOAMWiki
m |
|||
Line 1: | Line 1: | ||
Import a mesh generated by Netgen ([http://www.hpfem.jku.at/netgen/index.html]) to OpenFOAM. | Import a mesh generated by Netgen ([http://www.hpfem.jku.at/netgen/index.html]) to OpenFOAM. | ||
− | + | # Export the file from netgen as neutral file. | |
− | + | # Create a new case with foamX: Case Browser -> right click -> Create Case | |
− | + | # Convert the mesh file to openFoam: $ netgenNeutralToFoam <root> <caseName> (Path) <meshFile> example: netgenNeutralToFoam /home/user test /home/user/OpenFOAM/Beispiele/ROHR | |
− | + | # Edit the boundary file and set proper names. That is, change patch by wall, inlet, etc | |
− | + | # In FoamX: Edit the field dictionary and save. | |
− | + | # Before the case is run it is a good idea to view the mesh to check for any errors. The mesh is viewed in paraFoam, the post-processing tool supplied with OpenFOAM. The paraFoam post-processing is started by typing at a command prompt paraFoam <root> <case> This launches the ParaView window. | |
− | example: netgenNeutralToFoam /home/user test /home/user/OpenFOAM/Beispiele/ROHR | + | # The user should immediately click the Accept button which will bring up an image of the |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | mesh is viewed in paraFoam, the post-processing tool supplied with OpenFOAM. The paraFoam | + | |
− | post-processing is started by typing at a command prompt paraFoam <root> <case> This | + | |
− | launches the ParaView window | + | |
− | + | ||
− | + | ||
case geometry in the image display window. | case geometry in the image display window. | ||
[[Category:Mesh conversion utilities]] | [[Category:Mesh conversion utilities]] |
Revision as of 13:26, 25 November 2009
Import a mesh generated by Netgen ([1]) to OpenFOAM.
- Export the file from netgen as neutral file.
- Create a new case with foamX: Case Browser -> right click -> Create Case
- Convert the mesh file to openFoam: $ netgenNeutralToFoam <root> <caseName> (Path) <meshFile> example: netgenNeutralToFoam /home/user test /home/user/OpenFOAM/Beispiele/ROHR
- Edit the boundary file and set proper names. That is, change patch by wall, inlet, etc
- In FoamX: Edit the field dictionary and save.
- Before the case is run it is a good idea to view the mesh to check for any errors. The mesh is viewed in paraFoam, the post-processing tool supplied with OpenFOAM. The paraFoam post-processing is started by typing at a command prompt paraFoam <root> <case> This launches the ParaView window.
- The user should immediately click the Accept button which will bring up an image of the
case geometry in the image display window.