Merge branch 'master' into gni/evolution

This commit is contained in:
GERALD NICOLAS 2021-08-23 15:05:27 +02:00
commit 408a6f6795
207 changed files with 7966 additions and 5583 deletions

View File

@ -27,7 +27,7 @@ INCLUDE(CMakeDependentOption)
STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
SET(${PROJECT_NAME_UC}_MAJOR_VERSION 9)
SET(${PROJECT_NAME_UC}_MINOR_VERSION 6)
SET(${PROJECT_NAME_UC}_MINOR_VERSION 7)
SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
SET(${PROJECT_NAME_UC}_VERSION
${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})

View File

@ -1,7 +1,7 @@
# 3d mesh generation and mesh exploration
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -19,14 +19,14 @@
INCLUDE(tests.set)
SET(SALOME_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/salome_test_driver.py")
SET(PYTHON_TEST_DRIVER "$ENV{KERNEL_ROOT_DIR}/bin/salome/appliskel/python_test_driver.py")
SET(COMPONENT_NAME SMESH)
SET(TIMEOUT 300)
FOREACH(tfile ${GOOD_TESTS} ${BAD_TESTS})
GET_FILENAME_COMPONENT(BASE_NAME ${tfile} NAME_WE)
SET(TEST_NAME SMESH_${BASE_NAME})
ADD_TEST(${TEST_NAME} python ${SALOME_TEST_DRIVER} ${TIMEOUT} ${tfile})
ADD_TEST(${TEST_NAME} python ${PYTHON_TEST_DRIVER} ${TIMEOUT} ${tfile})
SET_TESTS_PROPERTIES(${TEST_NAME} PROPERTIES LABELS "${COMPONENT_NAME}")
ENDFOREACH()

View File

@ -16,7 +16,7 @@ import os
import salome
salome.standalone()
salome.salome_init()
salome.salome_init_without_session()
import SMESH
from salome.smesh import smeshBuilder

View File

@ -1,5 +1,5 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -50,4 +50,13 @@ isDone = Mesh_1.Compute()
smesh.SetName(NETGEN_1D_2D_3D.GetAlgorithm(), 'NETGEN 1D-2D-3D')
smesh.SetName(Mesh_1.GetMesh(), 'Mesh_1')
assert(Mesh_1.GetMesh().NbTetras()>=5)
nbOfTetraExp = 5
assert(Mesh_1.GetMesh().NbTetras()>=nbOfTetraExp)
#Mesh_1.ExportMED("toto.med")
import medcoupling as mc
mv_mm = Mesh_1.ExportMEDCoupling()
assert(mc.MEDCoupling1SGTUMesh(mv_mm[0]).getNumberOfCells()>=nbOfTetraExp)

View File

@ -0,0 +1,175 @@
#!/usr/bin/env python
import sys
import salome
import unittest
class SMESHExportOfFieldsInMemory(unittest.TestCase):
def testMEDCouplingFieldOnCells(self):
"""
Test focuses on ExportMEDCoupling method in the context of MED_CELL field output.
"""
salome.standalone()
salome.salome_init()
###
### SHAPER component
###
from salome.shaper import model
model.begin()
partSet = model.moduleDocument()
### Create Part
Part_1 = model.addPart(partSet)
Part_1_doc = Part_1.document()
### Create Box
Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
### Create Plane
Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/XOY"), 5, False)
### Create Plane
Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), 5, False)
### Create Partition
Partition_1_objects = [model.selection("FACE", "Plane_1"),
model.selection("FACE", "Plane_2"),
model.selection("SOLID", "Box_1_1")]
Partition_1 = model.addPartition(Part_1_doc, Partition_1_objects, keepSubResults = True)
### Create Field
Field_1_objects = [model.selection("SOLID", "Partition_1_1_2"),
model.selection("SOLID", "Partition_1_1_4"),
model.selection("SOLID", "Partition_1_1_1"),
model.selection("SOLID", "Partition_1_1_3")]
Field_1 = model.addField(Part_1_doc, 1, "DOUBLE", 1, ["Comp 1"], Field_1_objects)
Field_1.addStep(0, 0, [[0], [1], [2], [3], [4]])
model.end()
###
### SHAPERSTUDY component
###
model.publishToShaperStudy()
import SHAPERSTUDY
Partition_1_1, Field_1_1 = SHAPERSTUDY.shape(model.featureStringId(Partition_1))
###
### SMESH component
###
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
#smesh.SetEnablePublish( False ) # Set to False to avoid publish in study if not needed or in some particular situations:
# multiples meshes built in parallel, complex and numerous mesh edition (performance)
Mesh_1 = smesh.Mesh(Partition_1_1)
Regular_1D = Mesh_1.Segment()
Local_Length_1 = Regular_1D.LocalLength(5,None,1e-07)
Quadrangle_2D = Mesh_1.Quadrangle(algo=smeshBuilder.QUADRANGLE)
Hexa_3D = Mesh_1.Hexahedron(algo=smeshBuilder.Hexa)
isDone = Mesh_1.Compute()
smesh.SetName(Mesh_1, 'Mesh_1')
#### Mesh_1.ExportMED( r'Mesh_with_one_field_on_cells.med', 0, 41, 1, Mesh_1.GetMesh(), 1, [ Field_1_1 ], '',-1 )
mfd = Mesh_1.ExportMEDCoupling(0, Mesh_1.GetMesh(), 1, [ Field_1_1 ], '',-1 )#### <- important line of test is here !
self.assertEqual(len(mfd.getMeshes()),1)
self.assertEqual(len(mfd.getFields()),1)
f = mfd.getFields()[0][0].field(mfd.getMeshes()[0])
f.checkConsistencyLight()
import medcoupling
self.assertEqual(f.getDiscretization().getEnum(),medcoupling.ON_CELLS)
self.assertTrue(f.getMesh().getNumberOfCells()>1)
pass
def testMEDCouplingFieldOnNodes(self):
"""
Test focuses on ExportMEDCoupling method in the context of MED_NODES field output.
"""
salome.standalone()
salome.salome_init()
###
### SHAPER component
###
from salome.shaper import model
model.begin()
partSet = model.moduleDocument()
### Create Part
Part_1 = model.addPart(partSet)
Part_1_doc = Part_1.document()
### Create Box
Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
### Create Plane
Plane_4 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/XOY"), 5, False)
### Create Plane
Plane_5 = model.addPlane(Part_1_doc, model.selection("FACE", "PartSet/YOZ"), 5, False)
### Create Partition
Partition_1_objects = [model.selection("FACE", "Plane_1"),
model.selection("FACE", "Plane_2"),
model.selection("SOLID", "Box_1_1")]
Partition_1 = model.addPartition(Part_1_doc, Partition_1_objects, keepSubResults = True)
### Create Field
Field_2_objects = [model.selection("VERTEX", "[Partition_1_1_2/Modified_Face&Box_1_1/Back][Partition_1_1_2/Modified_Face&Box_1_1/Left][Partition_1_1_2/Modified_Face&Box_1_1/Top]"),
model.selection("VERTEX", "Partition_1_1_2/Generated_Vertex&Plane_2/Plane_2&new_weak_name_1"),
model.selection("VERTEX", "[Partition_1_1_4/Modified_Face&Box_1_1/Front][Partition_1_1_4/Modified_Face&Box_1_1/Left][Partition_1_1_4/Modified_Face&Box_1_1/Top]"),
model.selection("VERTEX", "Partition_1_1_1/Generated_Vertex&Plane_1/Plane_1&new_weak_name_1"),
model.selection("VERTEX", "[Partition_1_1_1/Modified_Face&Box_1_1/Left][Partition_1_1_1/Modified_Face&Plane_1/Plane_1][Partition_1_1_1/Modified_Face&Plane_2/Plane_2]"),
model.selection("VERTEX", "Partition_1_1_3/Generated_Vertex&Plane_1/Plane_1&new_weak_name_1"),
model.selection("VERTEX", "[Partition_1_1_1/Modified_Face&Box_1_1/Back][Partition_1_1_1/Modified_Face&Box_1_1/Left][Partition_1_1_1/Modified_Face&Box_1_1/Bottom]"),
model.selection("VERTEX", "Partition_1_1_1/Generated_Vertex&Plane_2/Plane_2&new_weak_name_1"),
model.selection("VERTEX", "[Partition_1_1_3/Modified_Face&Box_1_1/Left][Partition_1_1_3/Modified_Face&Box_1_1/Bottom][Partition_1_1_3/Modified_Face&Box_1_1/Front]")]
Field_2 = model.addField(Part_1_doc, 1, "DOUBLE", 1, ["Comp 1"], Field_2_objects)
Field_2.addStep(0, 0, [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9]])
model.end()
###
### SHAPERSTUDY component
###
model.publishToShaperStudy()
import SHAPERSTUDY
Partition_1_1, Field_2_1 = SHAPERSTUDY.shape(model.featureStringId(Partition_1))
###
### SMESH component
###
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()
#smesh.SetEnablePublish( False ) # Set to False to avoid publish in study if not needed or in some particular situations:
# multiples meshes built in parallel, complex and numerous mesh edition (performance)
Mesh_1 = smesh.Mesh(Partition_1_1)
Regular_1D = Mesh_1.Segment()
Local_Length_1 = Regular_1D.LocalLength(5,None,1e-07)
Quadrangle_2D = Mesh_1.Quadrangle(algo=smeshBuilder.QUADRANGLE)
Hexa_3D = Mesh_1.Hexahedron(algo=smeshBuilder.Hexa)
isDone = Mesh_1.Compute()
smesh.SetName(Mesh_1, 'Mesh_1')
# 23th of june 2021 : Bug both in ExportMED and in ExportMEDCoupling
#Mesh_1.ExportMED( r'/tmp/Mesh_with_one_field_on_nodes.med', 0, 41, 1, Mesh_1.GetMesh(), 1, [ Field_2_1 ], '',-1 )
#mfd = Mesh_1.ExportMEDCoupling(0,Mesh_1.GetMesh(), 1, [ Field_2_1 ], '',-1)
if __name__ == '__main__':
unittest.main()

2
doc/salome/examples/blocFissure_01_without_session.py Executable file → Normal file
View File

@ -19,7 +19,7 @@ import sys
# Lancement des cas-tests
import salome
salome.standalone()
salome.salome_init()
salome.salome_init_without_session()
from blocFissure.CasTests.blocFissureTest import blocFissureTest
BLOCFISSURE_TEST = blocFissureTest(["cubeAngle", "cubeAngle_2","cubeCoin", "cubeMilieu", "cubeTransverse"])

2
doc/salome/examples/blocFissure_02_without_session.py Executable file → Normal file
View File

@ -22,7 +22,7 @@ import sys
# Lancement des cas-tests
import salome
salome.standalone()
salome.salome_init()
salome.salome_init_without_session()
from blocFissure.CasTests.blocFissureTest import blocFissureTest
BLOCFISSURE_TEST = blocFissureTest(["cylindre", "cylindre_2", "disquePerce", "faceGauche","ellipse_1", "ellipse_2"])

2
doc/salome/examples/blocFissure_03_without_session.py Executable file → Normal file
View File

@ -19,7 +19,7 @@ import sys
# Lancement des cas-tests
import salome
salome.standalone()
salome.salome_init()
salome.salome_init_without_session()
from blocFissure.CasTests.blocFissureTest import blocFissureTest
BLOCFISSURE_TEST = blocFissureTest(["eprouvetteCourbe", "eprouvetteDroite", "eprouvetteDroite_2"])

2
doc/salome/examples/blocFissure_04_without_session.py Executable file → Normal file
View File

@ -17,7 +17,7 @@ import sys
# Lancement des cas-tests
import salome
salome.standalone()
salome.salome_init()
salome.salome_init_without_session()
from blocFissure.CasTests.blocFissureTest import blocFissureTest
BLOCFISSURE_TEST = blocFissureTest(["fissureCoude_1", "fissureCoude_2", "fissureCoude_3", "fissureCoude_4", "fissureCoude_5"])

2
doc/salome/examples/blocFissure_05_without_session.py Executable file → Normal file
View File

@ -17,7 +17,7 @@ import sys
# Lancement des cas-tests
import salome
salome.standalone()
salome.salome_init()
salome.salome_init_without_session()
from blocFissure.CasTests.blocFissureTest import blocFissureTest
BLOCFISSURE_TEST = blocFissureTest(["fissureCoude_6", "fissureCoude_7", "fissureCoude_8", "fissureCoude_9", "fissureCoude_10"])

2
doc/salome/examples/blocFissure_06_without_session.py Executable file → Normal file
View File

@ -17,7 +17,7 @@ import sys
# Lancement des cas-tests
import salome
salome.standalone()
salome.salome_init()
salome.salome_init_without_session()
from blocFissure.CasTests.blocFissureTest import blocFissureTest
BLOCFISSURE_TEST = blocFissureTest(["fissure_Coude", "fissure_Coude_4"])

2
doc/salome/examples/blocFissure_07_without_session.py Executable file → Normal file
View File

@ -19,7 +19,7 @@ import sys
# Lancement des cas-tests
import salome
salome.standalone()
salome.salome_init()
salome.salome_init_without_session()
from blocFissure.CasTests.blocFissureTest import blocFissureTest
BLOCFISSURE_TEST = blocFissureTest(["vis_1"])

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -3,7 +3,7 @@
import sys
import salome
salome.salome_init()
salome.salome_init_without_session()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder

View File

@ -1,7 +1,7 @@
# Construction of a Mesh
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Construction of a Sub-mesh
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Change priority of sub-meshes in Mesh
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Editing of a mesh
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Export of a Mesh
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -5,7 +5,7 @@
# command creating a blocked cylinder: geompy.MakeDividedCylinder()
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Building a compound of meshes
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.smesh import smeshBuilder

View File

@ -1,7 +1,7 @@
# Mesh Copying
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,5 +1,5 @@
import salome, math
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.smesh import smeshBuilder

View File

@ -1,7 +1,7 @@
# Arithmetic Progression and Geometric Progression
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Deflection and Number of Segments
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Start and End Length
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Local Length
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Maximum Element Area
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Maximum Element Volume
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Length from Edges
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Propagation
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Defining Meshing Algorithms
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -3,7 +3,7 @@
# Project prisms from one meshed box to another mesh on the same box
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -3,7 +3,7 @@
# Project triangles from one meshed face to another mesh on the same box
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# 1D Mesh with Fixed Points example
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -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()

View File

@ -1,7 +1,7 @@
# Quadrangle Parameters example 1 (meshing a face with 3 edges)
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Quadrangle Parameters example 2 (using different types)
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.smesh import smeshBuilder

View File

@ -1,7 +1,7 @@
# "Import 2D Elements from Another Mesh" example
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Viscous layers construction
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -3,7 +3,7 @@
# for meshing a box with quadrangles with refinement near vertices
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.smesh import smeshBuilder

View File

@ -3,7 +3,7 @@
import sys
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder

View File

@ -2,7 +2,7 @@
# initialize SALOME and modules
import salome, SMESH
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.smesh import smeshBuilder

View File

@ -2,7 +2,7 @@
# initialize SALOME and modules
import salome, SMESH
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.smesh import smeshBuilder

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Double nodes
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
import SMESH

View File

@ -1,7 +1,7 @@
# Borders at multi-connection
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
import SMESH

View File

@ -1,7 +1,7 @@
# "Elements of a domain" filter and "Renumber" hypothesis
import salome, SMESH
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.smesh import smeshBuilder

View File

@ -0,0 +1,9 @@
# Find if SALOME_ACTOR_DELEGATE_TO_VTK is activated
import os
import sys
if 'SALOME_ACTOR_DELEGATE_TO_VTK' not in os.environ:
raise RuntimeError('SALOME_ACTOR_DELEGATE_TO_VTK is not set!')

View File

@ -5,7 +5,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Creating groups of faces separated by sharp edges
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
from salome.smesh import smeshBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Minimum Distance
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()

View File

@ -1,7 +1,7 @@
# Add Node
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()

View File

@ -1,7 +1,7 @@
# Add 0D Element
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Add Polygon
import salome
salome.salome_init()
salome.salome_init_without_session()
import SMESH, SALOMEDS
from salome.smesh import smeshBuilder

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.smesh import smeshBuilder
smesh = smeshBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -4,7 +4,7 @@
# a fully functional method is ExtrusionSweepObjects()
import salome, math
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -3,7 +3,7 @@
import math
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Split volumic elements into tetrahedrons
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Usage of Extrusion 3D meshing algorithm
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -3,7 +3,7 @@
# for meshing a ring face with quadrangles
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
from salome.smesh import smeshBuilder

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -1,7 +1,7 @@
# Usage of Radial Prism 3D meshing algorithm
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()
import SMESH

View File

@ -1,7 +1,7 @@
# Split bi-quadratic to linear
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -3,7 +3,7 @@
import sys
import salome
salome.salome_init()
salome.salome_init_without_session()
###
### GEOM component

View File

@ -13,7 +13,7 @@ ComputeMeshes = True
import salome
salome.salome_init()
salome.salome_init_without_session()
theStudy = salome.myStudy
#
import iparameters

2
doc/salome/examples/test_smeshplugins.py Executable file → Normal file
View File

@ -18,7 +18,7 @@ ComputeMeshes = True
import salome
salome.salome_init()
salome.salome_init_without_session()
theStudy = salome.myStudy
#
import iparameters

View File

@ -113,6 +113,7 @@ SET(GOOD_TESTS
filters_ex39.py
filters_node_nb_conn.py
filters_belong2group.py
find_salome_actor_delegate_to_vtk.py
grouping_elements_ex01.py
grouping_elements_ex02.py
grouping_elements_ex03.py
@ -197,6 +198,7 @@ set(SESSION_FREE_TESTS
basic_geom_smesh_without_session.py
basic_shaper_smesh_without_session.py
shaper_smesh_groups_without_session.py
basic_smesh_output_with_mc_field.py
)
SET(EXAMPLES_TESTS ${BAD_TESTS} ${GOOD_TESTS} ${SESSION_FREE_TESTS} testme.py)

View File

@ -1,7 +1,7 @@
# Scale
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

View File

@ -2,7 +2,7 @@
import salome
salome.salome_init()
salome.salome_init_without_session()
import GEOM
from salome.geom import geomBuilder
geompy = geomBuilder.New()

Some files were not shown because too many files have changed in this diff Show More