Problem with OpenMP
Dear all ,
I am trying to run my simulation on multiple cores using openMP (using j -n). However, I can see that only one core is being used at 100% cpu. I have provided the MWE below and was wondering if you know what might be wrong?
I am not sure if it is the same problem as question 689131 or not. I tried to use sp.cellFill as Jan mentions in that question, but if I am not mistaken it cannot be used for periodic=False case , and my simulation is not periodic.
from yade import ymport
from yade import pack
from yade import utils, plot,wrapper
fr = 0.38
rho = 3000
En = 0.22
Et = 0.22
poi=0.3
yoM=200e6
r = 0.0005
Gamma = 0.073
Theta = 0
vB = 6.03 * 1e-9
CapType=
KN=2*(47.17)
KS=2*(13.48)
CN=2*(0.0053)
CS=2*(0.0015)
##definig material
mat=O.materials
)
#defining the spheres
sp=pack.
sp.makeCloud(
sp.toSimulation
Nprtcl=
print(Nprtcl)
Tt= utils.PWaveTime
O.dt = 0.5*Tt
#liquidMigration
VV=0.03
Vmin=0.0
for s in O.bodies:
if not type(s.
##
Drum=geom.
walls = O.bodies.
##engine
O.engines = [
),
]
import math
O.timingEnabled = 1
from yade import timing
duration=60.0/O.dt
O.run( 2 * math.floor(
timing.stats()
###saving for Restart
O.save('test.bz2')
Regards,
Roxana
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 Roxana Saghafian Larijani for more information if necessary.