Skip to content

Commit

Permalink
Merge pull request #30 from SofaDefrost/pasqualeferr94-patch-3
Browse files Browse the repository at this point in the history
Update creep-test.py
  • Loading branch information
pasqualeferr94 authored Feb 24, 2025
2 parents 3a57ad1 + 733e82f commit 46fc00a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/creep-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def createScene(rootNode):
nu = 0.44 ## Poisson's ratio
lamb = 2*G1*nu/(1-2*nu) ## relationship from wikipedia: https://en.wikipedia.org/wiki/Lam%C3%A9_parameters

cylinder.addObject('TetrahedronViscoelasticityFEMForceField', template='Vec3d', name='FEM', src ='@topo',materialName="SLSMaxwellFirstOrder", ParameterSet= str(G1)+' '+str(lamb)+' '+str(G2)+' '+str(tau2))
cylinder.addObject('TetrahedronViscoelasticityFEMForceField', template='Vec3d', name='FEM', src ='@topo',materialName="SLSMaxwellFirstOrder", ParameterSet= str(G1)+' '+str(G2)+' '+str(tau2)+' '+str(lamb))

cylinder.addObject('ConstantForceField', name = "CFF", listening = True, totalForce =[0,0,0],template="Vec3d", src= "@topo", indices = cylinder.boxToPull.indices.linkpath)

Expand Down

0 comments on commit 46fc00a

Please sign in to comment.