Failed in Parametric Studies
I would like to make a parametric studies on periodic triaxial test. To be specific, I just want to generate the different packing with different porosity by control of friction angel ranging from 0 degree to 100 degrees. Then I conduct the axial loading. It should be noted that the friction angel is set to 0.5 in radian before the axial loading phase.
First, isotropic compaction is ended by calling compactionFinis
Second, by calling compactionFinis
Third, constant-strain deformation along the z-axis while maintaining constant stress (sigmaIso) laterally is ended by calling triaxFinished().
Here are the codes.
=======
from __future__ import print_function
readParamsFromT
compFricDegree=0,
noTableOk=True
)
from yade.params.table import *
young=1e7
poisson=0.3
density=1000
sigmaIso=-1e5
#import matplotlib
#matplotlib.
# generate loose packing
from yade import pack, plot
O.materials.
O.periodic=True
sp=pack.
if 0:
## uniform distribution
sp.makeCloud(
else:
## create packing from clumps
# configuration of one clump
c1=pack.
# make cloud using the configuration c1 (there could c2, c3, ...; selection between them would be random)
sp.makeClumpCl
# setup periodic boundary, insert the packing
sp.toSimulation
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
PeriTriaxContr
# specify target values and whether they are strains or stresses
goal=
# type of servo-control
dynCell=
# wait until the unbalanced force goes below this value
maxUnbalanced
# call this function when goal is reached and the packing is stable
doneHook=
),
NewtonIntegrat
PyRunner(
]
O.dt=.5*
def addPlotData1():
plot.addData(
sxx=-
exx=-
#DeviatorStre
# save all available energy data
Etot=
)
plot.saveDataT
# enable energy tracking in the code
O.trackEnergy=True
# define what to plot
plot.plots=
# energy plot
#' i ':(O.energy.
'ezz':
}
# show the plot
plot.plot()
def compactionFinis
O.materials[
# set the current cell configuration to be the reference one
O.cell.
triax.
def compactionFinis
# set the current cell configuration to be the reference one
print(O.iter+1, porosity())
# O.materials[
O.cell.
# change control type: keep constant confinement in x,y, 20% compression in z
triax.
triax.stressMask=3
# allow faster deformation along x,y to better maintain stresses
triax.
# next time, call triaxFinished instead of compactionFinished
triax.
# do not wait for stabilization before calling triaxFinished
triax.
O.engines=
def addPlotData2():
plot.addData(
sxx=-
exx=-
DeviatorStres
)
plot.saveDataT
def triaxFinished():
print('Finished')
O.pause()
O.saveTmp()
O.run()
=======
When this code is run using yade, it succeed. However, it failed when run in yade-batch.
Here is parameter table.
=======
compFricDegree
0
10
20
30
40
50
60
70
80
90
100
=======
Here is one of the logs.
+++++++
Welcome to Yade 2019-11-
Using python version: 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0]
Warning: no X rendering available (see https:/
XMLRPC info provider on http://
TCP python prompt on localhost:9000, auth cookie `ekaysu'
Running script 06-periodic-
/usr/lib/
mplDeprecation)
/usr/lib/
mplDeprecation)
terminate called after throwing an instance of 'boost:
what(): Failed to set TLS value: Invalid argument
Aborted (core dumped)
=================== JOB SUMMARY ================
id : compFricDegree=10
status : 34304 (FAILED)
duration: 00:00:01
command : YADE_BATCH=
started : Sun Nov 17 16:20:46 2019
finished: Sun Nov 17 16:20:47 2019
+++++++
How to solve this problem, 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 Rong Zhao for more information if necessary.