Skip to content

Commit 3b33666

Browse files
committed
Update documentation
1 parent 85c7f4b commit 3b33666

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+903
-122
lines changed

ECOGEN_documentation.pdf

1.12 MB
Binary file not shown.

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,25 @@
1-
# ECOGEN
2-
A CFD open source code dedicated to multiphase compressible flows
1+
ECOGEN
2+
======
3+
4+
**ECOGEN** is a CFD plateform written in C++ object oriented programming langage. It is dedicated to numerical simulation of compressible multiphase flows. It has the vocation to share academics researches in the multiphase flow field in direction to ohter academics but also for industrials, students, etc.
5+
6+
* Official webSite: https://code-mphi.github.io/ECOGEN/
7+
* Official documentation: https://code-mphi.github.io/ECOGEN/docs/sphinx_docs/index.html
8+
* API documentation: https://code-mphi.github.io/ECOGEN/docs/doxygen_docs/index.html
9+
10+
What can I do with ?
11+
--------------------
12+
With **ECOGEN** you can solve:
13+
14+
* Interface problems between pure or multicomponents fluids and mixtures of multiphase flows.
15+
* Flow problems involving surface tension, heat and mass transfers for evaporating and condensing flow, cavitation.
16+
* Wave propagation problems in strongly unsteady situations using a specific Adaptative Mesh Reffinement.
17+
* complex flow problems on unstructured grids.
18+
19+
Visit the gallery for examples: https://code-mphi.github.io/ECOGEN/gallery/
20+
21+
Start with ECOGEN
22+
-----------------
23+
The better way to start with **ECOGEN** is to follow installation instructions on the official documentation webSite: https://code-mphi.github.io/ECOGEN/docs/sphinx_docs/Chap2_installation_Chapter.html
24+
25+
Then you can follow the dedicated tutorial to run your first test: https://code-mphi.github.io/ECOGEN/docs/sphinx_docs/Chap4_1startWithECOGEN.html

docs/sphinx_docs/source/Biblio.bib

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
% Encoding: UTF-8
2+
3+
@article{euler1757principes,
4+
title={Principes g{\'e}n{\'e}raux du mouvement des fluides},
5+
author={Euler, Leonhard},
6+
journal={M{\'e}moires de l'Acad{\'e}mie des Sciences de Berlin},
7+
pages={274--315},
8+
year={1757}
9+
}
10+
211
@article{pishchalnikov2019lowintensity,
312
title={High-speed video microscopy and numerical modeling of microbubbles driven by low-intensity ultrasound and targeting urinary stones},
413
author={Pishchalnikov, Y. A. and Behnke-Parks, W. and Schmidmayer, K. and Maeda, K. and Colonius, T. and Kenny, T. and Laser, D. J.},
@@ -7,7 +16,7 @@ @article{pishchalnikov2019lowintensity
716
}
817

918
@Article{schmidmayer2019adaptive,
10-
author = {Schmidmayer, Kevin and Petitpas, Fabien and Daniel, Eric},
19+
author = {Schmidmayer, K. and Petitpas, F. and Daniel, E.},
1120
title = {Adaptive Mesh Refinement algorithm based on dual trees for cells and faces for multiphase compressible flows},
1221
journal = {Journal of Computational Physics},
1322
year = {2019},
@@ -2712,6 +2721,13 @@ @Book{toro97
27122721
address = {Berlin}
27132722
}
27142723

2724+
@book{toro2013riemann,
2725+
title={Riemann solvers and numerical methods for fluid dynamics: a practical introduction},
2726+
author={Toro, Eleuterio F},
2727+
year={2013},
2728+
publisher={Springer Science \& Business Media}
2729+
}
2730+
27152731
@Article{toumi,
27162732
author = {I. Toumi},
27172733
title = { A weak formulation of \textsc{R}oe's approximate \textsc{R}iemann solver},

docs/sphinx_docs/source/Introduction.rst renamed to docs/sphinx_docs/source/Chap1_introduction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ECOGEN is a CFD plateform written in C++ object oriented programming langage. It
88
- multi-meshes (Cartesian, unstructured, AMR)
99
- multi-CPU
1010

11-
ECOGEN is for:
11+
ECOGEN stands for:
1212

1313
- **E**\ volutive: makes easier future developpements
1414
- **C**\ ompressible: dedicated to compressible flows
@@ -37,9 +37,9 @@ What is a diffuse interface? In DIM theory, the interfaces between pure phases a
3737

3838
.. _Fig:introduction:diffInterface:
3939

40-
.. figure:: ./img/diffInterface.png
40+
.. figure:: ./_static/intro/diffInterface.png
4141

42-
1D extraction of the diffuse interface zone of a water droplet.
42+
1D extraction of the diffuse interface zone of a water droplet.
4343

4444
This way is possible thanks to a thermodynamical consistency. Then, the flow solution does no longer requires interface tracking algorithms: It became easy to simulate complex topological shape evolutions between miscible or non miscible fluid. Moreover, pressure waves (shock waves, acoustic waves) can propagate and interact properly in the whole flow.
4545

docs/sphinx_docs/source/Start.rst renamed to docs/sphinx_docs/source/Chap2_1installation.rst

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ECOGEN required two mandatory components to be installed on your Ubuntu system :
99

1010
Installing C++ compiler
1111
~~~~~~~~~~~~~~~~~~~~~~~
12-
Nothing is more easy than installing C and C++ compiler on Ubuntu. In your temrminal just enter the following commands:
12+
Nothing is more easy than installing C and C++ compiler on Ubuntu. In your terminal just enter the following commands:
1313

1414
.. highlight:: console
1515

@@ -44,8 +44,7 @@ Prepare the environnement for using your favorite compiler:
4444
export CC=gcc
4545
export CXX=g++
4646

47-
Configure and proceed to the installation (you can choose a different directory):
48-
.. highlight:: console
47+
Configure and proceed to the installation (you can choose a different directory). The "make" step should take some times (coffee time ?):
4948

5049
.. highlight:: console
5150

@@ -81,7 +80,22 @@ If the installation succeed you should use the mpicxx command in your terminal.
8180
Download
8281
========
8382

84-
The last ECOGEN version can be downloaded from Git-hub. The source files are available at the following address: https://github.com/code-mphi/ECOGEN
83+
The last ECOGEN version can be downloaded from Git-hub. The source files are available at the following address: https://github.com/code-mphi/ECOGEN.
84+
85+
The package includes:
86+
87+
* ECOGEN/src/ folder including C++ source files.
88+
* ECOGEN/libMeshes/ folder including examples of unstructured meshes in *.geo* format (gmsh files version 2). See section :ref:`Sec:tuto:generatingMeshes` for details.
89+
* ECOGEN/libEOS/ folder including some possible parameters for Equation of State in XML files. See section :ref:`Sec:IO:materials` for details.
90+
* ECOGEN/libTests folder including:
91+
92+
- ECOGEN/libTests/referenceTestCases/ folder organized in a test cases library according the flow model (Euler Equations ECOGEN solver, Kapila's model for multiphase flow ECOGEN solver, Homogeneous Euler Equation ECOGEN solver, etc.). A detailed list of available test cases is proposed in section :ref:`Chap:TestCases`.
93+
- 4 quick-manual XML files to create a new flow calculation with ECOGEN.
94+
* *ECOGEN.xml* main entry file to select running cases.
95+
* *Makefile*: for compilation in Unix environment. This file may require some adaptation to the user's environment.
96+
* *LICENSE*, *COPYRIGHT* and *AUTHORS*: Information files about authors and licensing.
97+
* *README.md*: Information file.
98+
* *ECOGEN_documentation.pdf*: The full documentation for ECOGEN.
8599

86100
Compilation/Execution on bash
87101
=============================
@@ -102,7 +116,25 @@ Executing ECOGEN is really easy on bash (XX is the number of CPU required for ex
102116

103117
mpirun -np XX ECOGEN
104118

105-
ECOGEN is including a given number of simple prebuild test cases. Each test can be used as a basis for a new one. In the downloaded version, when executing ECOGEN, a simple default test case is running and you should see informations about the test output appering in the terminal output.
119+
Testing
120+
=======
121+
122+
Once preceding compiling of the code succeed, the better way to test ECOGEN's installation is to run successively the two simple following commands:
123+
124+
.. highlight:: console
125+
126+
::
127+
128+
./ECOGEN
129+
mpirun -np 2 ECOGEN
130+
131+
This will run the default test case included in the package two times:
132+
133+
* In sequential (single CPU).
134+
* In parallele using 2 CPU.
135+
136+
This should print informations in the terminal on the running default test case. If no error message appears, then your installation should be OK. You should use ECOGEN for your own applications.
106137

138+
ECOGEN is including a given number of simple prebuild test cases. Each test can be used as a basis for a new one. Visit the tutorial section :ref:`Chap:Tutorials` for more informations.
107139

108140
.. _openMPI: https://www.open-mpi.org/
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _Chap:Start:
2+
3+
Installation instructions
4+
=========================
5+
6+
This section contains basic instruction for ECOGEN installation on windows / ubuntu systems.
7+
8+
.. toctree::
9+
:maxdepth: 1
10+
:caption: Contents:
11+
12+
Chap2_1installation
File renamed without changes.

docs/sphinx_docs/source/Model.rst renamed to docs/sphinx_docs/source/Chap3_1_2model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Source terms
8585

8686
The additional :xml:`<sourceTerms>` markup can be used to numerically integrate some source terms in the equations. The attribute :xml:`type` selects the source term:
8787

88-
- *heating*: related to a thermal energy heating/cooling. This attribute requires the :xml:`<dataHeating>` node with the attribute :xml:`volumeHeatPower`: a real number corresponding to the power by volume unit added to the flow (unit :W/m3 (SI)).
88+
- *heating*: related to a thermal energy heating/cooling. This attribute requires the :xml:`<dataHeating>` node with the attribute :xml:`volumeHeatPower`: a real number corresponding to the power by volume unit added to the flow (unit: W/m3 (SI)).
8989

9090
.. code-block:: xml
9191

docs/sphinx_docs/source/Mesh.rst renamed to docs/sphinx_docs/source/Chap3_1_3mesh.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ Unstructured mesh
9797
When dealing with unstructured meshes, the :xml:`<unstructuredMesh>` markup **must be** present in the *meshV5.xml* input file and contains the following nodes:
9898

9999
- :xml:`<file>`: this **mandatory** node specifies the path of the mesh file via the attribute :xml:`name`. The file must be located in the folder **ECOGEN/libMeshes/**.
100-
- :xml:`<modeParallele>`: This node is required only if the file mesh is a multi-CPU file. The attribute :xml:`GMSHPretraitement` can take the following values:
100+
- :xml:`<modeParallele>` : This node is required only if the file mesh is a multi-CPU file. The attribute :xml:`GMSHPretraitement` can take the following values:
101101
- *true*: ECOGEN automatically splits the given mesh file in as many as necessary files according to the number of available CPUs.
102102
- *false*: do not redo the split of the given mesh (which has already been split in a precedent simulation).
103103

104-
**Remark:**
104+
**Remarks:**
105105

106106
1. The attribute :xml:`GMSHPretraitement` must be set as true if it is the first run with the given mesh file.
107107
2. In the current version of ECOGEN, only mesh files generated with the opensource Gmsh_ software under file format *version 2* can be used.

docs/sphinx_docs/source/InitialConditions.rst renamed to docs/sphinx_docs/source/Chap3_1_4initialConditions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
InitialConditionsV4.xml
77
=======================
88

9-
The *initialConditionsV4.xml* input file includes the initial conditions and the boundary conditions of the flow simulation. It is *mandatory* located in the folder of the current case. The typical structure of this file is:
9+
The *initialConditionsV4.xml* input file includes the initial conditions and the boundary conditions of the flow simulation. It is **mandatory** located in the folder of the current case. The typical structure of this file is:
1010

1111
.. code-block:: xml
1212
@@ -264,7 +264,7 @@ This last node :xml:`<dataFluid>` as well as the :xml:`<mixture>` node are depen
264264

265265
.. _Sec:input:euler:
266266

267-
euler
267+
Euler
268268
~~~~~
269269
Single phase flow. In this case, the :xml:`<mixture>` node is absent and the :xml:`<dataFluid>` node contains the following attributes or nodes:
270270

0 commit comments

Comments
 (0)