Skip to content

Commit 925165b

Browse files
add more explanation for each approach on the split_mesh.rst tutorial
1 parent 51425fe commit 925165b

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

doc/source/user_guide/tutorials/mesh/split_mesh.rst

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ For more information see the :ref:`ref_tutorials_get_mesh_from_result_file` tuto
118118
First approach
119119
--------------
120120

121-
Use the |split_mesh| operator to split an already existing |MeshedRegion| based on a property.
122-
Currently you can split a mesh by material or eltype.
121+
This approach consist of splitting an already existing |MeshedRegion| based on a given property. To accomplish
122+
that goal, you must use the |split_mesh| operator. Currently you can split a mesh by material or eltype.
123123

124-
When you split a |MeshedRegion| the split parts are stored in the DPF collection called |MeshesContainer|.
125-
Th |MeshesContainer| have a two different labels for each |MeshedRegion|:
124+
The split mesh parts are stored in the DPF collection called |MeshesContainer|, where they are ordered by *labels*.
125+
When you use the |split_mesh| operator, each split mesh part has two different *labels*:
126126

127-
- A "body" label;
128-
- A label with the property used to split the mesh. Here, the "mat" label.
127+
- A "body" *label*;
128+
- A *label* with the property used to split the mesh.
129129

130130
Here, we split the |MeshedRegion| by material.
131131

@@ -175,14 +175,23 @@ Here, we split the |MeshedRegion| by material.
175175
Second approach
176176
---------------
177177

178-
First, use the |split_on_property_type| operator to split the mesh scoping. This operator splits a |Scoping| on given
179-
properties (elshape and/or material, since 2025R1 it supports any scalar property field name contained in the mesh
180-
property fields) and returns a |ScopingsContainer| with those split scopings.
178+
This approach consists of splitting the |Scoping| of a given |MeshedRegion| based on a given property and then creating
179+
a new |MeshedRegion| for each split |Scoping|.
181180

182-
Finally, create the split |MeshedRegion| objects with the |from_scopings| operator. The split parts are stored
183-
in the DPF collection called |MeshesContainer|.
181+
To accomplish this goal you must follow these steps:
184182

185-
Here, we split the mesh scoping by material.
183+
#. Use the |split_on_property_type| operator to split the mesh |Scoping|.
184+
This operator splits a |Scoping| on a given property (elshape and/or material, since 2025R1 it supports any
185+
scalar property field name contained in the mesh property fields). The split |Scoping| is stored in the DPF
186+
collection called |ScopingsContainer|, where they are ordered by *labels*. In this case, you get *labels* with
187+
the property used to split the |Scoping|.
188+
189+
#. Create the split |MeshedRegion| objects using the |from_scopings| operator for the |Scoping| of interest.
190+
The split parts are stored in the DPF collection called |MeshesContainer| where they are also ordered by *labels*.
191+
These *labels* are corresponding to the "mat" labels gotten with the |split_on_property_type| operator.
192+
193+
Here, we split the mesh scoping by material and create a |MeshedRegion| for all the split |Scoping| in the
194+
|ScopingsContainer|.
186195

187196
.. tab-set::
188197

0 commit comments

Comments
 (0)