temp=Nan?
Dear all,
I use yadedaily:
Yade 20210909-
Using python version: 3.8.10 (default, Jun 2 2021, 10:49:15)
[GCC 9.4.0]
Ubuntu 20.04
My purpose is to achieve high-temperature heating of the rock mass to simulate a high-temperature environment, so I wrote the following script.
#######
from yade import pack,ymport,plot
from yade import timing
import numpy as np
import shutil
timeStr=
mn,mx=Vector3(
identifier = '-keep_temp'
young=1e9
if not os.path.
os.mkdir(
else:
shutil.
os.mkdir(
if not os.path.
os.mkdir(
else:
shutil.
os.mkdir(
O.materials.
O.materials.
walls=aabbWalls
wallIds=
sp=O.bodies.
print('num bodies:
triax=TriaxialS
maxMultiplier=
finalMaxMultip
thickness = 0,
stressMask = 7,
internalCompac
)
Thermal = ThermalEngine(
newton=
intRadius=1.5
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
FlowEngine(
Thermal,
GlobalStiffnes
triax,
VTKRecorder(
newton
]
O.step()
is2aabb.
ss2sc.interacti
for b in O.bodies:
if isinstance(
b.dynamic=False
flow.dead=0
flow.defToleran
flow.meshUpdate
flow.useSolver=4
flow.permeabili
flow.viscosity= 0.001
flow.bndCondIsP
flow.bndCondVal
flow.thermalEng
flow.debug=False
flow.fluidRho = 997
flow.fluidCp = 4181.7
flow.bndCondIsT
flow.thermalEng
flow.thermalBnd
flow.tZero=298.15
flow.pZero=0
thermal.dead=0
thermal.debug=False
thermal.
thermal.
thermal.
thermal.
thermal.
thermal.
thermal.particleK=2
thermal.
thermal.
thermal.
thermal.
timing.reset()
O.dt=0.1e-3
O.dynDt=False
O.run(1,1)
flow.dead=0
def bodyByPos(x,y,z):
cBody = O.bodies[1]
cDist = Vector3(
for b in O.bodies:
if isinstance(b.shape, Sphere):
dist = b.state.pos - Vector3(x,y,z)
if np.linalg.
cDist = dist
cBody = b
print('found closest body ', cBody.id, ' at ', cBody.state.pos)
return cBody
bodyOfInterest = bodyByPos(
TolTemp=523.15
def Stop_condition():
if bodyOfInterest.
O.stop()
O.engines=
def history():
plot.addData(
t=O.time,
i=O.iter,
bodyOfIntTemp
)
plot.saveDataT
O.engines=
VTKrec.dead=0
plot.plots=
plot.plot()
O.saveTmp()
print('starting thermal sim')
O.run()
#######
Many thanks for your help!
Best regards.
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: