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édente | ||
sunfluidh:meshgen_doc [2017/12/02 16:29] – yann | sunfluidh:meshgen_doc [2020/10/27 16:31] (Version actuelle) – yann | ||
---|---|---|---|
Ligne 6: | Ligne 6: | ||
* Following the CFD code used, these nodes have different definitions : | * Following the CFD code used, these nodes have different definitions : | ||
* 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. | + | ==== Data set description ==== |
- | * The function " | + | |
- | * The grid is regular along the J-direction | + | |
+ | In the data file, each block of data is attributed to a direction (I,J or K).\\ | ||
+ | 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.\\ | ||
+ | For illustrating how that works, let consider a domain length $L$ (in an arbitrary direction) split in $2$ parts with lengths $L_1$ and $L_2$, respectively (see the figure below). Discrete coordinates are distributed with a given law (by considering here $N_1=6$ for the first segment, $N_2=8$ for the second one). \\ The origin coordinate is not included in the procedure. It is added by the code.\\ The coordinate located at the upper end of the segment belongs to this segment, not to the following one. | ||
+ | {{ : | ||
- | <file txt data_meshgen.dat> | ||
- | ============================================================================================================== | + | The available distribution functions |
- | DATA FILE FOR THE MESH GENERATOR MESHGEN (DESCRIPTIONS OF DATA ARE GIVEN BELOW) | + | * [[Reg_fct_meshgen | Regular function]] |
- | ============================================================================================================== | + | * [[TH1S_meshgen |Hyperbolic tangent function "one side" |
- | ------------------------------------------------------------------------------------------------------------- | + | * [[TH2S_meshgen |Hyperbolic tangent function |
- | Blocks of data are associated to segments along a specific direction | + | |
- | See below the TEMPLATES | + | * [[geom1_meshgen | Geometric series |
- | ------------------------------------------------------------------------------------------------------------- | + | * [[geom2_meshgen | Geometric series |
- | --------------------------------------- | + | |
- | I-DIRECTION | + | |
- | --------------------------------------- | + | |
- | Choice of the metric system : in meter or dimensionless | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | --------------------------------------- | + | |
- | J-DIRECTION | + | |
- | --------------------------------------- | + | |
- | Choice of the metric system : in meter or dimensionless | + | |
- | & | + | |
- | & | + | |
- | & | + | |
- | --------------------------------------- | + | |
- | K-DIRECTION | + | |
- | --------------------------------------- | + | |
- | & | + | These functions get some parameters : |
+ | * **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 specify the end of a data structure (by default it set to .false. by the program) | ||
- | END OF FILE | + | __A template is provided **[[meshgen_templates|here]]**__. |
- | </file> | + | <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 \\ & | ||
+ | </note> | ||
- | ==== Data set description ==== | ||
- | In the data file, each block of data is attributed to a direction (I,J or K).\\ | + | ==== Generate the grid with Meshgen ==== |
- | 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 associated to a function defined by a namelist. The available functions | + | After setting |
- | | + | Few questions |
- | * Hyperbolic tangent function "one side" \\ (Function_Name= TANH_ONE_SIDE_MESH) | + | |
- | | + | |
- | | + | |
- | | + | For the case of MPI domain decomposition, |
- | | + | |
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | ==== Output files ==== | ||
+ | |||
+ | The grid data are recorded in the appropriate files that depend on the code previously selected: | ||
+ | | ||
+ | * For sunfluidh : | ||
+ | * __**For sequential computation**__, | ||
+ | * __**For domain decomposition (MPI parallelization)**__, | ||
+ | |||
+ | ==== Check the grid ==== | ||
+ | |||
+ | For checking the grid features, a specific file named "report_meshgen.d" | ||
- | 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" and geometric series "Type 1" 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) | ||
sunfluidh/meshgen_doc.txt · Dernière modification : 2020/10/27 16:31 de yann