stressMask
Hi!
I want to know the stressMask 's meanning in Peri3dController.
in your official document, it sais:
stressMask(=0, all strains)¶
mask determining whether components of goal are strain (0) or stress (1). The order is 00,11,22,12,02,01 from the least significant bit. (e.g. 0b000011 is stress 00 and stress 11).
can u explain what is it mean?i cant understand it.
if i use the order
label.stressMas
or if i use
label.stressMas
what does it mean?
-------
you can use the following code:
#!/usr/bin/python # This is server.py file
import string
from yade import plot,qt
from yade.pack import *
from yade import pack, plot
import socket # Import socket module
O.materials.
initSize=0.028
sp=pack.
O.periodic=True
sp.toSimulation()
O.save(
O.dt=1e-7
plot.plots=
def plotAddData():
plot.addData(
sx=p3d.stress[1],
ex=p3d.strain[1],
)
EnlargeFactor=1.5
EnlargeFactor=1.0
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
NewtonIntegrat
Peri3dController(
# after reaching nSteps do doneHook action
label='p3d'
),
PyRunner(
]
p3d.stressMask=
p3d.goal=
O.step()
bo1s.aabbEnlarg
O.run(); O.wait()
plot.saveDataTx
plot.plot(
-------
the model is used to add strain on the model till the stain is [0,-0.008,
if i delete "p3d.stressMask
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 dan.wang for more information if necessary.