Skip to content

Commit

Permalink
cleaning and missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
EulalieCoevoet committed Jan 31, 2024
1 parent 356cc4a commit eb717de
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
Binary file added mesh/doublesupport.stl
Binary file not shown.
Binary file added mesh/support.stl
Binary file not shown.
6 changes: 3 additions & 3 deletions scripts/pulley.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ def createScene(rootnode):
rootnode.gravity.value = [0, -9.810, 0]

ONLYPULLEY = False
CABLEMODEL = "beam" # "cosserat" or "beam"
CABLEMODEL = "cosserat" # "cosserat" or "beam"

params = Parameters()
params.cable.length = 2

# Important parameters
params.cable.youngModulus = 1.205e11 # in kg/mm/s2 -> N*1e3
loadMass = 1000 # in kg
params.cable.youngModulus = 1.205e10 # in kg/mm/s2 -> N*1e3
loadMass = 200 # in kg

coef = 2
params.cable.nbSections = 40 * coef
Expand Down
6 changes: 1 addition & 5 deletions scripts/utils/basecosserat.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ def __addRod(self):
nbSections = self.params.nbSections
nbPoints = nbSections + 1

indexPairs = [[0, 0]]
for i in range(nbSections):
indexPairs += [[1, i]]

self.base = self.node.addChild('RigidBase')
self.base.addObject('MechanicalObject', template='Rigid3', position=self.positions[0])

Expand All @@ -71,7 +67,7 @@ def __addRod(self):
position=[pos[0:3] for pos in self.positions],
edges=[[i, i+1] for i in range(nbSections)])
rod.addObject('MechanicalObject', template='Rigid3',
position=self.positions, showIndices=False, showIndicesScale=0.005, showObject=True,
position=self.positions, showIndices=False, showIndicesScale=0.005, showObject=False,
showObjectScale=0.05)
rod.addObject("BeamInterpolation")

Expand Down

0 comments on commit eb717de

Please sign in to comment.