#
import smesh
+smesh.SetCurrentStudy(salome.myStudy)
+
def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
aFilterMgr = smesh.smesh.CreateFilterManager()
aFilter = aFilterMgr.CreateFilter()
isBlocksTest = 0 # False
isMeshTest = 1 # True
+smesh.SetCurrentStudy(salome.myStudy)
GEOM_Spanner.MakeSpanner(geompy, math, isBlocksTest, isMeshTest, smesh)
modulecatalog = naming_service.Resolve("/Kernel/ModulCatalog")
smesh = lcc.FindOrLoadComponent("FactoryServer", "SMESH")
+smesh.SetCurrentStudy(myStudy)
myStudyBuilder = myStudy.NewBuilder()
if myStudyBuilder is None:
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create hexahedrical mesh on piece
# ---------------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create hexahedrical mesh on piece
# ---------------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create hexahedrical mesh on piece
# ---------------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a mesh
# -------------
# Maillage
# ========
+smesh.SetCurrentStudy(salome.myStudy)
+
# Creer un maillage hexahedrique
# ------------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Maillage
# ========
+smesh.SetCurrentStudy(salome.myStudy)
+
# Maillage hexahedrique
# ---------------------
# Maillage
# ========
+smesh.SetCurrentStudy(salome.myStudy)
+
# Maillage hexahedrique
# ---------------------
# Meshing
# =======
+smesh.SetCurrentStudy(salome.myStudy)
+
# Create a hexahedral mesh
# ------------------------
# Create a mesh
# =============
+smesh.SetCurrentStudy(salome.myStudy)
+
# Define a mesh on a geometry
# ---------------------------
# Mesh the blocks with hexahedral
# -------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
+
def discretize(x, y, z, n, s=blocks):
p = geo.MakeVertex(x, y, z)
e = geo.GetEdgeNearPoint(s, p)
Face_1 = geompy.MakeFaceHW(100, 100, 1)
geompy.addToStudy( Face_1, "Face_1" )
-#smesh.smesh.SetCurrentStudy(aStudyId)
+smesh.SetCurrentStudy(salome.myStudy)
import StdMeshers
pattern = smesh.GetPattern()
Mesh_1 = smesh.Mesh(Face_1)
# Define a mesh on a geometry
# ---------------------------
+smesh.SetCurrentStudy(salome.myStudy)
+
m = smesh.Mesh(cylinder)
# 2D mesh with BLSURF
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
geompy.addToStudy( Box_1, "Box_1" )
-#smesh.smesh.SetCurrentStudy(theStudy)
+smesh.SetCurrentStudy(salome.myStudy)
import StdMeshers
Mesh_1 = smesh.Mesh(Box_1)
Regular_1D = Mesh_1.Segment()