sunfluidh:meshgen_doc
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
sunfluidh:meshgen_doc [2017/12/03 00:35] – yann | sunfluidh:meshgen_doc [2020/01/14 08:49] – [Compilation procedure] witko | ||
---|---|---|---|
Ligne 7: | Ligne 7: | ||
* For Chorus, they are the cell centers. | * For Chorus, they are the cell centers. | ||
* For Sunfluidh, they are the cell-face locations. | * For Sunfluidh, they are the cell-face locations. | ||
- | * Several distribution laws are available | + | * Several distribution laws are available |
* Geometric functions | * Geometric functions | ||
* Hyperbolic tangent functions | * Hyperbolic tangent functions | ||
Ligne 15: | Ligne 15: | ||
<note important> | <note important> | ||
- | | + | |
</ | </ | ||
- | After downloading the Meshgen project from the server forge by means of svn: | + | After downloading the Meshgen project from the server forge by means of svn (svn co –username your_login https:// |
* go to the directory MESHGEN/ | * go to the directory MESHGEN/ | ||
* Run the command make: The executable file meshgen.x is created. | * Run the command make: The executable file meshgen.x is created. | ||
Ligne 24: | Ligne 24: | ||
==== Meshgen settings ==== | ==== Meshgen settings ==== | ||
- | The grid parameters are set in the input data file " | + | The grid parameters are set in the input data file " |
- | * The cell size is variable along the I-direction. | + | |
- | * The I-line is split in two equal parts. | + | |
- | * The function " | + | |
- | * The grid is regular along the J-direction | + | |
- | + | ||
- | + | ||
- | <file txt 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 | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | --------------------------------------- | + | |
- | J-DIRECTION | + | |
- | --------------------------------------- | + | |
- | Choice of the metric system : in meter or dimensionless | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | --------------------------------------- | + | |
- | K-DIRECTION | + | |
- | --------------------------------------- | + | |
- | + | ||
- | & | + | |
- | + | ||
- | END OF FILE | + | |
- | + | ||
- | </ | + | |
==== Data set description ==== | ==== Data set description ==== | ||
Ligne 70: | Ligne 31: | ||
Each direction can be split in several parts (segments) on which a specific distribution law is applied in order to place the discrete nodes.\\ | Each direction can be split in several parts (segments) on which a specific distribution law is applied in order to place the discrete nodes.\\ | ||
Each distribution law is defined by means of namelists that are described at the end of this page. The available functions are (click on it for details): | Each distribution law is defined by means of namelists that are described at the end of this page. The available functions are (click on it for details): | ||
- | * [[Reg_fct_meshgen | Regular function]] (Function_name= | + | * [[Reg_fct_meshgen | Regular function]] (Function_name= |
- | * [[TH1S_meshgen |Hyperbolic tangent function "one side" | + | * [[TH1S_meshgen |Hyperbolic tangent function "one side" |
- | * [[TH2S_meshgen |Hyperbolic tangent function "two sides" | + | * [[TH2S_meshgen |Hyperbolic tangent function "two sides" |
- | * [[GL_meshgen | Gauss-Lobatto distribution ]](Function_Name= | + | * [[GL_meshgen | Gauss-Lobatto distribution ]](Function_Name= |
- | * [[geom1_meshgen | Geometric series "type 1"]] (Function_Name= | + | * [[geom1_meshgen | Geometric series "type 1"]] (Function_Name= |
- | * [[geom2_meshgen | Geometric series "type 2"]] (Function_Name= | + | * [[geom2_meshgen | Geometric series "type 2"]] (Function_Name= |
These functions get a specific data set : | These functions get a specific data set : | ||
Ligne 85: | Ligne 46: | ||
* End_of_Block_Data : logical set to .true. to declare the end of a data structure (by default it set to .false. by the program) | * End_of_Block_Data : logical set to .true. to declare the end of a data structure (by default it set to .false. by the program) | ||
- | __A complete | + | __A template is provided |
<note important> | <note important> | ||
Ligne 93: | Ligne 54: | ||
The block of data must be closed with the special namelist \\ & | The block of data must be closed with the special namelist \\ & | ||
</ | </ | ||
- | ==== Templates for each function ==== | + | |
- | <file template> | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | </ | + | |
==== Generate the grid with Meshgen ==== | ==== Generate the grid with Meshgen ==== | ||
- | After setting the data set in the file " | + | After setting the data set in the file " |
Few questions are asked : | Few questions are asked : | ||
- | * Choice of CFD code : OLORIN or SUNFLUIDH (1) CHORUS (2) ---> | + | * Choice of CFD code : OLORIN or SUNFLUIDH (1) CHORUS (2) ---> |
- | * MPI domain decomposition (1) or not (0) ---> | + | * MPI domain decomposition (1) or not (0) ---> |
For the case of MPI domain decomposition, | For the case of MPI domain decomposition, | ||
Ligne 118: | Ligne 68: | ||
| | ||
| | ||
+ | |||
+ | ==== Output files ==== | ||
The grid data are recorded in the appropriate files that depend on the code previously selected: | The grid data are recorded in the appropriate files that depend on the code previously selected: | ||
* For Chorus, maille_yyyyy.dat : data are recorded in binary format. " | * For Chorus, maille_yyyyy.dat : data are recorded in binary format. " | ||
* For sunfluidh : | * For sunfluidh : | ||
- | * For sequential computation, | + | |
- | * For domain decomposition (MPI parallelization), | + | |
==== Check the grid ==== | ==== Check the grid ==== |
sunfluidh/meshgen_doc.txt · Dernière modification : 2020/10/27 16:31 de yann