Difference between revisions of "NetgenNeutralToFoam"

From OpenFOAMWiki
(Use new structure)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
Import a mesh generated by Netgen ([http://www.hpfem.jku.at/netgen/index.html]) to OpenFOAM.
+
==Name==
 +
<tt>netgenNeutralToFoam</tt> - Converts neutral file format as written by Netgen v4.4
  
1. export the file from netgen as neutral file
+
{{VersionInfo}}{{Version2.1}}
  
2. create a new case with foamX: Case Browser -> right click -> Create Case 
+
==Synopsis==
 +
netgenNeutralToFoam [OPTIONS] FILEMESH
  
3. Convert the mesh file to openFoam: $ netgenNeutralToFoam <root> <caseName> (Path) <meshFile>
+
==Description==
 +
Convert a mesh file FILEMESH created by Netgen v4.4 to foam format.
  
example: netgenNeutralToFoam /home/user test /home/user/OpenFOAM/Beispiele/ROHR
+
'''-parallel'''
 +
:Run in parallel
 +
'''-roots''' ''"(DIR1 [...DIRN])"''
 +
:Directories in which the data are distributed
 +
'''-case''' ''DIR''
 +
:Execute the command on the case directory ''DIR''. If not provided, use the current directory
 +
'''-noFunctionObjects'''
 +
:Skip the execution of the [[functionObjects]]
 +
'''-help'''
 +
:Display the help and exit
  
4. Edit the boundary file and set proper names. That is, change patch by wall, inlet, etc
+
==Step by step example==
 
+
Import a mesh generated by Netgen ([http://www.hpfem.jku.at/netgen/index.html]) to OpenFOAM.
5. In FoamX: Edit the field dictionary and save.
+
 
+
6. 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
+
  
7. The user should immediately click the Accept button which will bring up an image of the  
+
# Export the file from netgen as neutral file.
case geometry in the image display window.
+
# 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.
  
 
[[Category:Mesh conversion utilities]]
 
[[Category:Mesh conversion utilities]]

Latest revision as of 09:19, 24 August 2012

1 Name

netgenNeutralToFoam - Converts neutral file format as written by Netgen v4.4

Valid versions: OF Version 21.png

2 Synopsis

netgenNeutralToFoam [OPTIONS] FILEMESH

3 Description

Convert a mesh file FILEMESH created by Netgen v4.4 to foam format.

-parallel

Run in parallel

-roots "(DIR1 [...DIRN])"

Directories in which the data are distributed

-case DIR

Execute the command on the case directory DIR. If not provided, use the current directory

-noFunctionObjects

Skip the execution of the functionObjects

-help

Display the help and exit

4 Step by step example

Import a mesh generated by Netgen ([1]) to OpenFOAM.

  1. Export the file from netgen as neutral file.
  2. Create a new case with foamX: Case Browser -> right click -> Create Case
  3. Convert the mesh file to openFoam: $ netgenNeutralToFoam <root> <caseName> (Path) <meshFile> example: netgenNeutralToFoam /home/user test /home/user/OpenFOAM/Beispiele/ROHR
  4. Edit the boundary file and set proper names. That is, change patch by wall, inlet, etc
  5. In FoamX: Edit the field dictionary and save.
  6. 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.
  7. The user should immediately click the Accept button which will bring up an image of the case geometry in the image display window.