From 8392fd7929645680c86f95c87d650d1f0adde9c3 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 13 Dec 2007 11:41:17 +0000 Subject: [PATCH] NPAL18084: add a new simple sample of GEOM/SMESH. --- doc/salome/gui/SMESH/doxyfile.in | 2 +- .../gui/SMESH/images/mesh_cylinder_hexa.png | Bin 0 -> 17404 bytes .../input/introduction_to_mesh_python.doc | 2 +- .../gui/SMESH/input/tui_creating_meshes.doc | 11 +- src/SMESH_SWIG/Makefile.am | 1 + src/SMESH_SWIG/ex24_cylinder.py | 104 ++++++++++++++++++ 6 files changed, 117 insertions(+), 3 deletions(-) create mode 100644 doc/salome/gui/SMESH/images/mesh_cylinder_hexa.png create mode 100644 src/SMESH_SWIG/ex24_cylinder.py diff --git a/doc/salome/gui/SMESH/doxyfile.in b/doc/salome/gui/SMESH/doxyfile.in index 53d07c117..37ef2d45f 100755 --- a/doc/salome/gui/SMESH/doxyfile.in +++ b/doc/salome/gui/SMESH/doxyfile.in @@ -19,7 +19,7 @@ WARNINGS = YES INPUT = @srcdir@/input FILE_PATTERNS = *.doc IMAGE_PATH = @srcdir@/images - +EXAMPLE_PATH = ../../../share/salome/src/SMESH_SWIG #--------------------------------------------------------------------------- #HTML related options #--------------------------------------------------------------------------- diff --git a/doc/salome/gui/SMESH/images/mesh_cylinder_hexa.png b/doc/salome/gui/SMESH/images/mesh_cylinder_hexa.png new file mode 100644 index 0000000000000000000000000000000000000000..f95dc67f7910f3e391158c94c238a7085f5ab9d5 GIT binary patch literal 17404 zcmZ^rXFOYf`1d1rY(hefkOV2US5bQ;Lao*+irQ60)o9h;GlJSXXlvAHYt$Y^m6}Cs zQ>{|Ft=<3W@4o-{v-?RNoa3CFbA7Mt`n<2tH!pEU*L4{nTo4cl#DK$UnSelK)*uj= zodygXVI3OP0D%x7oR<0xi>RMZ+J>$TK3s3s`5O^_(*Z6aY@=k<632$5=BQGOn;EU5 z_-s+CUWxOkEY)5{C3Jxem(=4dj9zp$JXcGwW4#J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zs>pg?mM3X2?QXe*pQc-{ZCa%9ke#1;a_jAB{%=NVgvve-Q|2>{z9hBmsi ze>qQ(&t!_Y@*j?i8Jh*|scLCHi1`Zay~4>hw{Ewl1X-*A)F{#IqXfHaQ2-5n11GDr zgWGAo9w8 z{}+HPs};0~jm`{idrv(l{QCTd5ZxFVjj}P!fue~O1A36^qYZ3$oK^<8S`{4X;J&#G zT8@!%;}#Mb{pMn!epUYk z*-VARfwLGv2jX=?FA>32f}FM|R|aD?cJHK8AQeMTqv$c)ScsBYI=y(C(0-VwAM0au z{w=`dmU(hVamM?$NvM`oCj&6M#2$K=gM_3zXz-b9KRL-fuS1mROKCs;n|RV*yFjq^ zSZc2w0>3t)o9)CE4D3PFV#U0S;ko4zjI0!xR!wovB@KL>r~M9*UME1CpuxyCxa;9Q z3;1*r{y3chBTa$^nIKSbT?8h9JbCp?EvN`acN&vt-9}QaGMDy?qiS;V3&wOMG;Ru?Lupy=5&1HNbKYSW^NYE6%*D)o|9oKpS0aWC7BTz zJRJ*|i&-=!9xP~!z4W{PTcJ?oQB}#33!IKzX%_qDwikRj&zGI}`_1Do&u29ASt)uP zlsm}xSD?gz!I4Y0FpZs~N#J2^zw-shdKS$dhhL$5KONi)4vGLdZYS7f^k*+<=1x=a zNR)E2Tf!0efZdTxufYGOz@h`{O(Hc9`93MSGy-k^arEdD=YoS;96=Ebr%$%$O#gCO zRWfD+N0W${bD&+$|33?V*jN}EObu4Onw$G`f=wyaTmGH olk&h5G8!Ee1n^N3z5n@lDU}BYmHI9Pp6bEi>FVdQ&MBb@0DpqIJOBUy literal 0 HcmV?d00001 diff --git a/doc/salome/gui/SMESH/input/introduction_to_mesh_python.doc b/doc/salome/gui/SMESH/input/introduction_to_mesh_python.doc index eb475e48a..2fcc329a2 100644 --- a/doc/salome/gui/SMESH/input/introduction_to_mesh_python.doc +++ b/doc/salome/gui/SMESH/input/introduction_to_mesh_python.doc @@ -74,4 +74,4 @@ # Create a groupe of faces \n tetra.Group(group) -*/ \ No newline at end of file +*/ diff --git a/doc/salome/gui/SMESH/input/tui_creating_meshes.doc b/doc/salome/gui/SMESH/input/tui_creating_meshes.doc index 087b2de25..25bf50268 100644 --- a/doc/salome/gui/SMESH/input/tui_creating_meshes.doc +++ b/doc/salome/gui/SMESH/input/tui_creating_meshes.doc @@ -2,7 +2,7 @@ \page tui_creating_meshes_page Creating Meshes -\n First of all see \ref tui_creating_meshes_page "Example of 3d mesh generation", +\n First of all see \ref introduction_to_mesh_python_page "Example of 3d mesh generation", which is an example of good python script style for Mesh module.
@@ -172,4 +172,13 @@ tetra.Compute() tetra.ExportMED("/tmp/meshMED.med", 0) \endcode +
+

How to mesh a cylinder with hexahedrons?

+Here you can see an example of python script, creating a hexahedral +mesh on a cylinder. And a picture below the source code of the script, +demonstrating the resulting mesh. +\include /dn20/salome/jfa/V4/SRC/SMESH_SRC/src/SMESH_SWIG/ex24_cylinder.py + +\image html mesh_cylinder_hexa.png + */ diff --git a/src/SMESH_SWIG/Makefile.am b/src/SMESH_SWIG/Makefile.am index 09ab5553d..c46bde084 100644 --- a/src/SMESH_SWIG/Makefile.am +++ b/src/SMESH_SWIG/Makefile.am @@ -55,6 +55,7 @@ dist_salomescript_DATA= \ ex18_dome2.py \ ex19_sphereINcube.py \ ex21_lamp.py \ + ex24_cylinder.py \ SMESH_test.py\ SMESH_test0.py\ SMESH_test1.py \ diff --git a/src/SMESH_SWIG/ex24_cylinder.py b/src/SMESH_SWIG/ex24_cylinder.py new file mode 100644 index 000000000..25a1e96d6 --- /dev/null +++ b/src/SMESH_SWIG/ex24_cylinder.py @@ -0,0 +1,104 @@ +# CEA/LGLS 2007, Francis KLOSS (OCC) +# ================================== + +import math + +import geompy +import smesh + +geo = geompy + +# Parameters +# ---------- + +radius = 50 +height = 200 + +# Build a cylinder +# ---------------- + +base = geo.MakeVertex(0, 0, 0) +direction = geo.MakeVectorDXDYDZ(0, 0, 1) + +cylinder = geo.MakeCylinder(base, direction, radius, height) + +geo.addToStudy(cylinder, "cylinder") + +# Build blocks +# ------------ + +size = radius/2.0 + +box_rot = geo.MakeBox(-size, -size, 0, +size, +size, height) +box_axis = geo.MakeLine(base, direction) +box = geo.MakeRotation(box_rot, box_axis, math.pi/4) + +hole = geo.MakeCut(cylinder, box) + +plane_trim = 2000 + +plane_a = geo.MakePlane(base, geo.MakeVectorDXDYDZ(1, 0, 0), plane_trim) +plane_b = geo.MakePlane(base, geo.MakeVectorDXDYDZ(0, 1, 0), plane_trim) + +blocks_part = geo.MakePartition([hole], [plane_a, plane_b], [], [], geo.ShapeType["SOLID"]) +blocks_list = [box] + geo.SubShapeAll(blocks_part, geo.ShapeType["SOLID"]) +blocks_all = geo.MakeCompound(blocks_list) +blocks = geo.MakeGlueFaces(blocks_all, 0.0001) + +geo.addToStudy(blocks, "cylinder:blocks") + +# Build geometric groups +# ---------------------- + +def group(name, shape, type, base=None, direction=None): + t = geo.ShapeType[type] + g = geo.CreateGroup(shape, t) + + geo.addToStudy(g, name) + g.SetName(name) + + if base!=None: + l = geo.GetShapesOnPlaneWithLocationIDs(shape, t, direction, base, geo.GEOM.ST_ON) + geo.UnionIDs(g, l) + + return g + +group_a = group("baseA", blocks, "FACE", base, direction) + +base_b = geo.MakeVertex(0, 0, height) +group_b = group("baseB", blocks, "FACE", base_b, direction) + +group_1 = group("limit", blocks, "SOLID") +group_1_all = geo.SubShapeAllIDs(blocks, geo.ShapeType["SOLID"]) +geo.UnionIDs(group_1, group_1_all) +group_1_box = geo.GetBlockNearPoint(blocks, base) +geo.DifferenceList(group_1, [group_1_box]) + +# Mesh the blocks with hexahedral +# ------------------------------- + +def discretize(x, y, z, n, s=blocks): + p = geo.MakeVertex(x, y, z) + e = geo.GetEdgeNearPoint(s, p) + a = hexa.Segment(e) + a.NumberOfSegments(n) + a.Propagation() + +hexa = smesh.Mesh(blocks) + +hexa_1d = hexa.Segment() +hexa_1d.NumberOfSegments(1) + +discretize(+radius , +radius, 0, 5) +discretize(-radius , +radius, 0, 8) +discretize((radius+size)/2, 0, 0, 10) +discretize( +radius, 0, height/2, 20) + +hexa.Quadrangle() +hexa.Hexahedron() + +hexa.Compute() + +hexa.Group(group_a) +hexa.Group(group_b) +hexa.Group(group_1) -- 2.39.2