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 00:35] yannsunfluidh:meshgen_doc [2017/12/03 17:10] yann
Ligne 7: Ligne 7:
     * 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 24: Ligne 24:
 ==== Meshgen settings ==== ==== Meshgen settings ====
  
-The grid parameters are set in the input data file "data_meshgen.dat". A simple example of a 2D grid is given just below : +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]]**__
-   The cell size is variable along the I-direction.  +  
-     The I-line is split in two equal parts.  +
-     The function "TANH_ONE_SIDE" is applied over each part, with a reverse distribution over the 2nd part. This way is useful to define a perfect symmetrical distribution in regard to the mid-plane. +
-   The grid is regular along the J-direction +
- +
- +
-<file txt data_meshgen.dat> +
- +
-============================================================================================================== +
-            DATA FILE FOR THE MESH GENERATOR MESHGEN (DESCRIPTIONS OF DATA ARE GIVEN BELOW) +
-============================================================================================================== +
-------------------------------------------------------------------------------------------------------------- +
-Blocks of data are associated to segments along a specific direction (There are as many blocks as segments) +
-See below the TEMPLATES to select your own block of data associated to the selected distribution law) +
-------------------------------------------------------------------------------------------------------------- +
---------------------------------------- +
-I-DIRECTION +
---------------------------------------- +
-Choice of the metric system :  in meter or dimensionless  (0)  - angular in degrees (1)     +
-&METRIC_UNIT         Type_of_Metric= 0 / +
-&MESH_FUNCTION_DATA Function_Name="TANH_ONE_SIDE" Number_of_Cells= 64   Length= 0.5  Left_Cell_Size= 1.2d-03 Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA Function_Name="TANH_ONE_SIDE" Number_of_Cells= 64   Length= 0.5  Left_Cell_Size= 1.2d-03 Reverse_Ordering= .true. / +
-&MESH_FUNCTION_DATA End_of_Data_Block = .true./ +
---------------------------------------- +
-J-DIRECTION +
---------------------------------------- +
-Choice of the metric system :  in meter or dimensionless  (0)  - angular in degrees (1)     : +
-&METRIC_UNIT         Type_of_Metric= 0 / +
-&MESH_FUNCTION_DATA  Function_Name="REGULAR"           Number_of_Cells= 128  Length= 1.0   Reverse_Ordering= .false. / +
-&MESH_FUNCTION_DATA End_of_Data_Block = .true./ +
---------------------------------------- +
-K-DIRECTION +
---------------------------------------- +
- +
-&MESH_FUNCTION_DATA End_of_Data_Block = .true./ +
- +
-END OF FILE +
- +
-</file> +
 ==== Data set description ==== ==== Data set description ====
  
Ligne 85: 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 93: 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 ====
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