stressIdeal
The following code is taken from the example "peri3dControll
In the second "O.engines",
(1)What is the function of the code "strain=p3d.strain" ?
(2)In the vector of "stressIdeal", what do the last four items mean? I guess they are strain ez, exy, eyz, exz respectively.
Moreover,
-------
from yade import pack,plot,qt
# define material
O.materials.
# create periodic assembly of particles
initSize=1.2
sp=pack.
angle=0
rot=Matrix3(
sp.toSimulation
# plotting
plot.live=False
plot.plots=
def plotAddData():
plot.addData(
iter=
sx=p3d.
syz=p3d.
ex=p3d.
eyz=p3d.
)
O.dt=PWaveTimeS
mm,mx=[pt[axis] for pt in aabbExtrema()]
coord=mm,mm,mm
# define the first part of simulation, hydrostatic compression
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
NewtonIntegrat
Peri3dController( goal=(-
nSteps=500,
label='p3d'
),
PyRunner(
]
O.run(); O.wait()
# second part, z-axis straining and constant transversal stress
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
NewtonIntegrat
Peri3dController( goal=(-
nSteps=1000,
label='p3d',
),
PyRunner(
]
O.run();O.wait()
plot.plot(
-------
Above is the example in your source code. And what i do is like this:
O.engines=[
ForceResett
InsertionSo
Interaction
[Ig2_
[Ip2_
NewtonInteg
Peri3dContr
nSteps=100,
),
]
O.run();O.wait()
check[
else:
O.engines=[
ForceResett
InsertionSo
Interaction
[Ig2_
[Ip2_
NewtonInteg
Peri3dContr
nSteps=100,
xxPath=
yyPath=
doneHook='print "Simulation with Peri3dController finished."; O.pause()',
maxStrain=.5,
label='p3d',
#strain=
stressIdeal
),
]
the first engine means we give a 3e5Pa Hydrostatic load using ag which means strain.
and then in the second engine, we want to keep constan of the xxpath and yypath and give strain in the zzpath. arrcc[2] means the strain of last commit state in zzpath, and arr[2] means the total strain we give at current step in zzpath.
I want to know if i am right with the code above?
Thanks!
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.