WireMat -> Change Force Displacement curve during simulation
Hi everyone,
I've got an issue in my simulation. I want to change the properties of a WirePhys interaction during the simulation. I thought about two options to do this :
- Deleting the existing interaction and changing the existing Wiremat for a new one with the wanted properties. But in this case, the new interaction (added with "createInteract
- The second option I tried is directly change the properties in the WirePhys by modifying "O.interactions
Have you any idea how to solve this ? I put my script of the second option below,
Thank you,
Loïc
#######
# encoding: utf-8
from yade import qt, plot
from yade.gridpfacet import *
import gts, os, locale, sys
import numpy as np
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
NewtonIntegrat
PyRunner(
PyRunner(
RWire = 0.012
SSvalues = [(5.16,
Wiremat = O.materials.
Wire = []
Wire.extend([
O.bodies.
O.bodies.
O.bodies[
O.bodies[
O.bodies[
plot.plots=
plot.plot(
v=qt.Controller()
v=qt.View()
rr = qt.Renderer()
rr.intrAllWire = True
O.dt = 1e-5
O.saveTmp()
O.run()
def addPlotData():
F = O.forces.
U = O.bodies[
plot.
def modif():
O.pause()
NewFD = [
(-0.
(-3.
(-2500,
print NewFD[0]
print NewFD[1]
print NewFD[2]
O.interacti
O.interacti
O.interacti
print O.interactions[
print O.interactions[
print O.interactions[
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 Loic Dugelas for more information if necessary.