mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 20:20:33 +05:00
22394: [CEA 984] Propagation of the number of segments and propagation of the distribution
This commit is contained in:
parent
ebcf93e362
commit
7f64dee89e
@ -11,7 +11,8 @@ from salome.smesh import smeshBuilder
|
||||
smesh = smeshBuilder.New(salome.myStudy)
|
||||
|
||||
# create a box
|
||||
box = geompy.MakeBoxDXDYDZ(10., 10., 10.)
|
||||
base = geompy.MakeSketcher("Sketcher:F 0 0:TT 10 0:TT 20 10:TT 0 10:WF", theName="F")
|
||||
box = geompy.MakePrismDXDYDZ( base, 0,0,10 )
|
||||
geompy.addToStudy(box, "Box")
|
||||
|
||||
# get one edge of the box to put local hypothesis on
|
||||
@ -20,7 +21,7 @@ EdgeX = geompy.GetEdgeNearPoint(box, p5)
|
||||
geompy.addToStudyInFather(box, EdgeX, "Edge [0,0,0 - 10,0,0]")
|
||||
|
||||
# create a hexahedral mesh on the box
|
||||
hexa = smesh.Mesh(box, "Box : hexahedrical mesh")
|
||||
hexa = smesh.Mesh(box, "Propagation of hypothesis")
|
||||
|
||||
# set global algorithms and hypotheses
|
||||
algo1D = hexa.Segment()
|
||||
@ -28,15 +29,37 @@ hexa.Quadrangle()
|
||||
hexa.Hexahedron()
|
||||
algo1D.NumberOfSegments(4)
|
||||
|
||||
# create a sub-mesh with local 1D hypothesis and propagation
|
||||
# create a sub-mesh with local 1D hypothesis and "Propagation of 1D Hypothesis"
|
||||
algo_local = hexa.Segment(EdgeX)
|
||||
|
||||
# define "Arithmetic1D" hypothesis to cut an edge in several segments with increasing length
|
||||
algo_local.Arithmetic1D(1, 4)
|
||||
|
||||
# define "Propagation" hypothesis that propagates all other 1D hypotheses
|
||||
# from all edges on the opposite side of a face in case of quadrangular faces
|
||||
# define "Propagation" hypothesis that propagates "Arithmetic1D" hypothesis
|
||||
# from 'EdgeX' on opposite sides of all quadilateral faces
|
||||
algo_local.Propagation()
|
||||
|
||||
# compute the mesh
|
||||
# compute the mesh which contains prisms
|
||||
hexa.Compute()
|
||||
|
||||
|
||||
# create another mesh on the box
|
||||
mesh = smesh.Mesh(box, "Propagation of distribution of nodes")
|
||||
|
||||
# set global algorithms and hypotheses
|
||||
algo1D = mesh.Segment()
|
||||
mesh.Quadrangle()
|
||||
mesh.Hexahedron()
|
||||
algo1D.NumberOfSegments(4)
|
||||
|
||||
# create a sub-mesh with local 1D hypothesis and "Propagation of Node Distribution"
|
||||
algo_local = mesh.Segment(EdgeX)
|
||||
algo_local.Arithmetic1D(1, 4)
|
||||
|
||||
# define "Propagation Of Distribution" hypothesis that propagates
|
||||
# distribution of nodes generated by "Arithmetic1D" hypothesis
|
||||
# from 'EdgeX' on opposite sides of all quadilateral faces
|
||||
algo_local.PropagationOfDistribution()
|
||||
|
||||
# compute the mesh which contains hexahedra only
|
||||
mesh.Compute()
|
||||
|
@ -41,6 +41,7 @@ There also exist
|
||||
with other hypotheses:
|
||||
<ul>
|
||||
<li>\ref propagation_anchor "Propagation of 1D Hypothesis on opposite edges"</li>
|
||||
<li>\ref propagofdistribution_anchor "Propagation of Node Distribution on Opposite Edges"</li>
|
||||
<li>\ref viscous_layers_anchor "Viscous layers"</li>
|
||||
<li>\ref quadratic_mesh_anchor "Quadratic mesh"</li>
|
||||
<li>\ref non_conform_allowed_anchor "Non conform mesh allowed"</li>
|
||||
|
@ -38,6 +38,19 @@ has been locally defined on the opposite edge.
|
||||
<br><b>See Also</b> a sample TUI Script of a
|
||||
\ref tui_propagation "Propagation hypothesis" operation
|
||||
|
||||
\anchor propagofdistribution_anchor
|
||||
<h2>Propagation of Node Distribution on Opposite Edges</h2>
|
||||
|
||||
<b>Propagation of Node Distribution on Opposite Edges</b> allows to propagate
|
||||
distribution of nodes onto an opposite edge. If a local hypothesis and
|
||||
propagation are defined on an edge of a quadrangular face, the
|
||||
opposite edge will have the same number of nodes and the same
|
||||
relations between segment lengths, unless another hypothesis
|
||||
has been locally defined on the opposite edge.
|
||||
|
||||
<br><b>See Also</b> a sample TUI Script of a
|
||||
\ref tui_propagation "Propagation hypothesis" operation
|
||||
|
||||
\anchor quadrangle_preference_anchor
|
||||
<h2>Quadrangle Preference</h2>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user