Hi,
I am updating an old version code of hoomd to use it in my program. I don't know how to update that line ext_wall=hpmc.field.wall(mc)
old : ## set up the spherical container
ext_wall = hpmc.field.wall(mc)
container=container_helper.Sphere(ext_wall, cont_rad, origin=[0,0,0])
My changes: ext_wall = hpmc.field.wall(mc)
walls = container_helperC.Sphere(ext_wall, cont_rad, origin=[0,0,0])
wall_potential = hoomd.hpmc.external.wall.WallPotential(walls)
mc.external_potential = wall_potential
The container_helperC is another python code that will change the ext_wall parameters like
class Sphere:
def __init__(self, ext_wall, rad, origin):
self.R=rad
self.origin=origin
self.ext_wall=ext_wall
self.ext_wall.add_sphere_wall(self.R, origin=self.origin)
self.ext_wall.set_volume(4./3.*np.pi*pow(self.R,3.0))
Regards
Azam