yade.utils.getStressProfile_contact() - did not match C++ signature
Hello All,
I am running this example 'Gravity Deposition' with a slight modification:
# gravity deposition in box, showing how to plot and save history of data,
# and how to control the simulation while it is running by calling
# python functions from within the simulation loop
# import yade modules that we will use below
from yade import pack, plot
# create rectangular box from facets
O.bodies.
# create empty sphere packing
# sphere packing is not equivalent to particles in simulation, it contains only the pure geometry
sp=pack.
# generate randomly spheres with uniform radius distribution
sp.makeCloud(
# add the sphere pack to the simulation
sp.toSimulation()
O.engines=[
ForceResetter(),
InsertionSor
InteractionLoop(
# handle sphere+sphere and facet+sphere collisions
[
[
[
),
NewtonIntegr
# call the checkUnbalanced function (defined below) every 2 seconds
PyRunner(
# call the addPlotData function every 200 steps
PyRunner(
]
O.dt=.5*
# enable energy tracking; any simulation parts supporting it
# can create and update arbitrary energy types, which can be
# accessed as O.energy[
O.trackEnergy=True
# if the unbalanced forces goes below .05, the packing
# is considered stabilized, therefore we stop collected
# data history and stop
def checkUnbalanced():
if unbalancedForce
O.pause()
plot.
# plot.saveGnuplo
# collect history of data which will be plotted
def addPlotData():
# each item is given a names, by which it can be the unsed in plot.plots
# the **O.energy converts dictionary-like O.energy to plot.addData arguments
plot.
# define how to plot data: 'i' (step number) on the x-axis, unbalanced force
# on the left y-axis, all energies on the right y-axis
# (O.energy.keys is function which will be called to get all defined energies)
# None separates left and right y-axis
#plot.plots=
plot.plots=
# show the plot on the screen, and update while the simulation runs
plot.plot()
O.saveTmp()
Basically I have just changed the direction of gravity and I am trying to check the static stress profile in the pile.
But doing this throws an error:
ArgumentError: Python argument types in
yade.
did not match C++ signature:
getStressPr
Also true with getDepthProfiles/ getStressProfil
The simulation obviously runs fine without any problem.
I am on the latest YADE version,"Yade 2018.02a-
What exactly is causing this problem?
How to resolve it?
How to get the stress profile otherwise?
Thank you,
Agastya.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jérôme Duriez
- Solved:
- Last query:
- Last reply: