Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/bouncingBall/softSphereFalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def createScene(rootNode):
rootNode.gravity=[0,-9810, 0]
rootNode.dt = 0.0001
rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
rootNode.addObject('BlockGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
rootNode.addObject('CollisionPipeline', verbose='0')
rootNode.addObject('BruteForceBroadPhase', name='N2')
rootNode.addObject('BVHNarrowPhase')
Expand Down
2 changes: 1 addition & 1 deletion examples/bouncingBall/softSphereFalling_reduced.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def createScene(rootNode):
rootNode.gravity=[0,-9810, 0]
rootNode.dt = 0.0001
rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
rootNode.addObject('BlockGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
rootNode.addObject('CollisionPipeline', verbose="0")
rootNode.addObject('BruteForceBroadPhase', name="N2")
rootNode.addObject('BVHNarrowPhase')
Expand Down
8 changes: 4 additions & 4 deletions examples/others/SphereOnAPlane/softSphereFalling.pyscn
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ def createScene(rootNode):
lambdaCoeffs = "lambdaCoeffsSphereFine6.txt"

rootNode.addObject('FreeMotionAnimationLoop')
#rootNode.addObject('ProjectedGaussSeidelConstraintSolver', printLog=True, tolerance="1e-6", maxIterations="500", storeLambdas=True)
#rootNode.addObject('BlockGaussSeidelConstraintSolver', printLog=True, tolerance="1e-6", maxIterations="500", storeLambdas=True)
if reductionOn:
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
rootNode.addObject('BlockGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
else:
#rootNode.addObject('ProjectedGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15',storeLambdas=True, lambdaPath="lambdaStored.txt",computeConstraintForces=True)
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15',computeConstraintForces=True)
#rootNode.addObject('BlockGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15',storeLambdas=True, lambdaPath="lambdaStored.txt",computeConstraintForces=True)
rootNode.addObject('BlockGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15',computeConstraintForces=True)
rootNode.addObject('PythonScriptController', filename="lambdaDumper.py", classname="storeLambda", variables="Zetest.txt")


Expand Down
2 changes: 1 addition & 1 deletion examples/others/caduceus/caduceusNG.pyscn
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def createScene(rootNode):


rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', printLog='0', tolerance="1e-6", maxIterations="500")
rootNode.addObject('BlockGaussSeidelConstraintSolver', printLog='0', tolerance="1e-6", maxIterations="500")
rootNode.addObject('CollisionPipeline', verbose="0")
rootNode.addObject('BruteForceBroadPhase', name="N2")
rootNode.addObject('BVHNarrowPhase')
Expand Down
2 changes: 1 addition & 1 deletion examples/others/caduceus/reduced/reduced_caduceusNG.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def createScene(rootNode):
rootNode.VisualStyle.displayFlags="showForceFields"

rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', printLog='0', tolerance="1e-6", maxIterations="500")
rootNode.addObject('BlockGaussSeidelConstraintSolver', printLog='0', tolerance="1e-6", maxIterations="500")
rootNode.addObject('CollisionPipeline', verbose="0")
rootNode.addObject('BruteForceBroadPhase', name="N2")
rootNode.addObject('BVHNarrowPhase')
Expand Down
2 changes: 1 addition & 1 deletion examples/others/hexaBeam/hexaBeam.pyscn
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def createScene(rootNode):
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Visual') # Needed to use components [VisualStyle]

rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', tolerance="1e-12", maxIterations="10000")
rootNode.addObject('BlockGaussSeidelConstraintSolver', tolerance="1e-12", maxIterations="10000")


M1 = rootNode.addChild("M1")
Expand Down
2 changes: 1 addition & 1 deletion examples/softRobots/diamond/diamondRobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def createScene(rootNode):
rootNode.addObject('RequiredPlugin', pluginName=plugins, printLog=False)

rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', tolerance="1e-6", maxIterations="1000")
rootNode.addObject('BlockGaussSeidelConstraintSolver', tolerance="1e-6", maxIterations="1000")
rootNode.addObject('OglSceneFrame', style="Arrows", alignment="TopRight")
rootNode.addObject('VisualStyle', displayFlags='showVisualModels showForceFields')

Expand Down
2 changes: 1 addition & 1 deletion examples/softRobots/diamond/diamondRobotHyperElastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def createScene(rootNode):
rootNode.addObject('OglSceneFrame', style="Arrows", alignment="TopRight")

rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', tolerance="1e-6", maxIterations="1000")
rootNode.addObject('BlockGaussSeidelConstraintSolver', tolerance="1e-6", maxIterations="1000")

modelNode = rootNode.addChild('modelNode')
modelNode.addObject('EulerImplicitSolver', rayleighStiffness='0.1', rayleighMass='0.1')
Expand Down
2 changes: 1 addition & 1 deletion examples/softRobots/finger/finger.pyscn
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def createScene(rootNode):
scene.VisualStyle.displayFlags='showBehavior'

rootNode.addObject("FreeMotionAnimationLoop")
rootNode.addObject("ProjectedGaussSeidelConstraintSolver", maxIterations=1000, tolerance=0.001)
rootNode.addObject("BlockGaussSeidelConstraintSolver", maxIterations=1000, tolerance=0.001)

#finger = ElasticMaterialObject(name="finger",
#volumeMeshFileName="mesh/finger.vtk",
Expand Down
2 changes: 1 addition & 1 deletion examples/softRobots/multiGait/multiGait.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def createScene(rootNode):
rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('EulerImplicitSolver', name='odesolver', firstOrder="false", rayleighStiffness='0.1',
rayleighMass='0.1')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', printLog='0', tolerance="1e-15", maxIterations="5000")
rootNode.addObject('BlockGaussSeidelConstraintSolver', printLog='0', tolerance="1e-15", maxIterations="5000")
rootNode.addObject('CollisionPipeline', verbose="0")
rootNode.addObject('BruteForceBroadPhase', name="N2")
rootNode.addObject('BVHNarrowPhase')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def createScene(rootNode):
rootNode.addObject('VisualStyle', displayFlags='showVisualModels hideBehaviorModels hideCollisionModels hideBoundingCollisionModels showForceFields showInteractionForceFields hideWireframe')

rootNode.addObject('FreeMotionAnimationLoop')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', printLog=False, tolerance="1e-4", maxIterations="1000")
rootNode.addObject('BlockGaussSeidelConstraintSolver', printLog=False, tolerance="1e-4", maxIterations="1000")
rootNode.addObject('CollisionPipeline')
rootNode.addObject('BruteForceBroadPhase', name="N2")
rootNode.addObject('BVHNarrowPhase')
Expand Down
Loading