#HYPOTHESIS CREATION
print "-------------------------- Average length"
theName = "AverageLength" + str(theAverageLength)
- hAvLength = smesh.CreateHypothesis( "LocalLength", "libStdMeshersEngine.so" )
+ hAvLength = smesh.CreateHypothesis( "LocalLength", "StdMeshersEngine" )
hAvLength.SetLength( theAverageLength )
print hAvLength.GetName()
print hAvLength.GetId()
print "-------------------------- MaxElementArea"
theName = "MaxElementArea" + str( theMaxElementArea )
- hArea = smesh.CreateHypothesis( "MaxElementArea", "libStdMeshersEngine.so" )
+ hArea = smesh.CreateHypothesis( "MaxElementArea", "StdMeshersEngine" )
hArea.SetMaxElementArea( theMaxElementArea )
print hArea.GetName()
print hArea.GetId()
print "-------------------------- MaxElementVolume"
theName = "MaxElementVolume" + str( theMaxElementVolume )
- hVolume = smesh.CreateHypothesis( "MaxElementVolume", "libStdMeshersEngine.so" )
+ hVolume = smesh.CreateHypothesis( "MaxElementVolume", "StdMeshersEngine" )
hVolume.SetMaxElementVolume( theMaxElementVolume )
print hVolume.GetName()
print hVolume.GetId()
print "-------------------------- Regular_1D"
- algoReg1D = smesh.CreateHypothesis( "Regular_1D", "libStdMeshersEngine.so" )
+ algoReg1D = smesh.CreateHypothesis( "Regular_1D", "StdMeshersEngine" )
listHyp = algoReg1D.GetCompatibleHypothesis()
for hyp in listHyp:
print hyp
SetName(ObjectToID(algoReg1D), "Wire discretisation")
print "-------------------------- MEFISTO_2D"
- algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "libStdMeshersEngine.so" )
+ algoMef = smesh.CreateHypothesis( "MEFISTO_2D", "StdMeshersEngine" )
listHyp = algoMef.GetCompatibleHypothesis()
for hyp in listHyp:
print hyp
SetName(ObjectToID(algoMef), "Triangle (Mefisto)")
print "-------------------------- NETGEN_3D"
- algoNg = smesh.CreateHypothesis( "NETGEN_3D", "libNETGENEngine.so" )
+ algoNg = smesh.CreateHypothesis( "NETGEN_3D", "NETGENEngine" )
for hyp in listHyp:
print hyp
print algoNg.GetName()