From: dmv Date: Thu, 5 Nov 2009 14:37:39 +0000 (+0000) Subject: 0020431: EDF 1020 SMESH : Radial Mesh of a cylinder X-Git-Tag: V5_1_3rc2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61d2e99a727426cd87b3fc596883a9a59e257aea;p=modules%2Fsmesh.git 0020431: EDF 1020 SMESH : Radial Mesh of a cylinder --- diff --git a/doc/salome/gui/SMESH/input/radial_quadrangle_1D2D_algo.doc b/doc/salome/gui/SMESH/input/radial_quadrangle_1D2D_algo.doc index 9b4fa9a02..ba7d9307c 100644 --- a/doc/salome/gui/SMESH/input/radial_quadrangle_1D2D_algo.doc +++ b/doc/salome/gui/SMESH/input/radial_quadrangle_1D2D_algo.doc @@ -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" +
See Also a sample +\ref tui_radial_quadrangle "TUI Script". */ diff --git a/doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc b/doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc index 0446180de..273241d2a 100644 --- a/doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc +++ b/doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc @@ -511,6 +511,35 @@ Quadrangle_2D = Mesh_1.Quadrangle() Mesh_1.Compute() \endcode +\anchor tui_radial_quadrangle +

Radial Quadrangle 1D2D example

+\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: