From 1d63ac03eac5066bad832883bc69ef39a09e7d68 Mon Sep 17 00:00:00 2001 From: akk Date: Fri, 11 Mar 2005 13:03:55 +0000 Subject: [PATCH] Edition of the data tree --- examples/InLine_Nut.py | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/examples/InLine_Nut.py b/examples/InLine_Nut.py index f116a9a..8a4f681 100755 --- a/examples/InLine_Nut.py +++ b/examples/InLine_Nut.py @@ -109,27 +109,28 @@ def Mesh(theNameOfTheShape = "Cut_1", theAverageLength = 5, theMaxElementArea = 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() -- 2.30.2