sunfluidh:meshgen_doc
Ceci est une ancienne révision du document !
Table des matières
Meshgen : A mesh generator for cartesian grid
Meshgen is a modest mesh generator for cartesian grid. The principle is very simple :
- Each direction {x,y,z} (or {r,$\theta$,z} in cylindrical geometry) is represented by a line.
- Each line can be splitted in several parts over which a distribution law is applied in order to build the discretization nodes.
- Following the CFD code used, these nodes have different definitions :
- For Chorus, they are the cell centers.
- For Sunfluidh, they are the cell-face locations.
- Several distribution laws are available
- Geometric functions
- Hyperbolic tangent functions
- Cosine function
Compilation procedure
For the class 5AF32, this step is automatically made by the install procedure.
After downloading the Meshgen project from the server forge by means of svn:
- go to the directory MESHGEN/TRUNK/SOURCES
- Run the command make: The executable file meshgen.x is created.
Meshgen settings
The grid parameters are set in the input data file “data_meshgen.dat”.
- data_meshgen.dat
============================================================================================================== DATA FILE FOR THE MESH GENERATOR MESHGEN (DESCRIPTIONS OF DATA ARE GIVEN BELOW) ============================================================================================================== ------------------------------------------------------------------------------------------------------------- Blocks of data are associated to segments along a specific direction (There are as many blocks as segments) See below the TEMPLATES to select your own block of data associated to the selected distribution law) ------------------------------------------------------------------------------------------------------------- --------------------------------------- I-DIRECTION --------------------------------------- Choice of the metric system : in meter or dimensionless (0) - angular in degrees (1) : &METRIC_UNIT Type_of_Metric= 0 / &MESH_FUNCTION_DATA Function_Name="TANH_ONE_SIDE" Number_of_Cells= 64 Length= 0.5 Left_Cell_Size= 1.2d-03 Reverse_Ordering= .false. / &MESH_FUNCTION_DATA Function_Name="TANH_ONE_SIDE" Number_of_Cells= 64 Length= 0.5 Left_Cell_Size= 1.2d-03 Reverse_Ordering= .true. / &MESH_FUNCTION_DATA End_of_Data_Block = .true./ --------------------------------------- J-DIRECTION --------------------------------------- Choice of the metric system : in meter or dimensionless (0) - angular in degrees (1) : &METRIC_UNIT Type_of_Metric= 0 / &MESH_FUNCTION_DATA Function_Name="REGULAR" Number_of_Cells= 128 Length= 1.0 Reverse_Ordering= .false. / &MESH_FUNCTION_DATA End_of_Data_Block = .true./ --------------------------------------- K-DIRECTION --------------------------------------- &MESH_FUNCTION_DATA End_of_Data_Block = .true./ END OF FILE
Traductions de cette page:
- fr
sunfluidh/meshgen_doc.1512226586.txt.gz · Dernière modification : 2017/12/02 15:56 de yann