My fluid-solid coupling script run very slowly
Hello,everyone!
What I want to do is to simulate the triaxial compression failure of rock under seepage conditions.But when I run the following script,it runs very slowly ( iter:3.0/s).I wonder if this is normal?
ps:My model is a 0.05 * 0.05 * 0.05 cube with about 5000 particles.
-------
from yade import pack, ymport, plot, utils, export, timing
from builtins import range
import numpy as np
rate=-0.01
damp=0.4
stabilityThresh
key='_triax_base_'
young=20e9
name='JCFPM_triax'
compFricDegree=30
poisson=0.1
mn,mx=Vector3(
O.materials.
O.materials.
walls=aabbWalls
wallIds=
O.bodies.
### (The model imported here is a cube of about 5000 particles generated by Randomdensepack)
triax=TriaxialS
maxMultiplier=
finalMaxMultip
thickness = 0,
stressMask = 7,
internalCompac
)
newton=
def recorder():
yade.plot.addData(
i=O.iter,
e11=-triax.
s11=-triax.
s22=-triax.
s33=-triax.
P=triax.porosity,
#meanS=
ev=triax.
numberTc=
numberSc=
unb=unbalanced
)
plot.saveDataT
def stop_condition():
if abs(triax.
O.pause()
presentcohesi
for i in O.interactions:
if hasattr(i.phys, 'isCohesive'):
if i.phys.isCohesive == 1:
print('the number of cohesive bond now is:',presentcoh
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
triax,
#TriaxialState
newton,
FlowEngine(
PyRunner(
PyRunner(
]
O.step()
ss2sc.interacti
is2aabb.
triax.goal1=
while 1:
O.run(1000,1)
unb=unbalanced
print('unbalanced force:',unb,'mean stres:'
if unb<stabilityTh
break
flow.dead=0
flow.meshUpdate
flow.useSolver=4
flow.permeabili
flow.viscosity=1
flow.bndCondIsP
flow.bndCondVal
triax.internalC
triax.stressMask=3
triax.goal1=-1e7
triax.goal2=-1e7
triax.goal3=rate
plot.plots=
plot.plot()
O.run()
-------
Thanks for help!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ziyu Wang
- Solved:
- Last query:
- Last reply: