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/02 15:56] – yann | sunfluidh:meshgen_doc [2017/12/03 17:10] – yann | ||
---|---|---|---|
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 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 " |
- | <file txt data_meshgen.dat> | + | |
+ | ==== Data set description ==== | ||
- | ============================================================================================================== | + | In the data file, each block of data is attributed |
- | DATA FILE FOR THE MESH GENERATOR MESHGEN (DESCRIPTIONS OF DATA ARE GIVEN BELOW) | + | Each direction can be split in several parts (segments) |
- | ============================================================================================================== | + | 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= REGULAR_MESH) |
- | Blocks | + | * [[TH1S_meshgen |Hyperbolic tangent function "one side" |
- | See below the TEMPLATES to select your own block of data associated | + | * [[TH2S_meshgen |Hyperbolic tangent function |
- | ------------------------------------------------------------------------------------------------------------- | + | |
- | --------------------------------------- | + | * [[geom1_meshgen | Geometric series |
- | I-DIRECTION | + | * [[geom2_meshgen | Geometric series |
- | --------------------------------------- | + | |
- | Choice | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | --------------------------------------- | + | |
- | J-DIRECTION | + | |
- | --------------------------------------- | + | |
- | Choice of the metric system : in meter or dimensionless | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | --------------------------------------- | + | |
- | K-DIRECTION | + | |
- | --------------------------------------- | + | |
- | & | + | These functions get a specific data set : |
+ | * Number_of_Cells : Number of cells over the segment (for all functions). | ||
+ | * Length | ||
+ | * Left_Cell_Size | ||
+ | * Right_Cell_Size : Reference size of the cell placed at the right tip of the segment (for hyperbolic function "two sides" only) | ||
+ | * Reverse_Ordering : Reverse the ordering of the distribution if set to .true. | ||
+ | * 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 template is provided **[[meshgen_templates|here]]**__. | ||
+ | |||
+ | <note important> | ||
+ | For each direction, the block of data must start with the namelist \\ & | ||
+ | * Type_of_Metric= 0 specifies a usual metric | ||
+ | * Type_of_Metric= 1 specifies an angular metric. The unit is the degree. | ||
+ | The block of data must be closed with the special namelist \\ & | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Generate the grid with Meshgen ==== | ||
+ | |||
+ | After setting the data set in the file " | ||
+ | Few questions are asked : | ||
+ | * Choice of CFD code : OLORIN or SUNFLUIDH (1) CHORUS (2) ---> tape the correct option | ||
+ | * MPI domain decomposition (1) or not (0) ---> write the selected option | ||
+ | |||
+ | For the case of MPI domain decomposition, | ||
+ | * number of domain decomposition per direction | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | 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 sunfluidh : | ||
+ | * For sequential computation, | ||
+ | * For domain decomposition (MPI parallelization), | ||
+ | |||
+ | ==== Check the grid ==== | ||
+ | |||
+ | For checking the grid features, a specific file named " | ||
- | END OF FILE | ||
- | </ |
sunfluidh/meshgen_doc.txt · Dernière modification : 2020/10/27 16:31 de yann