]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020431: EDF 1020 SMESH : Radial Mesh of a cylinder
authordmv <dmv@opencascade.com>
Thu, 5 Nov 2009 14:37:39 +0000 (14:37 +0000)
committerdmv <dmv@opencascade.com>
Thu, 5 Nov 2009 14:37:39 +0000 (14:37 +0000)
doc/salome/gui/SMESH/input/radial_quadrangle_1D2D_algo.doc
doc/salome/gui/SMESH/input/tui_defining_hypotheses.doc

index 9b4fa9a025f3ee1463315c6cb2b0d3d5d6a486f3..ba7d9307ce660aa0db6ec673a2fd5aef87ef1d6a 100644 (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".
 */
index 0446180de2b638965b40fdfef9646fcd7c13fe65..273241d2a59db7fc1f2bd4beca3f0b13ccea2d68 100644 (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: