intro saturne

75
Introduction to Code Saturne J. Uribe School of MACE, University of Manchester, UK J. Uribe (University of Manchester) Introduction to Code Saturne 1 / 21

Upload: fayaz

Post on 27-Nov-2014

74 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Intro Saturne

Introduction to Code Saturne

J. Uribe

School of MACE, University of Manchester, UK

J. Uribe (University of Manchester) Introduction to Code Saturne 1 / 21

Page 2: Intro Saturne

Outline

Introduction

Help and info

Preprocessing

Running a case

Postprocessing

J. Uribe (University of Manchester) Introduction to Code Saturne 2 / 21

Page 3: Intro Saturne

Introduction

Code Saturne is a 3D unstructured finite volume code developed byElectricte de France (EDF) since 2000. It was made open-source in2007 under the GPL license.

Single phase turbulent flows:k − ε, k − ω, v2 − f, Rij − ε, LES.

Radiative heat transfer.

Combustion coal, heave fuel oil, gas.

Electric arc and Joule effect.

Lagrangian module for dispersed particle tracking.

Compressible flow.

ALE method for deformable meshes.

Conjugate heat transfer (SYRTHES and 1D module).

Specific modules for nuclear waster storage and coolingtowers.

J. Uribe (University of Manchester) Introduction to Code Saturne 3 / 21

Page 4: Intro Saturne

Introduction

Written in FORTRAN (49%), C (41%) and Python (10%).

Graphical User Interface available in Qt (xml format files).

Parallel coding using mpi.

Each release version is validated in around 30 cases with 1 to15 simulations per case.

Highly portable: Linux/UNIX, Solaris, Irix64, HP-UX, MacOS.

Validated on different architectures: Opteron, Itanium,Power5-6, BlueGene.

J. Uribe (University of Manchester) Introduction to Code Saturne 4 / 21

Page 5: Intro Saturne

Introduction

Structure of Code Saturne

J. Uribe (University of Manchester) Introduction to Code Saturne 5 / 21

Page 6: Intro Saturne

Introduction

Graphical interfacewritten in Qt.

Allows to set upparameters for the case.

Generates a xml file.

v2.0 has MathematicalExpression Interpreter.

Not all specific physicsavailable.

User subroutines haveprecedence.

J. Uribe (University of Manchester) Introduction to Code Saturne 6 / 21

Page 7: Intro Saturne

Help and Info

From version 2.0 the command code_saturne accesses all scriptsof the code:[mcjijju3@flair4gba:bin$] code saturne

Usage: code\_saturne <topic >

Topics:

help

check_consistency

check_mesh

config

create

gui

info

plot_probes

Options:

-h, --help show this help message and exit

[mcjijju3@flair4gba:bin$] code saturne info -help

Usage: cs info [options]

Options:

-h, --help show this help message

and exit

-r <pdfreader >, --reader=<pdfreader >

define a pdf reader

-g <guide >, --guide=<guide >

open a given manual [user ,theory , tutorial]

--version print Code_Saturne

version number

The command code_saturne info -g user will bring the pdfversion of the user’s manual.The manual can be access from Help menu of the graphical interface.More help via support email [email protected] or on theforums:https://code-saturne.info and at

http://cfd.mace.manchester.ac.uk/Forum/WebHome

J. Uribe (University of Manchester) Introduction to Code Saturne 7 / 21

Page 8: Intro Saturne

Help and Info

From version 2.0 the command code_saturne accesses all scriptsof the code:[mcjijju3@flair4gba:bin$] code saturne info -help

Usage: cs info [options]

Options:

-h, --help show this help message

and exit

-r <pdfreader >, --reader=<pdfreader >

define a pdf reader

-g <guide >, --guide=<guide >

open a given manual [user ,theory , tutorial]

--version print Code_Saturne

version number

The command code_saturne info -g user will bring the pdfversion of the user’s manual.The manual can be access from Help menu of the graphicalinterface.More help via support email [email protected] or on theforums:https://code-saturne.info and athttp://cfd.mace.manchester.ac.uk/Forum/WebHome

J. Uribe (University of Manchester) Introduction to Code Saturne 7 / 21

Page 9: Intro Saturne

Help and Info

From version 2.0 the command code_saturne accesses all scriptsof the code:[mcjijju3@flair4gba:bin$] code saturne info -help

Usage: cs info [options]

Options:

-h, --help show this help message

and exit

-r <pdfreader >, --reader=<pdfreader >

define a pdf reader

-g <guide >, --guide=<guide >

open a given manual [user ,theory , tutorial]

--version print Code_Saturne

version number

The command code_saturne info -g user will bring the pdfversion of the user’s manual.

The manual can be access from Help menu of the graphicalinterface.More help via support email [email protected] or on theforums:https://code-saturne.info and athttp://cfd.mace.manchester.ac.uk/Forum/WebHome

J. Uribe (University of Manchester) Introduction to Code Saturne 7 / 21

Page 10: Intro Saturne

Help and Info

From version 2.0 the command code_saturne accesses all scriptsof the code:[mcjijju3@flair4gba:bin$] code saturne info -help

Usage: cs info [options]

Options:

-h, --help show this help message

and exit

-r <pdfreader >, --reader=<pdfreader >

define a pdf reader

-g <guide >, --guide=<guide >

open a given manual [user ,theory , tutorial]

--version print Code_Saturne

version number

The command code_saturne info -g user will bring the pdfversion of the user’s manual.The manual can be access from Help menu of the graphicalinterface.

More help via support email [email protected] or on theforums:https://code-saturne.info and athttp://cfd.mace.manchester.ac.uk/Forum/WebHome

J. Uribe (University of Manchester) Introduction to Code Saturne 7 / 21

Page 11: Intro Saturne

Help and Info

From version 2.0 the command code_saturne accesses all scriptsof the code:[mcjijju3@flair4gba:bin$] code saturne info -help

Usage: cs info [options]

Options:

-h, --help show this help message

and exit

-r <pdfreader >, --reader=<pdfreader >

define a pdf reader

-g <guide >, --guide=<guide >

open a given manual [user ,theory , tutorial]

--version print Code_Saturne

version number

The command code_saturne info -g user will bring the pdfversion of the user’s manual.The manual can be access from Help menu of the graphicalinterface.More help via support email [email protected] or on theforums:https://code-saturne.info and athttp://cfd.mace.manchester.ac.uk/Forum/WebHome

J. Uribe (University of Manchester) Introduction to Code Saturne 7 / 21

Page 12: Intro Saturne

Preprocessing

No mesh generator included in Code Saturne but it can read a widerange of formats:

Universal I-DEAS (.unv).From NX or ICEM software.

Hexa NUMECA (.hex)

MED 2.2 (.med). FromSalome platform

CGNS (.cgns). Genericformat.

Gmesh.

Gambit Neutral (.neu).

StarCD (.ccm). Via libccmioavailable from StarCD onrequest.

J. Uribe (University of Manchester) Introduction to Code Saturne 8 / 21

Page 13: Intro Saturne

Preprocessing

The Code Saturne preprocessor works independently from theKernel. To check your mesh use the command:code_saturne check_mesh [options] -m meshfile

Checks all aspects of the mesh, including periodicity.

Lists all boundaries.

Quality information.

Creates Ensight files for visualisation that can be open withParaView.

J. Uribe (University of Manchester) Introduction to Code Saturne 9 / 21

Page 14: Intro Saturne

Preprocessing

The Code Saturne preprocessor works independently from theKernel. To check your mesh use the command:code_saturne check_mesh [options] -m meshfile

Checks all aspects of the mesh, including periodicity.

Lists all boundaries.

Quality information.

Creates Ensight files for visualisation that can be open withParaView.

J. Uribe (University of Manchester) Introduction to Code Saturne 9 / 21

Page 15: Intro Saturne

Preprocessing

The Code Saturne preprocessor works independently from theKernel. To check your mesh use the command:code_saturne check_mesh [options] -m meshfile

Checks all aspects of the mesh, including periodicity.

Lists all boundaries.

Quality information.

Creates Ensight files for visualisation that can be open withParaView.

J. Uribe (University of Manchester) Introduction to Code Saturne 9 / 21

Page 16: Intro Saturne

Preprocessing

The Code Saturne preprocessor works independently from theKernel. To check your mesh use the command:code_saturne check_mesh [options] -m meshfile

Checks all aspects of the mesh, including periodicity.

Lists all boundaries.

Quality information.

Creates Ensight files for visualisation that can be open withParaView.

J. Uribe (University of Manchester) Introduction to Code Saturne 9 / 21

Page 17: Intro Saturne

Preprocessing

The Code Saturne preprocessor works independently from theKernel. To check your mesh use the command:code_saturne check_mesh [options] -m meshfile

Checks all aspects of the mesh, including periodicity.

Lists all boundaries.

Quality information.

Creates Ensight files for visualisation that can be open withParaView.

J. Uribe (University of Manchester) Introduction to Code Saturne 9 / 21

Page 18: Intro Saturne

Running a case

Code Saturne needs specific directory structure. It is organised inSTUDY/CASE hierarchy.

To create the necessary structure use the command:code saturne create --study STUDY1 CASE1 CASE2... which creates a study named STUDY1 with casesCASE1 and CASE2.

Cases can be added by using:code saturne create --case CASE3

The option --nogui copies user subroutines for easier editingwithout the graphical interface.

J. Uribe (University of Manchester) Introduction to Code Saturne 10 / 21

Page 19: Intro Saturne

Running a case

Code Saturne needs specific directory structure. It is organised inSTUDY/CASE hierarchy.

To create the necessary structure use the command:code saturne create --study STUDY1 CASE1 CASE2... which creates a study named STUDY1 with casesCASE1 and CASE2.

Cases can be added by using:code saturne create --case CASE3

The option --nogui copies user subroutines for easier editingwithout the graphical interface.

J. Uribe (University of Manchester) Introduction to Code Saturne 10 / 21

Page 20: Intro Saturne

Running a case

Code Saturne needs specific directory structure. It is organised inSTUDY/CASE hierarchy.

To create the necessary structure use the command:code saturne create --study STUDY1 CASE1 CASE2... which creates a study named STUDY1 with casesCASE1 and CASE2.

Cases can be added by using:code saturne create --case CASE3

The option --nogui copies user subroutines for easier editingwithout the graphical interface.

J. Uribe (University of Manchester) Introduction to Code Saturne 10 / 21

Page 21: Intro Saturne

Running a case

Code Saturne needs specific directory structure. It is organised inSTUDY/CASE hierarchy.

To create the necessary structure use the command:code saturne create --study STUDY1 CASE1 CASE2... which creates a study named STUDY1 with casesCASE1 and CASE2.

Cases can be added by using:code saturne create --case CASE3

The option --nogui copies user subroutines for easier editingwithout the graphical interface.

J. Uribe (University of Manchester) Introduction to Code Saturne 10 / 21

Page 22: Intro Saturne

Running a caseSTUDY contains the cases, themesh and a post-processing(empty) directories.

CASE contains all input data,running scripts and results files.

DATA has the graphicalinterface script and xml file.

RESU has the saved resultsafter the simulation hasfinished.

SCRIPT contains the runcasefile to launch the calculation.

SRC contains the usersubroutines.

J. Uribe (University of Manchester) Introduction to Code Saturne 11 / 21

Page 23: Intro Saturne

Running a caseSTUDY contains the cases, themesh and a post-processing(empty) directories.

CASE contains all input data,running scripts and results files.

DATA has the graphicalinterface script and xml file.

RESU has the saved resultsafter the simulation hasfinished.

SCRIPT contains the runcasefile to launch the calculation.

SRC contains the usersubroutines.

J. Uribe (University of Manchester) Introduction to Code Saturne 11 / 21

Page 24: Intro Saturne

Running a caseSTUDY contains the cases, themesh and a post-processing(empty) directories.

CASE contains all input data,running scripts and results files.

DATA has the graphicalinterface script and xml file.

RESU has the saved resultsafter the simulation hasfinished.

SCRIPT contains the runcasefile to launch the calculation.

SRC contains the usersubroutines.

J. Uribe (University of Manchester) Introduction to Code Saturne 11 / 21

Page 25: Intro Saturne

Running a caseSTUDY contains the cases, themesh and a post-processing(empty) directories.

CASE contains all input data,running scripts and results files.

DATA has the graphicalinterface script and xml file.

RESU has the saved resultsafter the simulation hasfinished.

SCRIPT contains the runcasefile to launch the calculation.

SRC contains the usersubroutines.

J. Uribe (University of Manchester) Introduction to Code Saturne 11 / 21

Page 26: Intro Saturne

Running a caseSTUDY contains the cases, themesh and a post-processing(empty) directories.

CASE contains all input data,running scripts and results files.

DATA has the graphicalinterface script and xml file.

RESU has the saved resultsafter the simulation hasfinished.

SCRIPT contains the runcasefile to launch the calculation.

SRC contains the usersubroutines.

J. Uribe (University of Manchester) Introduction to Code Saturne 11 / 21

Page 27: Intro Saturne

Running a caseSTUDY contains the cases, themesh and a post-processing(empty) directories.

CASE contains all input data,running scripts and results files.

DATA has the graphicalinterface script and xml file.

RESU has the saved resultsafter the simulation hasfinished.

SCRIPT contains the runcasefile to launch the calculation.

SRC contains the usersubroutines.

J. Uribe (University of Manchester) Introduction to Code Saturne 11 / 21

Page 28: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 29: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

m���:

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 30: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 31: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

'

&

$

%

���:

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 32: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 33: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

�� �����:

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 34: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 35: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

�� � ���:

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 36: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

�� � ���:

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 37: Intro Saturne

Running a case - GUI

To use the graphical interface go to the DATA directory and execute./SaturneGUI

Create a new file.

Go through the folders and fill the necessary information forthe case (physical properties, boundary conditions, numericaloptions, etc.).

Save an .xml file (by default in the data directory).

Click on Code Saturne batch running and check the terminal.

Not all modules are available on the GUI. Sometimes use ofthe FORTRAN files is required as complement.

J. Uribe (University of Manchester) Introduction to Code Saturne 12 / 21

Page 38: Intro Saturne

Running a case - FORTRAN

If the GUI is not used, all necessary parameters have to be filled inthe FORTRAN subroutines.

All used subroutines have to be copiedinto the SRC directory from theREFERENCE sub-directory.

The user subroutines are organised bymodules.

The base module contains the basicsubroutines for incompressible flow.

At least usini1.f90 (main physicaland numerical parameters) andusclim.f90 (boundary conditions)are mandatory if not using the GUI.

FORTRAN files have precedence overthe GUI xml file.

J. Uribe (University of Manchester) Introduction to Code Saturne 13 / 21

Page 39: Intro Saturne

Running a case - FORTRAN

If the GUI is not used, all necessary parameters have to be filled inthe FORTRAN subroutines.

All used subroutines have to be copiedinto the SRC directory from theREFERENCE sub-directory.

The user subroutines are organised bymodules.

The base module contains the basicsubroutines for incompressible flow.

At least usini1.f90 (main physicaland numerical parameters) andusclim.f90 (boundary conditions)are mandatory if not using the GUI.

FORTRAN files have precedence overthe GUI xml file.

J. Uribe (University of Manchester) Introduction to Code Saturne 13 / 21

Page 40: Intro Saturne

Running a case - FORTRAN

If the GUI is not used, all necessary parameters have to be filled inthe FORTRAN subroutines.

All used subroutines have to be copiedinto the SRC directory from theREFERENCE sub-directory.

The user subroutines are organised bymodules.

The base module contains the basicsubroutines for incompressible flow.

At least usini1.f90 (main physicaland numerical parameters) andusclim.f90 (boundary conditions)are mandatory if not using the GUI.

FORTRAN files have precedence overthe GUI xml file.

J. Uribe (University of Manchester) Introduction to Code Saturne 13 / 21

Page 41: Intro Saturne

Running a case - FORTRAN

If the GUI is not used, all necessary parameters have to be filled inthe FORTRAN subroutines.

All used subroutines have to be copiedinto the SRC directory from theREFERENCE sub-directory.

The user subroutines are organised bymodules.

The base module contains the basicsubroutines for incompressible flow.

At least usini1.f90 (main physicaland numerical parameters) andusclim.f90 (boundary conditions)are mandatory if not using the GUI.

FORTRAN files have precedence overthe GUI xml file.

J. Uribe (University of Manchester) Introduction to Code Saturne 13 / 21

Page 42: Intro Saturne

Running a case - FORTRAN

If the GUI is not used, all necessary parameters have to be filled inthe FORTRAN subroutines.

All used subroutines have to be copiedinto the SRC directory from theREFERENCE sub-directory.

The user subroutines are organised bymodules.

The base module contains the basicsubroutines for incompressible flow.

At least usini1.f90 (main physicaland numerical parameters) andusclim.f90 (boundary conditions)are mandatory if not using the GUI.

FORTRAN files have precedence overthe GUI xml file.

J. Uribe (University of Manchester) Introduction to Code Saturne 13 / 21

Page 43: Intro Saturne

Running a case - FORTRAN

If the GUI is not used, all necessary parameters have to be filled inthe FORTRAN subroutines.

All used subroutines have to be copiedinto the SRC directory from theREFERENCE sub-directory.

The user subroutines are organised bymodules.

The base module contains the basicsubroutines for incompressible flow.

At least usini1.f90 (main physicaland numerical parameters) andusclim.f90 (boundary conditions)are mandatory if not using the GUI.

FORTRAN files have precedence overthe GUI xml file.

J. Uribe (University of Manchester) Introduction to Code Saturne 13 / 21

Page 44: Intro Saturne

Running a case - FORTRAN

Once all subroutines are complete, go to the SCRIPTS directoryand edit the runcase file.

Add the name ofthe mesh file tothe MESH variable.

Add commandsfor periodicity ormesh pasting.

Add number ofprocessors ifrunning in parallel.

Add anyinput/output files.

Run the script./runcase

J. Uribe (University of Manchester) Introduction to Code Saturne 14 / 21

Page 45: Intro Saturne

Running a case - FORTRAN

Once all subroutines are complete, go to the SCRIPTS directoryand edit the runcase file.

Add the name ofthe mesh file tothe MESH variable.

Add commandsfor periodicity ormesh pasting.

Add number ofprocessors ifrunning in parallel.

Add anyinput/output files.

Run the script./runcase

�� ��

J. Uribe (University of Manchester) Introduction to Code Saturne 14 / 21

Page 46: Intro Saturne

Running a case - FORTRAN

Once all subroutines are complete, go to the SCRIPTS directoryand edit the runcase file.

Add the name ofthe mesh file tothe MESH variable.

Add commandsfor periodicity ormesh pasting.

Add number ofprocessors ifrunning in parallel.

Add anyinput/output files.

Run the script./runcase

�� ��

J. Uribe (University of Manchester) Introduction to Code Saturne 14 / 21

Page 47: Intro Saturne

Running a case - FORTRAN

Once all subroutines are complete, go to the SCRIPTS directoryand edit the runcase file.

Add the name ofthe mesh file tothe MESH variable.

Add commandsfor periodicity ormesh pasting.

Add number ofprocessors ifrunning in parallel.

Add anyinput/output files.

Run the script./runcase

�� ��J. Uribe (University of Manchester) Introduction to Code Saturne 14 / 21

Page 48: Intro Saturne

Running a case - FORTRAN

Once all subroutines are complete, go to the SCRIPTS directoryand edit the runcase file.

Add the name ofthe mesh file tothe MESH variable.

Add commandsfor periodicity ormesh pasting.

Add number ofprocessors ifrunning in parallel.

Add anyinput/output files.

Run the script./runcase

� �J. Uribe (University of Manchester) Introduction to Code Saturne 14 / 21

Page 49: Intro Saturne

Running a case - FORTRAN

Once all subroutines are complete, go to the SCRIPTS directoryand edit the runcase file.

Add the name ofthe mesh file tothe MESH variable.

Add commandsfor periodicity ormesh pasting.

Add number ofprocessors ifrunning in parallel.

Add anyinput/output files.

Run the script./runcase

J. Uribe (University of Manchester) Introduction to Code Saturne 14 / 21

Page 50: Intro Saturne

Running a case. Check info

After running the runcase either from the terminal orthrough the GUI, check the output window.

The calculation will run on a temporary directory (set in thevariable CS_TMP_PREFIX on the runcase file).

The listing file contains all input parameters andinformation on the variables at each iteration.

Once the calculation is finished, all relevant files are copied tothe RESU directory.

J. Uribe (University of Manchester) Introduction to Code Saturne 15 / 21

[mcjijju3@flair4gba:SCRIPTS$] ./ runcase

Code_Saturne is running

***********************

Working directory (to be periodically cleaned) :

/home/mcjijju3/TEMP/STUDY1/CASE1/tmp_Saturne/STUDY1.CASE1 .04201335

Kernel version: /usr/local/saturne/v2.0rc/cs -2.0- beta2

Preprocessor: /usr/local/saturne/v2.0rc/cs -2.0- beta2/bin

***************************************************************

Compilation of user subroutines and linking of Code_Saturne

***************************************************************

********************************************

Preparing calculation

********************************************

********************************************

Starting calculation

********************************************

Page 51: Intro Saturne

Running a case. Check info

After running the runcase either from the terminal orthrough the GUI, check the output window.

The calculation will run on a temporary directory (set in thevariable CS_TMP_PREFIX on the runcase file).

The listing file contains all input parameters andinformation on the variables at each iteration.

Once the calculation is finished, all relevant files are copied tothe RESU directory.

��

��

J. Uribe (University of Manchester) Introduction to Code Saturne 15 / 21

[mcjijju3@flair4gba:SCRIPTS$] ./ runcase

Code_Saturne is running

***********************

Working directory (to be periodically cleaned) :

/home/mcjijju3/TEMP/STUDY1/CASE1/tmp_Saturne/STUDY1.CASE1 .04201335

Kernel version: /usr/local/saturne/v2.0rc/cs -2.0- beta2

Preprocessor: /usr/local/saturne/v2.0rc/cs -2.0- beta2/bin

***************************************************************

Compilation of user subroutines and linking of Code_Saturne

***************************************************************

********************************************

Preparing calculation

********************************************

********************************************

Starting calculation

********************************************

Page 52: Intro Saturne

Running a case. Check info

After running the runcase either from the terminal orthrough the GUI, check the output window.

The calculation will run on a temporary directory (set in thevariable CS_TMP_PREFIX on the runcase file).

The listing file contains all input parameters andinformation on the variables at each iteration.

Once the calculation is finished, all relevant files are copied tothe RESU directory.

J. Uribe (University of Manchester) Introduction to Code Saturne 15 / 21

[mcjijju3@flair4gba:SCRIPTS$] ./ runcase

Code_Saturne is running

***********************

Working directory (to be periodically cleaned) :

/home/mcjijju3/TEMP/STUDY1/CASE1/tmp_Saturne/STUDY1.CASE1 .04201335

Kernel version: /usr/local/saturne/v2.0rc/cs -2.0- beta2

Preprocessor: /usr/local/saturne/v2.0rc/cs -2.0- beta2/bin

***************************************************************

Compilation of user subroutines and linking of Code_Saturne

***************************************************************

********************************************

Preparing calculation

********************************************

********************************************

Starting calculation

********************************************

Page 53: Intro Saturne

Running a case. Check info

After running the runcase either from the terminal orthrough the GUI, check the output window.

The calculation will run on a temporary directory (set in thevariable CS_TMP_PREFIX on the runcase file).

The listing file contains all input parameters andinformation on the variables at each iteration.

Once the calculation is finished, all relevant files are copied tothe RESU directory.

[mcjijju3@flair4gba:RESU$] ls

case1.xml .09091117 listing .09091117 runcase.09091117

CHR.ENSIGHT.09091117/ listpre .09091117 SRC.09091117/

compil.log .09091117 RESTART.09091117/ summary .09091117

HIST.09091117/ RES USER.09091117/

J. Uribe (University of Manchester) Introduction to Code Saturne 15 / 21

Page 54: Intro Saturne

In case of problems ...

Check compilation log.

Check preprocessing output file listpre.

Check listing file.

J. Uribe (University of Manchester) Introduction to Code Saturne 16 / 21

Page 55: Intro Saturne

In case of problems ...

Check compilation log.

Check preprocessing output file listpre.

Check listing file.

[mcjijju3@flair4gba:SCRIPTS$] ./ runcase

Code_Saturne is running

***********************

Working directory (to be periodically cleaned) :

/home/mcjijju3/TEMP/STUDY1/CASE1/tmp_Saturne/STUDY1.CASE1 .04201328

Kernel version: /usr/local/saturne/v2.0rc/cs -2.0- beta2

Preprocessor: /usr/local/saturne/v2.0rc/cs -2.0- beta2/bin

***************************************************************

Compilation of user subroutines and linking of Code_Saturne

***************************************************************

COMPILE OR LINK ERROR

[mcjijju3@flair4gba:SCRIPTS$] ls ../ RESU/

compil.log.04201328 runcase .04201328

[mcjijju3@flair4gba:SCRIPTS$]

J. Uribe (University of Manchester) Introduction to Code Saturne 16 / 21

Page 56: Intro Saturne

In case of problems ...

Check compilation log.

Check preprocessing output file listpre.

Check listing file.

[mcjijju3@flair4gba:SCRIPTS$] ./ runcase

Code_Saturne is running

***********************

Working directory (to be periodically cleaned) :

/home/mcjijju3/TEMP/STUDY1/CASE1/tmp_Saturne/STUDY1.CASE1 .04201319

Kernel version: /usr/local/saturne/v2.0rc/cs -2.0- beta2

Preprocessor: /usr/local/saturne/v2.0rc/cs -2.0- beta2/bin

***************************************************************

Compilation of user subroutines and linking of Code_Saturne

***************************************************************

********************************************

Preparing calculation

********************************************

********************************************

Starting calculation

********************************************

Error running the preprocessor.

Check preprocessor log (listpre) for details.

********************************************

Error in preprocessing stage.

********************************************

J. Uribe (University of Manchester) Introduction to Code Saturne 16 / 21

Page 57: Intro Saturne

In case of problems ...

Check compilation log.

Check preprocessing output file listpre.

Check listing file.

[mcjijju3@flair4gba:SCRIPTS$] ./ runcase

Code_Saturne is running

***********************

Working directory (to be periodically cleaned) :

/home/mcjijju3/TEMP/STUDY1/CASE1/tmp_Saturne/STUDY1.CASE1 .04201335

Kernel version: /usr/local/saturne/v2.0rc/cs -2.0- beta2

Preprocessor: /usr/local/saturne/v2.0rc/cs -2.0- beta2/bin

***************************************************************

Compilation of user subroutines and linking of Code_Saturne

***************************************************************

********************************************

Preparing calculation

********************************************

********************************************

Starting calculation

********************************************

Error running the calculation.

Check Kernel log (listing) and error* files for details

********************************************

Error in calculation stage.

********************************************

J. Uribe (University of Manchester) Introduction to Code Saturne 16 / 21

Page 58: Intro Saturne

Checking the results.

After the calculation has finished, The RESU directory containsfiles with the date appended, i.e. DDMMHHMM:

CHR.ENSIGHT.DDMMHHMM: Has the files for visualisationusing Ensight or ParaView.

HIST.DDMMHHMM: Contains history files of variables atgiven locations (probes).

RESTART.DDMMHHMM: Has the necessary files to restart acalculation.

RES USER.DDMMHHMM: Any user output files.

SRC.DDMMHHMM: A copy of the FORTRAN files used torun the case.

listpre and listing files for the preprocessor and kernelexecutions.

Copies of runcase and .xml files used.

J. Uribe (University of Manchester) Introduction to Code Saturne 17 / 21

Page 59: Intro Saturne

Checking the results.

After the calculation has finished, The RESU directory containsfiles with the date appended, i.e. DDMMHHMM:

CHR.ENSIGHT.DDMMHHMM: Has the files for visualisationusing Ensight or ParaView.

HIST.DDMMHHMM: Contains history files of variables atgiven locations (probes).

RESTART.DDMMHHMM: Has the necessary files to restart acalculation.

RES USER.DDMMHHMM: Any user output files.

SRC.DDMMHHMM: A copy of the FORTRAN files used torun the case.

listpre and listing files for the preprocessor and kernelexecutions.

Copies of runcase and .xml files used.

J. Uribe (University of Manchester) Introduction to Code Saturne 17 / 21

Page 60: Intro Saturne

Checking the results.

After the calculation has finished, The RESU directory containsfiles with the date appended, i.e. DDMMHHMM:

CHR.ENSIGHT.DDMMHHMM: Has the files for visualisationusing Ensight or ParaView.

HIST.DDMMHHMM: Contains history files of variables atgiven locations (probes).

RESTART.DDMMHHMM: Has the necessary files to restart acalculation.

RES USER.DDMMHHMM: Any user output files.

SRC.DDMMHHMM: A copy of the FORTRAN files used torun the case.

listpre and listing files for the preprocessor and kernelexecutions.

Copies of runcase and .xml files used.

J. Uribe (University of Manchester) Introduction to Code Saturne 17 / 21

Page 61: Intro Saturne

Checking the results.

After the calculation has finished, The RESU directory containsfiles with the date appended, i.e. DDMMHHMM:

CHR.ENSIGHT.DDMMHHMM: Has the files for visualisationusing Ensight or ParaView.

HIST.DDMMHHMM: Contains history files of variables atgiven locations (probes).

RESTART.DDMMHHMM: Has the necessary files to restart acalculation.

RES USER.DDMMHHMM: Any user output files.

SRC.DDMMHHMM: A copy of the FORTRAN files used torun the case.

listpre and listing files for the preprocessor and kernelexecutions.

Copies of runcase and .xml files used.

J. Uribe (University of Manchester) Introduction to Code Saturne 17 / 21

Page 62: Intro Saturne

Checking the results.

After the calculation has finished, The RESU directory containsfiles with the date appended, i.e. DDMMHHMM:

CHR.ENSIGHT.DDMMHHMM: Has the files for visualisationusing Ensight or ParaView.

HIST.DDMMHHMM: Contains history files of variables atgiven locations (probes).

RESTART.DDMMHHMM: Has the necessary files to restart acalculation.

RES USER.DDMMHHMM: Any user output files.

SRC.DDMMHHMM: A copy of the FORTRAN files used torun the case.

listpre and listing files for the preprocessor and kernelexecutions.

Copies of runcase and .xml files used.

J. Uribe (University of Manchester) Introduction to Code Saturne 17 / 21

Page 63: Intro Saturne

Checking the results.

After the calculation has finished, The RESU directory containsfiles with the date appended, i.e. DDMMHHMM:

CHR.ENSIGHT.DDMMHHMM: Has the files for visualisationusing Ensight or ParaView.

HIST.DDMMHHMM: Contains history files of variables atgiven locations (probes).

RESTART.DDMMHHMM: Has the necessary files to restart acalculation.

RES USER.DDMMHHMM: Any user output files.

SRC.DDMMHHMM: A copy of the FORTRAN files used torun the case.

listpre and listing files for the preprocessor and kernelexecutions.

Copies of runcase and .xml files used.

J. Uribe (University of Manchester) Introduction to Code Saturne 17 / 21

Page 64: Intro Saturne

Checking the results.

After the calculation has finished, The RESU directory containsfiles with the date appended, i.e. DDMMHHMM:

CHR.ENSIGHT.DDMMHHMM: Has the files for visualisationusing Ensight or ParaView.

HIST.DDMMHHMM: Contains history files of variables atgiven locations (probes).

RESTART.DDMMHHMM: Has the necessary files to restart acalculation.

RES USER.DDMMHHMM: Any user output files.

SRC.DDMMHHMM: A copy of the FORTRAN files used torun the case.

listpre and listing files for the preprocessor and kernelexecutions.

Copies of runcase and .xml files used.

J. Uribe (University of Manchester) Introduction to Code Saturne 17 / 21

Page 65: Intro Saturne

Results: CHR.ENSIGHT files

A case file with info on filesCHR.case.

A geometry file chr.geo.

One file per variable pertime iteration (frequency setby the variable NTCHR inusini1.f90 or in theCalculation Control - Outputcontrol page of the GUI.

Files can be opened usingParaView (open-sourceunder GPL).

Parts can be created by theuser for specific sections ofthe geometry.

J. Uribe (University of Manchester) Introduction to Code Saturne 18 / 21

Page 66: Intro Saturne

Results: CHR.ENSIGHT files

A case file with info on filesCHR.case.

A geometry file chr.geo.

One file per variable pertime iteration (frequency setby the variable NTCHR inusini1.f90 or in theCalculation Control - Outputcontrol page of the GUI.

Files can be opened usingParaView (open-sourceunder GPL).

Parts can be created by theuser for specific sections ofthe geometry.

J. Uribe (University of Manchester) Introduction to Code Saturne 18 / 21

Page 67: Intro Saturne

Results: CHR.ENSIGHT files

A case file with info on filesCHR.case.

A geometry file chr.geo.

One file per variable pertime iteration (frequency setby the variable NTCHR inusini1.f90 or in theCalculation Control - Outputcontrol page of the GUI.

Files can be opened usingParaView (open-sourceunder GPL).

Parts can be created by theuser for specific sections ofthe geometry.

J. Uribe (University of Manchester) Introduction to Code Saturne 18 / 21

Page 68: Intro Saturne

Results: CHR.ENSIGHT files

A case file with info on filesCHR.case.

A geometry file chr.geo.

One file per variable pertime iteration (frequency setby the variable NTCHR inusini1.f90 or in theCalculation Control - Outputcontrol page of the GUI.

Files can be opened usingParaView (open-sourceunder GPL).

Parts can be created by theuser for specific sections ofthe geometry.

J. Uribe (University of Manchester) Introduction to Code Saturne 18 / 21

Page 69: Intro Saturne

Results: CHR.ENSIGHT files

A case file with info on filesCHR.case.

A geometry file chr.geo.

One file per variable pertime iteration (frequency setby the variable NTCHR inusini1.f90 or in theCalculation Control - Outputcontrol page of the GUI.

Files can be opened usingParaView (open-sourceunder GPL).

Parts can be created by theuser for specific sections ofthe geometry.

J. Uribe (University of Manchester) Introduction to Code Saturne 18 / 21

Page 70: Intro Saturne

Results: CHR.ENSIGHT files

J. Uribe (University of Manchester) Introduction to Code Saturne 19 / 21

Page 71: Intro Saturne

Results: History files

One file per variable.

Variation over number ofiterations.

Easily visualised viacode saturneplot probes command.(Requires xmgraceinstalled).

Monitoring points defined inusini1.f90 or inCalculation control - Outputcontrol page in the GUI.

J. Uribe (University of Manchester) Introduction to Code Saturne 20 / 21

Page 72: Intro Saturne

Results: History files

One file per variable.

Variation over number ofiterations.

Easily visualised viacode saturneplot probes command.(Requires xmgraceinstalled).

Monitoring points defined inusini1.f90 or inCalculation control - Outputcontrol page in the GUI.

J. Uribe (University of Manchester) Introduction to Code Saturne 20 / 21

Page 73: Intro Saturne

Results: History files

One file per variable.

Variation over number ofiterations.

Easily visualised viacode saturneplot probes command.(Requires xmgraceinstalled).

Monitoring points defined inusini1.f90 or inCalculation control - Outputcontrol page in the GUI.

J. Uribe (University of Manchester) Introduction to Code Saturne 20 / 21

Page 74: Intro Saturne

Results: History files

One file per variable.

Variation over number ofiterations.

Easily visualised viacode saturneplot probes command.(Requires xmgraceinstalled).

Monitoring points defined inusini1.f90 or inCalculation control - Outputcontrol page in the GUI.

J. Uribe (University of Manchester) Introduction to Code Saturne 20 / 21

Page 75: Intro Saturne

Results: History files

J. Uribe (University of Manchester) Introduction to Code Saturne 21 / 21