File: coupling.rst

package info (click to toggle)
code-saturne 4.3.3%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 77,992 kB
  • sloc: ansic: 281,257; f90: 122,305; python: 56,490; makefile: 3,915; xml: 3,285; cpp: 3,183; sh: 1,139; lex: 176; yacc: 101; sed: 16
file content (68 lines) | stat: -rw-r--r-- 2,793 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
==============================================================
*Code_Saturne* howto: **run a coupling study**
==============================================================

----------------
Introduction
----------------

This tutorial provides a course for a coupling study with *Code_Saturne* and *SYRTHES*.

Run a coupling study from *SALOME_CFD* in graphical mode is not available yet.

----------------
Open SALOME
----------------

We consider that we use SALOME_CFD to compute a coupling study. Then, to
open a salome shell the command is ``~/salome/appli_x_y_z/salome shell``.
Now, we are in a salome environment, but in a shell. You can, for example, run
commands like ``code_saturne -h`` for general options or
``code_saturne info -g user`` for the *Code_Saturne* user's guide.

-------------------------------------
Create study
-------------------------------------

To create a study:

    - go to the main directory for the study. For example, **my_cfd_study** whith the command: ``cd my_cfd_study``.
    - create the study: ``code_sturne create --study=my_study --case=saturne_case --syrthes=syrthes``.

Now, in the directory **my_cfd_study**, a directory **my_study** has been created, with five subdirectories
and two files:

     ======================  =========================================================
     Directory / file        Content
     ======================  =========================================================
     MESH                    directory for mesh files
     POST                    directory for optional post processing scripts
     RESU_COUPLING           directory for study results
     saturne_case            directory for *Code_Saturne* case (DATA, SRC)
     syrthes                 directory for *SYRTHES*
     coupling_parameters.py  file for coupling parameters (number of processors, ...)
     runcase                 executable script
     ======================  =========================================================

-------------------------------------
Define calculation
-------------------------------------

Use the function **exit** with the command ``exit`` in the salome shell to log out.
Now, we can launch salome in GUI mode, with the command: ``~/salome/appli_x_y_z/salome``.

We are in salome environment and we can:

    - create CAD and meshes,
    - define CFD calculation parameters,
    - define SYRTHES calculation parameters.

-------------------------------------
Run computation
-------------------------------------

When calculation parameters are defined, close the salome GUI and launch the **salome shell** again.
Then, go to the directory **my_study** and edit **coupling_parameters.py** file.

Finally, to launch the computation just run the **runcase** file with the command ``./runcase``.