0020431: EDF 1020 SMESH : Radial Mesh of a cylinder

This commit is contained in:
dmv 2009-11-05 14:37:39 +00:00
parent a17f232b90
commit 61d2e99a72
2 changed files with 31 additions and 0 deletions

View File

@ -18,4 +18,6 @@ and the bottom faces of a cylinder"
\image html mesh_radquad_02.png "Radial Quadrangle 2D mesh on a part of circle"
<br><b>See Also</b> a sample
\ref tui_radial_quadrangle "TUI Script".
*/

View File

@ -511,6 +511,35 @@ Quadrangle_2D = Mesh_1.Quadrangle()
Mesh_1.Compute()
\endcode
\anchor tui_radial_quadrangle
<h2> Radial Quadrangle 1D2D example </h2>
\code
import salome
import geompy
import smesh
import StdMeshers
# Create face from the wire and add to study
WirePath = geompy.MakeSketcher("Sketcher:F 0 0:TT 20 0:R 90:C 20 90:WW", [0, 0, 0, 1, 0, 0, 0, 0, 1])
Face = geompy.MakeFace(WirePath,1)
geompy.addToStudy(Face,"Face")
# Define geometry for mesh, and 1D parameters
mesh = smesh.Mesh(Face)
Wire_discretisation = mesh.Segment()
Nb_Segments = Wire_discretisation.NumberOfSegments(5)
Nb_Segments.SetDistrType( 0 )
# Define 2D parameters and Radial Quadrange hypothesis
Number_of_Layers = smesh.CreateHypothesis('NumberOfLayers2D')
Number_of_Layers.SetNumberOfLayers( 4 )
mesh.AddHypothesis(Number_of_Layers)
RadialQuadrangle_1D2D = smesh.CreateHypothesis('RadialQuadrangle_1D2D')
mesh.AddHypothesis(RadialQuadrangle_1D2D)
mesh.Compute()
\endcode
\n Other meshing algorithms: