How to reset contact properties?
What I am trying to do is to use a particular contact model with N properties, in which I have a deposition simulation that has 2 of the properties = 0, save as .xml and then have a new script to load the previous .xml and then reset the 2 properties from 0 to a random number that I want. After the reset, I am doing other things to the conglomerate (such as removing particles from particular locations or whatever).
## DEPOSITION SCRIPT
from yade import pack
from yade import plot
from yade import export
## create materials for spheres
O.materials.
## generate packing
(random packing, script not included)
## create materials for walls
O.materials.
(other stuff not included, non contact model related, script not included)
O.engines=[
ForceResetter(),
InsertionSortC
InsertionSortC
Interaction
),
PyRunner(
NewtonIntegrat
PyRunner(
PyRunner(
VTKRecorder(
PyRunner(
]
O.dt=.5*
RESET SCRIPT:
same thing, with O.load(
(same stuff that is not included)
O.engines again
O.dt again
How to I reset my JCFpmMat() to have tensileStrength and cohesion any other number than zero?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Lorin for more information if necessary.