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/03 17:02] yannsunfluidh:meshgen_doc [2020/10/27 15:32] – [Meshgen : A mesh generator for cartesian grid] 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 and z_i$ see [[sunfluidh:sunfluidh_tools|here]] for more details).
   * Several distribution laws are available :   * Several distribution laws are available :
     * Geometric functions     * Geometric 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 31: 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= REGULAR_MESH+   * [[Reg_fct_meshgen | Regular function]] (Function_name= REGULAR
-   * [[TH1S_meshgen |Hyperbolic tangent function "one side"]] (Function_Name= TANH_ONE_SIDE_MESH+   * [[TH1S_meshgen |Hyperbolic tangent function "one side"]] (Function_Name= TANH_ONE_SIDE
-   * [[TH2S_meshgen |Hyperbolic tangent function "two sides"]] (Function_Name= TANH_TWO_SIDES_MESH+   * [[TH2S_meshgen |Hyperbolic tangent function "two sides"]] (Function_Name= TANH_TWO_SIDES
-   * [[GL_meshgen | Gauss-Lobatto distribution ]](Function_Name= GAUSS_LOBATTO_MESH+   * [[GL_meshgen | Gauss-Lobatto distribution ]](Function_Name= GAUSS_LOBATTO
-   * [[geom1_meshgen | Geometric series "type 1"]] (Function_Name= GEOMETRIC_SERIE_1_MESH+   * [[geom1_meshgen | Geometric series "type 1"]] (Function_Name= GEOMETRIC_SERIE_1
-   * [[geom2_meshgen | Geometric series "type 2"]] (Function_Name= GEOMETRIC_SERIE_2_MESH)+   * [[geom2_meshgen | Geometric series "type 2"]] (Function_Name= GEOMETRIC_SERIE_2)
  
 These functions get a specific data set : These functions get a specific data set :
Ligne 46: 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 template is provided below.__+__A template is provided **[[meshgen_templates|here]]**__.
  
 <note important> <note important>
Ligne 54: Ligne 54:
 The block of data must be closed with the special namelist \\ &MESH_FUNCTION_DATA End_of_Data_Block = .true./ The block of data must be closed with the special namelist \\ &MESH_FUNCTION_DATA End_of_Data_Block = .true./
 </note> </note>
-==== Templates for each function ==== +
-<file template> +
-&METRIC_UNIT Type_of_Metric= 0 /         ---> Used to define the metric unit +
-&MESH_FUNCTION_DATA  Function_Name="GAUSS_LOBATTO"     Number_of_Cells= 30   Length= 1.0                                                    Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA  Function_Name="TANH_ONE_SIDE"     Number_of_Cells= 40   Length= 1.0  Left_Cell_Size= 1.0d-03                           Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA  Function_Name="GEOMETRIC_SERIE_1" Number_of_Cells= 60   Length= 1.0  Cell_Ratio= 1.05d-00     Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA  Function_Name="REGULAR"           Number_of_Cells= 100  Length= 1.0                                                    Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA  Function_Name="TANH_TWO_SIDES"    Number_of_Cells= 100  Length= 1.0  Left_Cell_Size= 1.0d-02  Right_Cell_Size= 1.0d-02 Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA  Function_Name="GEOMETRIC_SERIE_2" Number_of_Cells= 50   Length= 1.0  Left_Cell_Size= 1.0d-02  Right_Cell_Size= 5.0d-02 Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA  Function_Name="TANH_ONE_SIDE"     Number_of_Cells= 100  Length= 1.0  Left_Cell_Size= 1.0d-03                           Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA  End_of_Data_Block= .true.        / +
-</file>+
  
 ==== Generate the grid with Meshgen ==== ==== Generate the grid with Meshgen ====
  
-After setting the data set in the file "data_meshgen.dat", run the command "meshgen.x".+After setting the data set in the file "data_meshgen.dat", run the command "meshgen.x".\\
 Few questions are asked : Few questions are asked :
-   * Choice of CFD code : OLORIN or SUNFLUIDH (1) CHORUS (2) ---> tape the correct option +   * Choice of CFD code : OLORIN or SUNFLUIDH (1) CHORUS (2) ---> choose the correct option 
-   * MPI domain decomposition (1) or not (0) ---> write the selected 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 For the case of MPI domain decomposition, further information is required to perform the appropriate domain decomposition
Ligne 79: Ligne 68:
       In J-direction ---> write the value       In J-direction ---> write the value
       In K-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:  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 Chorus, maille_yyyyy.dat : data are recorded in binary format. "yyyyy" is the number of the associated subdomain.
     * For sunfluidh :      * 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 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.+      * __**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 ==== ==== Check the grid ====
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