Problems about the flow.multithread
I've been using the "flow.multithread" to accelerate the calculation speed of problems about saturated soil recently. I've encounter several problems about the "flow.multithread".
1. When I write "multithread=True" before the simulation begins, just like the following, it reports that Segmentation fault (core dumped).
########
O.engines=[
...
FlowEngine(
...
]
########
However, if I don't set multithread=True at the first time I define the flow engine, set flow.multithrea
2. When I set flow.multithrea
I'm using the
Linux version 5.4.0-47-generic (buildd@
Yade 20201007-
Here's a MWE to produce the error. Through the VTK file can get the period error.
#######
from yade import pack,export
SoilMat=
O.materials.
mn,mx=Vector3(
walls=aabbWalls
wallIds=
snum=1000
sp=pack.
sp.makeCloud(
sp.toSimulation
Target_
triax=TriaxialS
stressMask = 7,
thickness = 0,
internalCompac
)
Pressure=10000
flow=FlowEngine(
dead=1,
defTolerance=
meshUpdateInte
useSolver=3,
#multithread=True,
permeabilityFa
bndCondIsPress
bndCondValue=
boundaryUseMax
viscosity=0.00089 #The dynamic viscosity of water is 8.90*10-4 Pa`s at about 25 degree.
)
newton=
#Engine of the simulation
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
flow,
triax,
PyRunner(
newton,
PyRunner(
]
triax.goal1=
while 1:
O.run(1000,True)
if unbalancedForce
break
Monitor.dead=1
vtksaver2.dead=0
flow.dead=0
triax.internalC
triax.stressMask=0
triax.goal1=
O.run(1,1)
flow.multithrea
#######
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Robert Caulk
- Solved:
- Last query:
- Last reply: