Salome HOME
Merge branch 'master' into V7_5_BR
[modules/smesh.git] / doc / salome / gui / SMESH / input / constructing_meshes.doc
index b6c687bb03c2cbdc26499d3cd550426cfb36f705..2a1a0c3aab8bfc97a6f5eb63e17565d687988838 100644 (file)
@@ -9,10 +9,8 @@
   <li> \ref preview_anchor "Previewing the mesh" (optional)</li>
   <li> \ref submesh_order_anchor "Changing sub-mesh priority" (optional)</li>
   <li> \ref compute_anchor "Computing the mesh"</li>
+  <li> \ref edit_anchor "Editing the mesh" (optional)</li>
 </ul>
-Mesh can be \ref use_existing_anchor "computed using your own meshing algorithms" 
-written in Python.
-
 
 \anchor create_mesh_anchor
 <h2>Creation of a mesh object</h2>
@@ -32,6 +30,14 @@ written in Python.
     \image html createmesh-inv.png
     <br>
   </li>
+  <li> To filter off irrelevant meshing algorithms, you can
+    select <b>Mesh Type</b> in the corresponding list from <b>Any,
+      Hexahedral, Tetrahedral, Triangular </b> and \b Quadrilateral (there
+    can be less items for the geometry of lower dimensions).
+
+    Selection of a mesh type hides all meshing algorithms that cannot
+    generate elements of this type.</li>
+
   <li>Apply \subpage basic_meshing_algos_page "meshing algorithms" and
     \subpage about_hypo_page "hypotheses" which will be used to compute
     this mesh.
@@ -41,7 +47,8 @@ written in Python.
     dimension of the CAD model (geometry) the algorithms listed on
     this page affect and the maximal dimension of elements the algorithms
     generate. For example, \b 3D page lists the algorithms that affect
-    3D geometrical objects (solids).
+    3D geometrical objects (solids) and generate 3D mesh elements
+    (tetrahedra, hexahedra etc.)
 
     \note
     - Some page(s) can be disabled if the source geometrical
@@ -64,7 +71,6 @@ written in Python.
     it is "Mesh_1". Then select the geometrical object you wish to
     mesh in the Object Browser and click "Select" button near \b Geometry
     field (if the name of the object has not yet appeared in \b Geometry field).
-
     <center>
     \image html image120.png
     <em>"Select" button</em>
@@ -73,37 +79,35 @@ written in Python.
     Now you can define 3D Algorithm and 3D Hypotheses, which will be
     applied to the solids of your geometrical object. Click the <em>"Add
       Hypothesis"</em>  button to add a hypothesis.
-
     <center>
     \image html image121.png
     <em>"Add Hypothesis" button</em>
     </center>
+    Click the <em>"Plus"</em> button to enable adding more additional hypotheses.
 
     Click the <em>"Edit Hypothesis"</em> button to change the values for the
     current hypothesis.
-
     <center>
     \image html image122.png
     <em>"Edit Hypothesis" button</em>
     </center>
 
-    Most 2D and 3D algorithms can work without hypotheses using some
-    default meshing parameters. Some algorithms does not require any
-    hypothesis. After selection of an algorithm "Hypothesis" field of
+    Most 2D and 3D algorithms can work without hypotheses using
+    default meshing parameters. Some algorithms do not require any
+    hypotheses. After selection of an algorithm "Hypothesis" field of
     the dialog can contain:
     <ul>
       <li> <em>\<Default\></em> if the algorithm can work using default
       parameters.</li>
       <li> <em>\<None\></em> if the algorithm requires a hypothesis defining
       its parameters.</li>
-      <li> Nothing if the algorithm has no parameters to tune.</li>
+      <li> If the algorithm does not use hypotheses, this field is grayed.</li>
     </ul>
-    After selection of an algorithm "Add. Hypothesis" field of
-    the dialog can contain:
+    After selection of an algorithm <b>Add. Hypothesis</b> field can contain:
     <ul>
-      <li> <em>\<None\></em> if the algorithm can be additionally tuned
+      <li> <em>\<None\></em> if the algorithm can be tuned
       using an additional hypothesis.</li>
-      <li> Nothing if the algorithm has no additional parameters to tune.</li>
+      <li> If the algorithm does not use additional hypotheses, this field is grayed.</li>
     </ul>
 
     Proceed in the same way with 2D and 1D Algorithms and Hypotheses that
@@ -111,7 +115,10 @@ written in Python.
     that any object has edges, even if their existence is not
     apparent, for example, a sphere has 4 edges). Note that the
     choice of hypotheses and lower dimension algorithms depends on
-    the higher dimension algorithm. 
+    the higher dimension algorithm.
+
+    If you wish you can select different algorithms and/or hypotheses
+    for meshing some parts of your CAD model by \ref constructing_submeshes_page.
 
     Some algorithms generate mesh of several dimensions, while others
     produce mesh of only one dimension. In the latter case there must
@@ -130,8 +137,9 @@ written in Python.
 
     It contains: 
     <ul>
+      <li>a mesh name (<em>Mesh_mechanic</em>);
       <li>a reference to the geometrical object on the basis of
-        which the mesh has been constructed;</li> 
+        which the mesh has been constructed (\a mechanic);</li> 
       <li><b>Applied hypotheses</b> folder containing the references
         to the hypotheses applied at the construction of the mesh;</li>
       <li><b>Applied algorithms</b> folder containing the references
@@ -150,7 +158,13 @@ written in Python.
 
       \image html hypo_sets.png
       List of sets of hypotheses. Tag <em>[custom]</em> is
-      automatically added to the sets defined by the user
+      automatically added to the sets defined by the user.
+      
+      \note \a "Automatic" in the names of predefined sets of
+      hypotheses came from previous versions of SALOME where
+      \ref automatic_length_anchor "Automatic Length" hypothesis 
+      was included in these sets, and not that these sets are suitable for
+      meshing any geometry.
   </li>
 </ol>
 
@@ -344,35 +358,29 @@ computation reporting. There are the following possibilities: always
 show the information box, show only if an error occurs or never. 
 By default, the information box is always shown after mesh computation operation.
 
-<br><br>
-
-\anchor use_existing_anchor
-<h2>"Use Edges to be Created Manually" and "Use Faces to be Created Manually" algorithms</h2>
-
-It is possible to create a 1D or a 2D mesh in a python script
-(using <em>AddNode, AddEdge</em> and <em>AddFace</em> commands) and
-then use such sub-meshes in the construction of a 2D or a 3D mesh. For
-this, there exist two algorithms: <b>Use Edges to be Created
-Manually</b> and <b>Use Faces to be Created Manually</b>.
-Imagine, you want to use standard algorithms to generate 1D and 3D
-meshes and to create 2D mesh by your python code. Then you
-<ol>
-  <li> create a mesh object, assign a 1D algorithm,</li>
-  <li> invoke \b Compute command, which computes a 1D mesh,</li>
-  <li> assign <b>Use Faces to be Created Manually</b> and a 3D algorithm,</li>
-  <li> run your python code, which creates a 2D mesh,</li>
-  <li> invoke \b Compute command, which computes a 3D mesh.</li>
-</ol>
-\warning <b>Use Edges to be Created Manually</b> and <b>Use Faces to
-be Created Manually</b> algorithms should be assigned _before_
-mesh generation by the Python code.
-
-Consider trying a sample script demonstrating the usage of 
-\ref tui_use_existing_faces "Use Faces to be Created Manually"
-algorithm for construction of a 2D mesh using Python commands.
-
-\image html use_existing_face_sample_mesh.png
-<em> Mesh computed by \ref tui_use_existing_faces "the sample script"
-  shown in a Shrink mode.</em>
+<p><p>
+\anchor edit_anchor
+<h2>Editing the mesh</h2>
+
+It is possible to \ref modifying_meshes_page "edit the mesh" of
+lower dimension before generation of mesh of higher dimension.
+
+For example you can generate 2D mesh, modify it using e.g. 
+\ref pattern_mapping_page, and then generate 3D mesh basing on the
+modified 2D mesh. The workflow is following:
+- Define 1D and 2D meshing algorithms.
+- Compute the mesh. 2D mesh is generated.
+- Apply \ref pattern_mapping_page.
+- Define 3D meshing algorithms without modifying 1D and 2D algorithms
+and hypotheses.
+- Compute the mesh. 3D mesh is generated.
+
+\note Nodes and elements added \ref adding_nodes_and_elements_page
+"manually" can't be used in this workflow because the manually created
+entities are not attached to any geometry and thus (usually) can't be
+found by a mesher paving some geometry.
+
+<b>See Also</b> a sample TUI Script demonstrates the possibility of 
+\ref tui_editing_while_meshing "Intermediate edition while meshing"
 
 */