Outils pour utilisateurs

Outils du site


sunfluidh:meshgen_doc

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
sunfluidh:meshgen_doc [2017/12/02 15:55] yannsunfluidh:meshgen_doc [2020/10/27 16:24] 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 ($x_i, y_i, z_i$ see [[sunfluidh:sunfluidh_tools|the page "Overview ...", section "stagerred grid"]] for more details)
-  * 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>
- **For the class 5AF32, this step is automatically made by the install procedure.**+ **For Sorbonne universite class, this step is automatically made by the install procedure.**
 </note> </note>
  
-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://forge.limsi.fr/svn/MESHGEN/TRUNK)
    * go to the directory MESHGEN/TRUNK/SOURCES    * go to the directory MESHGEN/TRUNK/SOURCES
    * 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 "data_meshgen.dat"+The grid parameters are set in the input data file "data_meshgen.dat"A simple example of a 2D grid is given __**[[meshgen_simple_example|here]]**__: 
-<file txt data_meshgen.dat>+   
 +==== Data set description ====
  
-============================================================================================================== +In the data file, each block of data is attributed to a direction (I,J or K).\\ 
-            DATA FILE FOR THE MESH GENERATOR MESHGEN (DESCRIPTIONS OF DATA ARE GIVEN BELOW+Each direction can be split in several parts (segmentson 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 domain length $L$ (in an arbitrary direction) split in $2$ parts with lengths $L_1$ and $L_2$, respectively. 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. 
-Blocks of data are associated to segments along specific direction (There are as many blocks as segments) +{{ :sunfluidh:mesh_distribution_1.jpg?direct&600 |}} 
-See below the TEMPLATES to select your own block of data associated to the selected distribution law) + 
-------------------------------------------------------------------------------------------------------------- + 
---------------------------------------- +The available functions are (click on function name to get details): 
-I-DIRECTION +   * [[Reg_fct_meshgen | Regular function]] (Function_nameREGULAR) 
---------------------------------------- +   * [[TH1S_meshgen |Hyperbolic tangent function "one side"]] (Function_Name= TANH_ONE_SIDE
-Choice of the metric system :  in meter or dimensionless  (0 - angular in degrees (1)     +   * [[TH2S_meshgen |Hyperbolic tangent function "two sides"]] (Function_NameTANH_TWO_SIDES) 
-&METRIC_UNIT         Type_of_Metric0 / +   * [[GL_meshgen | Gauss-Lobatto distribution ]](Function_NameGAUSS_LOBATTO) 
-&MESH_FUNCTION_DATA Function_Name="TANH_ONE_SIDE" Number_of_Cells64   Length= 0.5  Left_Cell_Size= 1.2d-03 Reverse_Ordering.false. / +   * [[geom1_meshgen | Geometric series "type 1"]] (Function_Name= GEOMETRIC_SERIE_1) 
-&MESH_FUNCTION_DATA Function_Name="TANH_ONE_SIDENumber_of_Cells64   Length= 0.5  Left_Cell_Size1.2d-03 Reverse_Ordering.true. / +   * [[geom2_meshgen | Geometric series "type 2"]] (Function_NameGEOMETRIC_SERIE_2) 
-&MESH_FUNCTION_DATA End_of_Data_Block = .true./ + 
---------------------------------------- +These functions get a specific data set : 
-J-DIRECTION +   * Number_of_Cells : Number of cells over the segment (for all functions). 
---------------------------------------- +   Length          : Length of the segment (for all functions). 
-Choice of the metric system :  in meter or dimensionless  (0)  - angular in degrees (1)     : +   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") 
-&METRIC_UNIT         Type_of_Metric= 0 / +   * Right_Cell_Size : Reference size of the cell placed at the right tip of the segment (for hyperbolic function "two sides" only)    
-&MESH_FUNCTION_DATA  Function_Name="REGULAR"           Number_of_Cells= 128  Length= 1.0   Reverse_Ordering= .false/ +   Reverse_Ordering : Reverse the ordering of the distribution if set to .true. 
-&MESH_FUNCTION_DATA End_of_Data_Block = .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) 
---------------------------------------- + 
-K-DIRECTION +__A template is provided **[[meshgen_templates|here]]**__. 
----------------------------------------+ 
 +<note important> 
 +For each direction, the block of data must start with the namelist \\ &METRIC_UNIT         Type_of_Metric= 0 / \\ 
 +   * Type_of_Metric= 0 specifies a usual metric 
 +   * Type_of_Metric1 specifies an angular metricThe unit is the degree
 +The block of data must be closed with the special namelist \\ &MESH_FUNCTION_DATA End_of_Data_Block = .true./ 
 +</note> 
 + 
 + 
 +==== Generate the grid with Meshgen ==== 
 + 
 +After setting the data set in the file "data_meshgen.dat", run the command "meshgen.x".\\ 
 +Few questions are asked : 
 +   * Choice of CFD code : OLORIN or SUNFLUIDH (1) CHORUS (2) ---> choose the correct option 
 +   * MPI domain decomposition (1) or not (0) ---> choose the correct option (if unsure, answer 0) 
 + 
 +For the case of MPI domain decomposition, further information is required to perform the appropriate domain decomposition 
 +   * number of domain decomposition per direction 
 +      In I-direction ---> write the value 
 +      In J-direction ---> write the value 
 +      In K-direction ---> write the value 
 + 
 +==== Output files ==== 
 + 
 +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. "yyyyy" is the number of the associated subdomain. 
 +    * For sunfluidh :  
 +      * __**For sequential computation**__, maillx.d, mailly.d, maillz.d (one file per direction): data are recorded in ASCII format and ordered in two colums, the first one is the cell-index, the second one is the coordinate of the upper face of the cell.Be careful, by default the first index starts at 2. The first coordinate is directly provided by the code. 
 +      * __**For domain decomposition (MPI parallelization)**__, maillx_yyyyy.d, mailly_yyyyy.d and maillz_yyyyy.d (one file per direction): data are recorded in ASCII format and ordered in two colums, the first one is the cell-index, the second one is the coordinate of the upper face of the cell. 
 + 
 +==== Check the grid ==== 
 + 
 +For checking the grid features, a specific file named "report_meshgen.d" is created in which relevant data about the grid characteristics can be read. \\ Three other files named "check_mesh_I.d", "check_mesh_J.d" and "check_mesh_K.d" are created. They are  similar to "maillx.d", "mailly.d" and "maillz.d" (see above). A 3rd column of data is associated to the cell size.
  
-&MESH_FUNCTION_DATA End_of_Data_Block = .true./ 
  
-</file> 
sunfluidh/meshgen_doc.txt · Dernière modification : 2020/10/27 16:31 de yann

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki