trouble with FieldSaver commands
I'm having trouble with the FieldSaver commands. I'm currently running rot_compress.py; code below
# rot_compress.py: A uniaxial compression simulation using ESyS-Particle
# Author: D. Weatherley
# Date: 27 December 2008
# Organisation: ESSCC, University of Queensland
# (C) All rights reserved, 2008.
#
#
#import the appropriate ESyS-Particle modules:
from esys.lsm import *
from esys.lsm.util import *
from esys.lsm.geometry import *
from WallLoader import WallLoaderRunnable
#from POVsnaps import POVsnaps
#instantiate a simulation object and initialise the neighbour search algorithm
sim = LsmMpi(
# initialise the neighbour search algorithm
sim.initNeighbo
# set the number of timesteps and timestep increment:
sim.setNumTimeS
sim.setTimeStep
# specify the spatial domain for the simulation:
domain = BoundingBox(
sim.setSpatialD
# create a prism of spherical particles
geoRandomBlock = RandomBoxPacker (minRadius = 0.400, maxRadius = 2.0000, cubicPackRadius = 2.2000, maxInsertFails = 5000, bBox = BoundingBox(
geoRandomBlock.
geoRandomBlock_
# add the particles to the simulation object
sim.createParti
# bond particles together with bondTag = 1
sim.createConne
# create a wall at the bottom of the model
sim.createWall(name = "bottom_wall", posn = Vec3(0.0000, 0.0000, 0.0000), normal = Vec3(0.0000, 1.0000, 0.0000))
# create a wall at the top of the model
sim.createWall(name = "top_wall", posn = Vec3(0.0000, 20.0000, 0.0000), normal = Vec3(0.0000, -1.0000, 0.0000))
# create rotational elastic-brittle bonds between particles
pp_bonds = sim.createInter
# initialise frictional interactions for unbonded particles
sim.createInter
# create an exclusion between bonded and frictional interactions
sim.createExclusion (interactionName1 = "pp_bonds", interactionName2 = "friction")
# specify elastic repulsion from the bottom wall
sim.createInter
# specify elastic repulsion from the top wall
sim.createInter
# add translational viscous damping
sim.createInter
# add rotational viscous damping
sim.createInter
# add a wall loader to move the top wall
wall_loader1 = WallLoaderRunnable (LsmMpi = sim, wallName = "top_wall", vPlate = Vec3(0.0, -0.125, 0.0), startTime = 0, rampTime = 50000)
sim.addPreTimeS
# add a wall loader to move the bottom wall
wall_loader2 = WallLoaderRunnable (LsmMpi = sim, wallName = "bottom_wall", vPlate = Vec3(0.0, 0.125, 0.0), startTime = 0, rampTime = 50000)
sim.addPreTimeS
# create a FieldSaver to store number of bonds
#sim.createFiel
# create a FieldSaver to store the total kinetic energy of the particles
#sim.createFiel
# create a FieldSaver to store potential energy stored in bonds
#sim.createFiel
# create a FieldSaver for wall positions
posn_saver = WallVectorField
sim.createField
# create a FieldSaver for wall forces
#force_saver = WallVectorField
#sim.createFiel
#execute the simulation
sim.run()
(I've commented out all the FieldSaver commands except the one for wall position -- however, none of them work).
I get the error message below:
rsarracino@
CSubLatticeCont
slave started at local/global rank 0 / 1
Traceback (most recent call last):
File "rot_compress.py", line 85, in <module>
posn_saver = WallVectorField
Boost.Python.
WallVectorF
did not match C++ signature:
__init_
__init_
__init_
If I comment out all the FieldSaver commands, the program runs w/o problems.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Robert Sarracino for more information if necessary.