@@ -20,14 +20,14 @@ def createScene(rootNode):
2020 topoLines = rootNode .addChild ('EdgeTopology' )
2121 topoLines .addObject ('RodStraightSection' , name = 'StraightSection' ,
2222 length = 980.0 , radius = 0.9 ,
23- nbEdgesCollis = 50 , nbEdgesVisu = 200 ,
24- youngModulus = 20000 , massDensity = 0.1 , poissonRatio = 0.3 )
23+ nbBeams = 50 , nbEdgesCollis = 50 , nbEdgesVisu = 200 ,
24+ youngModulus = 20000 , massDensity = 0.00000155 , poissonRatio = 0.3 )
2525
2626 topoLines .addObject ('RodSpireSection' , name = 'SpireSection' ,
2727 length = 20.0 , radius = 0.9 ,
28- nbEdgesCollis = 10 , nbEdgesVisu = 200 ,
28+ nbBeams = 10 , nbEdgesCollis = 10 , nbEdgesVisu = 200 ,
2929 spireDiameter = 25 , spireHeight = 0 ,
30- youngModulus = 20000 , massDensity = 0.1 , poissonRatio = 0.3 )
30+ youngModulus = 20000 , massDensity = 0.00000155 , poissonRatio = 0.3 )
3131 topoLines .addObject ('WireRestShape' , name = 'BeamRestShape' , template = "Rigid3d" ,
3232 wireMaterials = "@StraightSection @SpireSection" )
3333
@@ -42,14 +42,14 @@ def createScene(rootNode):
4242 BeamMechanics .addObject ('EulerImplicitSolver' , rayleighStiffness = 0.2 , rayleighMass = 0.1 )
4343 BeamMechanics .addObject ('BTDLinearSolver' , verification = False , subpartSolve = False , verbose = False )
4444 BeamMechanics .addObject ('RegularGridTopology' , name = 'MeshLines' ,
45- nx = 60 , ny = 1 , nz = 1 ,
45+ nx = 61 , ny = 1 , nz = 1 ,
4646 xmax = 0.0 , xmin = 0.0 , ymin = 0 , ymax = 0 , zmax = 0 , zmin = 0 ,
4747 p0 = [0 ,0 ,0 ])
4848 BeamMechanics .addObject ('MechanicalObject' , showIndices = False , name = 'DOFs' , template = 'Rigid3d' , ry = - 90 )
4949 BeamMechanics .addObject ('WireBeamInterpolation' , name = 'BeamInterpolation' , WireRestShape = '@../EdgeTopology/BeamRestShape' , printLog = False )
5050 BeamMechanics .addObject ('AdaptiveBeamForceFieldAndMass' , name = 'BeamForceField' , massDensity = 0.00000155 , interpolation = '@BeamInterpolation' )
5151 BeamMechanics .addObject ('InterventionalRadiologyController' , name = 'DeployController' , template = 'Rigid3d' , instruments = 'BeamInterpolation' ,
52- startingPos = [0 , 0 , 0 , 0 , 0 , 0 , 1 ], xtip = [0 , 0 , 0 ], printLog = True ,
52+ topology = "@MeshLines" , startingPos = [0 , 0 , 0 , 0 , 0 , 0 , 1 ], xtip = [0 , 0 , 0 ], printLog = True ,
5353 rotationInstrument = [0 , 0 , 0 ], step = 5. , speed = 5. ,
5454 listening = True , controlledInstrument = 0 )
5555 BeamMechanics .addObject ('LinearSolverConstraintCorrection' , wire_optimization = 'true' , printLog = False )
0 commit comments