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/03 17:12] – 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 | ||
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 30: | Ligne 30: | ||
In the data file, each block of data is attributed to a direction (I,J or K).\\ | 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 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.\\ |
- | * [[Reg_fct_meshgen | Regular function]] | + | 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 |
- | * [[TH1S_meshgen |Hyperbolic tangent function "one side" | + | {{ : |
- | * [[TH2S_meshgen |Hyperbolic tangent function "two sides" | + | |
- | * [[GL_meshgen | Gauss-Lobatto distribution ]](Function_Name= GAUSS_LOBATTO_MESH) | + | |
- | * [[geom1_meshgen | + | |
- | * [[geom2_meshgen | Geometric series "type 2"]] (Function_Name= GEOMETRIC_SERIE_2_MESH) | + | |
- | These functions get a specific data set : | + | |
- | * Number_of_Cells : Number of cells over the segment (for all functions). | + | The available distribution functions are (click on function name to get details): |
- | * Length | + | * [[Reg_fct_meshgen | Regular function]] (Function_name= REGULAR) |
- | * Left_Cell_Size | + | * [[TH1S_meshgen |Hyperbolic tangent function "one side" |
- | * Right_Cell_Size : Reference size of the cell placed at the right tip of the segment (for hyperbolic function "two sides" only) | + | * [[TH2S_meshgen |Hyperbolic tangent function "two sides" |
- | * Reverse_Ordering : Reverse the ordering of the distribution if set to .true. | + | * [[GL_meshgen | Gauss-Lobatto distribution ]](Function_Name= GAUSS_LOBATTO) |
- | * End_of_Block_Data : logical set to .true. to declare | + | * [[geom1_meshgen | Geometric series "type 1"]] (Function_Name= GEOMETRIC_SERIE_1) |
+ | * [[geom2_meshgen | Geometric series "type 2"]] (Function_Name= GEOMETRIC_SERIE_2) | ||
+ | |||
+ | These functions get some parameters | ||
+ | * **Number_of_Cells** : Number of cells over the segment (for all functions). | ||
+ | * **Length** : Length of the segment (for all functions). | ||
+ | * **Left_Cell_Size** : Reference size of the cell placed at the left tip of the segment (for all functions except the regular function and geometric series "Type 1") | ||
+ | * **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 | ||
__A template is provided **[[meshgen_templates|here]]**__. | __A template is provided **[[meshgen_templates|here]]**__. | ||
Ligne 60: | Ligne 65: | ||
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 68: | Ligne 73: | ||
| | ||
| | ||
+ | |||
+ | ==== 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: |
sunfluidh/meshgen_doc.1512317575.txt.gz · Dernière modification : 2017/12/03 17:12 de yann