print hyp
print algoReg1D.GetName()
print algoReg1D.GetId()
- SetName(ObjectToID(algoReg1D), "Wire discretisation")
+ SetName(ObjectToID(algoReg1D), "Wire discretisation")
- print "-------------------------- MEFISTO_2D"
- algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" )
- listHyp = algoMef.GetCompatibleHypothesis()
- for hyp in listHyp:
- print hyp
- print algoMef.GetName()
- print algoMef.GetId()
- SetName(ObjectToID(algoMef), "Triangle (Mefisto)")
+ print "-------------------------- MEFISTO_2D"
+ algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" )
+ listHyp = algoMef.GetCompatibleHypothesis()
+ for hyp in listHyp:
+ print hyp
+ print algoMef.GetName()
+ print algoMef.GetId()
+ SetName(ObjectToID(algoMef), "Triangle (Mefisto)")
- print "-------------------------- NETGEN_3D"
-
- algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" )
- print algoNg.GetName()
- print algoNg.GetId()
- SetName(ObjectToID(algoNg), "Tetrahedron (NETGEN)")
- mesh.AddHypothesis(shape_mesh, algoReg1D)
- mesh.AddHypothesis(shape_mesh, algoMef)
- mesh.AddHypothesis(shape_mesh, algoNg)
- smesh.Compute(mesh,shape_mesh)
+ print "-------------------------- NETGEN_3D"
+ algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" )
+ for hyp in listHyp:
+ print hyp
+ print algoNg.GetName()
+ print algoNg.GetId()
+ SetName(ObjectToID(algoNg), "Tetrahedron (NETGEN)")
+ mesh.AddHypothesis(shape_mesh, algoReg1D)
+ mesh.AddHypothesis(shape_mesh, algoMef)
+ mesh.AddHypothesis(shape_mesh, algoNg)
+ smesh.Compute(mesh,shape_mesh)
print "Information about the mesh:"
print "Number of nodes : ", mesh.NbNodes()