X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fexamples%2Fdefining_hypotheses_ex13.py;h=c7c736cff55832dae27ac466bee72994eb6b46a1;hb=63879abd44911e419cdfe602c837c8884f3fbe12;hp=0bcdcf60a2bc2b777cf8576d8c4fdcf2f743b0fd;hpb=d5029840731bccaa1718e65f0abf3b19198c7293;p=modules%2Fsmesh.git diff --git a/doc/salome/examples/defining_hypotheses_ex13.py b/doc/salome/examples/defining_hypotheses_ex13.py index 0bcdcf60a..c7c736cff 100644 --- a/doc/salome/examples/defining_hypotheses_ex13.py +++ b/doc/salome/examples/defining_hypotheses_ex13.py @@ -1,7 +1,7 @@ # Radial Quadrangle 1D-2D example import salome -salome.salome_init() +salome.salome_init_without_session() import GEOM from salome.geom import geomBuilder geompy = geomBuilder.New() @@ -25,15 +25,18 @@ radial_Quad_algo = mesh.Quadrangle(algo=smeshBuilder.RADIAL_QUAD) # The Radial Quadrange algorithm can work without any hypothesis # In this case it uses "Default Nb of Segments" preferences parameter to discretize edges +# So by default there will be 15 segments in both radial and circular directions mesh.Compute() # The Radial Quadrange uses global or local 1d hypotheses if it does # not have its own hypotheses. # Define global hypotheses to discretize radial edges and a local one for circular edge +# So that there will be 5 radial layers and 10 circular segments global_Nb_Segments = mesh.Segment().NumberOfSegments(5) local_Nb_Segments = mesh.Segment(circle).NumberOfSegments(10) mesh.Compute() # Define own parameters of Radial Quadrange algorithm +# The number of radial layers will be 4 radial_Quad_algo.NumberOfLayers( 4 ) mesh.Compute()