Salome HOME
Correction d'une erreur sur le tri entre raffinement et déraffinement.
[modules/homard.git] / doc / en / tutorials.rst
index 93e4f9e586285faa199f5214164009c5a080dded..9d5f7fa8c3d83f6e93a7ff96f24cae08a9f16340 100644 (file)
@@ -8,7 +8,7 @@ It is in the directory ``dircase`` that the files will be written resulting from
 
 Loading of the module HOMARD
 ****************************
-.. index:: single: yacs
+.. index:: single: YACS
 
 The loading of the module HOMARD is done in a way similar to the other modules.
 
@@ -37,29 +37,32 @@ One will make here three successive uniform refinements of the mesh contained in
 
 
 .. literalinclude:: ../files/tutorial_1.py
-   :lines: 53-86
+   :lines: 62-94
 
 .. note::
   Download the files
 
   * :download:`initial mesh<../files/tutorial_1.00.med.gz>`
   * :download:`python script<../files/tutorial_1.py>`
+  * :download:`python script for the compression<../files/tutorial_util.py>`
+
 
 
 Refinement by zones
 *******************
 .. index:: single: zone
 
-One proceeds here to refinement according to zones. To pass from the initial mesh to the mesh 'M_1', one uses a box framing the z=1 plane and a sphere centered on the origin with radius 1.05. Then to pass from the mesh 'M_1' to the mesh 'M_2', one replaces the sphere by a box framing the cube on side 0.5, pointing on the origin. It will be noted that the type of refinement was not specified; by default, it will be thus in conformity.
+One proceeds here to refinement according to zones. To pass from the initial mesh to the mesh 'M_1', one uses a box framing the z=1 plane and a sphere centered on the origin with radius 1.05. Then to pass from the mesh 'M_1' to the mesh 'M_2', one replaces the sphere by a box framing the cube on side 0.5, pointing on the origin and the meshes in the very first zone are unrefined.
 
 .. literalinclude:: ../files/tutorial_2.py
-   :lines: 53-98
+   :lines: 62-104
 
 .. note::
   Download the files
 
   * :download:`initial mesh<../files/tutorial_2.00.med.gz>`
   * :download:`python script<../files/tutorial_2.py>`
+  * :download:`python script for the compression<../files/tutorial_util.py>`
 
 
 Refinement driven by a field
@@ -70,7 +73,7 @@ One proceeds here to refinement according to a field. The hypotheses are used to
 To adapt the H_1 mesh resulting from the Iter_1 iteration, two alternatives are applied. In the first, Iter_2, the field is a scalar field of indicators of error and one cuts out the 1.5% of elements where the error is largest. In the second alternative, Iter_2_bis, one is based on a vector field and one examines the jump of this vector between an element and its neighbors: one will cut out where the infinite standard of this jump is higher than the absolute threshold of 0.0001.
 
 .. literalinclude:: ../files/tutorial_3.py
-   :lines: 53-128
+   :lines: 62-133
 
 .. note::
   Download the files
@@ -78,18 +81,19 @@ To adapt the H_1 mesh resulting from the Iter_1 iteration, two alternatives are
   * :download:`mesh and field stage 0<../files/tutorial_3.00.med.gz>`
   * :download:`mesh and field stage 1<../files/tutorial_3.01.med.gz>`
   * :download:`python script<../files/tutorial_3.py>`
+  * :download:`python script for the compression<../files/tutorial_util.py>`
 
 
 Non plane boundaries
 ********************
 .. index:: single: field
-.. index:: single: yacs
+.. index:: single: YACS
 
 One tests the follow-up of the curved borders here: analytical borders to describe various surfaces of the pipes and a discrete border to describe the intersecting lines of the two pipes. The driving of refinement is the following: uniform refinement of all the elements contained in indicated groups. One starts by refining the inner faces with the pipes; then, one refines continuation twice the external faces with the pipes.
 Scheme YACS carrying out this adaptation is downloadable.
 
 .. literalinclude:: ../files/tutorial_4.py
-   :lines: 53-112
+   :lines: 62-120
 
 .. note::
   Download the files
@@ -97,6 +101,7 @@ Scheme YACS carrying out this adaptation is downloadable.
   * :download:`initial mesh<../files/tutorial_4.00.med.gz>`
   * :download:`mesh of the discrete boundary<../files/tutorial_4.fr.med.gz>`
   * :download:`python script<../files/tutorial_4.py>`
+  * :download:`python script for the compression<../files/tutorial_util.py>`
   * :download:`YACS scheme<../files/tutorial_4.xml>`
 
 
@@ -108,7 +113,7 @@ The instructions to adapt a 2D mesh are exactly identical to those necessary to
 In the case presented here, one for the first time refines all the elements contained in a bored disk, then in one second iteration, all the elements contained in a rectangle. One will note the use of the follow-up of the circular borders of the field.
 
 .. literalinclude:: ../files/tutorial_5.py
-   :lines: 53-98
+   :lines: 62-104
 
 .. note::
   Download the files
@@ -116,6 +121,7 @@ In the case presented here, one for the first time refines all the elements cont
   * :download:`initial mesh<../files/tutorial_5.00.med.gz>`
   * :download:`mesh of the discrete boundary<../files/tutorial_5.fr.med.gz>`
   * :download:`python script<../files/tutorial_5.py>`
+  * :download:`python script for the compression<../files/tutorial_util.py>`
 
 
 .. toctree::