Skip to content

Commit 3dff76f

Browse files
authored
Apply name changing on code and examples (#172)
1 parent 37de77f commit 3dff76f

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

examples/bouncingBall/softSphereFalling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def createScene(rootNode):
3434
rootNode.gravity=[0,-9810, 0]
3535
rootNode.dt = 0.0001
3636
rootNode.addObject('FreeMotionAnimationLoop')
37-
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
37+
rootNode.addObject('BlockGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
3838
rootNode.addObject('CollisionPipeline', verbose='0')
3939
rootNode.addObject('BruteForceBroadPhase', name='N2')
4040
rootNode.addObject('BVHNarrowPhase')

examples/bouncingBall/softSphereFalling_reduced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def createScene(rootNode):
3838
rootNode.gravity=[0,-9810, 0]
3939
rootNode.dt = 0.0001
4040
rootNode.addObject('FreeMotionAnimationLoop')
41-
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
41+
rootNode.addObject('BlockGaussSeidelConstraintSolver', name='GSSolver', maxIterations='10000', tolerance='1e-15')
4242
rootNode.addObject('CollisionPipeline', verbose="0")
4343
rootNode.addObject('BruteForceBroadPhase', name="N2")
4444
rootNode.addObject('BVHNarrowPhase')

examples/others/SphereOnAPlane/softSphereFalling.pyscn

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ def createScene(rootNode):
3232
lambdaCoeffs = "lambdaCoeffsSphereFine6.txt"
3333

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

4343

examples/others/caduceus/caduceusNG.pyscn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def createScene(rootNode):
3434

3535

3636
rootNode.addObject('FreeMotionAnimationLoop')
37-
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', printLog='0', tolerance="1e-6", maxIterations="500")
37+
rootNode.addObject('BlockGaussSeidelConstraintSolver', printLog='0', tolerance="1e-6", maxIterations="500")
3838
rootNode.addObject('CollisionPipeline', verbose="0")
3939
rootNode.addObject('BruteForceBroadPhase', name="N2")
4040
rootNode.addObject('BVHNarrowPhase')

examples/others/caduceus/reduced/reduced_caduceusNG.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def createScene(rootNode):
150150
rootNode.VisualStyle.displayFlags="showForceFields"
151151

152152
rootNode.addObject('FreeMotionAnimationLoop')
153-
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', printLog='0', tolerance="1e-6", maxIterations="500")
153+
rootNode.addObject('BlockGaussSeidelConstraintSolver', printLog='0', tolerance="1e-6", maxIterations="500")
154154
rootNode.addObject('CollisionPipeline', verbose="0")
155155
rootNode.addObject('BruteForceBroadPhase', name="N2")
156156
rootNode.addObject('BVHNarrowPhase')

examples/others/hexaBeam/hexaBeam.pyscn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def createScene(rootNode):
2525
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Visual') # Needed to use components [VisualStyle]
2626

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

3030

3131
M1 = rootNode.addChild("M1")

examples/softRobots/diamond/diamondRobot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def createScene(rootNode):
5555
rootNode.addObject('RequiredPlugin', pluginName=plugins, printLog=False)
5656

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

examples/softRobots/diamond/diamondRobotHyperElastic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def createScene(rootNode):
6464
rootNode.addObject('OglSceneFrame', style="Arrows", alignment="TopRight")
6565

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

6969
modelNode = rootNode.addChild('modelNode')
7070
modelNode.addObject('EulerImplicitSolver', rayleighStiffness='0.1', rayleighMass='0.1')

examples/softRobots/finger/finger.pyscn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def createScene(rootNode):
3535
scene.VisualStyle.displayFlags='showBehavior'
3636

3737
rootNode.addObject("FreeMotionAnimationLoop")
38-
rootNode.addObject("ProjectedGaussSeidelConstraintSolver", maxIterations=1000, tolerance=0.001)
38+
rootNode.addObject("BlockGaussSeidelConstraintSolver", maxIterations=1000, tolerance=0.001)
3939

4040
#finger = ElasticMaterialObject(name="finger",
4141
#volumeMeshFileName="mesh/finger.vtk",

examples/softRobots/multiGait/multiGait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def createScene(rootNode):
4141
rootNode.addObject('FreeMotionAnimationLoop')
4242
rootNode.addObject('EulerImplicitSolver', name='odesolver', firstOrder="false", rayleighStiffness='0.1',
4343
rayleighMass='0.1')
44-
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', printLog='0', tolerance="1e-15", maxIterations="5000")
44+
rootNode.addObject('BlockGaussSeidelConstraintSolver', printLog='0', tolerance="1e-15", maxIterations="5000")
4545
rootNode.addObject('CollisionPipeline', verbose="0")
4646
rootNode.addObject('BruteForceBroadPhase', name="N2")
4747
rootNode.addObject('BVHNarrowPhase')

0 commit comments

Comments
 (0)