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 16:47] yannsunfluidh:meshgen_doc [2017/12/02 17:16] yann
Ligne 69: Ligne 69:
 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 associated to a function defined by a namelist. The available functions are :+Each distribution law is defined by means of namelists that are described at the end of this page. The available functions are :
    * Regular function (Function_name= REGULAR_MESH)    * Regular function (Function_name= REGULAR_MESH)
    * Hyperbolic tangent function "one side" (Function_Name= TANH_ONE_SIDE_MESH)    * Hyperbolic tangent function "one side" (Function_Name= TANH_ONE_SIDE_MESH)
Ligne 85: Ligne 85:
    * 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 at the end of this page.**__+__A complete template is provided below.__
  
 <note important> <note important>
Ligne 93: Ligne 93:
 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>
-==== Template for each function ====+==== Templates for each function ====
 <file template> <file template>
 &METRIC_UNIT Type_of_Metric= 0 /         ---> Used to define the metric unit &METRIC_UNIT Type_of_Metric= 0 /         ---> Used to define the metric unit
Ligne 105: Ligne 105:
 &MESH_FUNCTION_DATA  End_of_Data_Block= .true.        / &MESH_FUNCTION_DATA  End_of_Data_Block= .true.        /
 </file> </file>
 +
 +==== 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) ---> tape the correct option
 +   * MPI domain decomposition (1) or not (0) ---> tape the correct option
 +
 +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
 +      In J-direction
 +      In K-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. "yyyyy" is the number of the associated subdomain.
 +    * For sunfluidh : maillx_yyyyy.dat, maillx_yyyyy.dat and maillz_yyyyy.dat (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.
 +
 +
  
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