Download CodeSaturne version 1.3 practical user's guide

Transcript
EDF R&D
Code Saturne version 1.3.2 practical user’s
guide
Code Saturne
documentation
Page 3/174
TABLE OF CONTENTS
1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
Practical information about Code Saturne
. . . . . . . . . . . . . . . . . . . . . . .
10
System Environment for Code Saturne
. . . . . . . . . . . . . . . . . . . . . . . . .
10
2.1
9
2.1.1
Preliminary settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1.2
Standard architecture of the directories . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.1.3
Code Saturne Kernel library files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.2
Setting up and running of a calculation . . . . . . . . . . . . . . . . . . . . . . .
14
2.2.1
Step by step calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2.2
Temporary execution directory
2.2.3
Execution modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.2.4
Interactive modification of the target time step . . . . . . . . . . . . . . . . . . . . . . 17
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.3
Case preparer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
17
2.4
Preprocessing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
18
2.4.1
Usable meshes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.4.2
Preprocessor command line options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.5
Kernel command line options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
20
2.6
Parameters in the launch script . . . . . . . . . . . . . . . . . . . . . . . . . . . .
22
2.7
Graphical User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
25
2.8
Face and cell mesh-defined properties and selection . . . . . . . . . . . . . . .
27
3
Main variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
3.1
Array sizes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
3.2
Geometric variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
3.3
Physical variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
33
3.4
Variables related to the numerical methods . . . . . . . . . . . . . . . . . . . .
38
3.5
User arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41
3.6
Developer arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
41
3.7
Parallelism and periodicity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
42
3.8
Geometric and particulate arrays related to lagrangian modeling . . . . . .
44
3.9
Variables saved to allow calculation restarts . . . . . . . . . . . . . . . . . . .
48
4
User subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
50
4.1
Preliminary comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
50
4.2
Using selection criteria in user subroutines . . . . . . . . . . . . . . . . . . . .
50
4.3
Initialisation of the main key words: usini1
. . . . . . . . . . . . . . . . . . . .
51
4.4
Management of boundary conditions: usclim . . . . . . . . . . . . . . . . . . . .
52
4.4.1
Coding of standard boundary conditions . . . . . . . . . . . . . . . . . . . . . . . . . 53