allow dynamic groups for some standard walls interacting with point particles

This commit is contained in:
Axel Kohlmeyer
2018-02-24 13:50:42 -05:00
parent 948f4783aa
commit 5fb2979da7
6 changed files with 20 additions and 4 deletions

View File

@ -22,7 +22,10 @@ using namespace FixConst;
/* ---------------------------------------------------------------------- */
FixWallHarmonic::FixWallHarmonic(LAMMPS *lmp, int narg, char **arg) :
FixWall(lmp, narg, arg) {}
FixWall(lmp, narg, arg)
{
dynamic_group_allow = 1;
}
/* ----------------------------------------------------------------------
interaction of all particles in group with a wall

View File

@ -26,7 +26,10 @@ using namespace MathConst;
/* ---------------------------------------------------------------------- */
FixWallLJ1043::FixWallLJ1043(LAMMPS *lmp, int narg, char **arg) :
FixWall(lmp, narg, arg) {}
FixWall(lmp, narg, arg)
{
dynamic_group_allow = 1;
}
/* ---------------------------------------------------------------------- */

View File

@ -22,7 +22,10 @@ using namespace FixConst;
/* ---------------------------------------------------------------------- */
FixWallLJ126::FixWallLJ126(LAMMPS *lmp, int narg, char **arg) :
FixWall(lmp, narg, arg) {}
FixWall(lmp, narg, arg)
{
dynamic_group_allow = 1;
}
/* ---------------------------------------------------------------------- */

View File

@ -22,7 +22,10 @@ using namespace FixConst;
/* ---------------------------------------------------------------------- */
FixWallLJ93::FixWallLJ93(LAMMPS *lmp, int narg, char **arg) :
FixWall(lmp, narg, arg) {}
FixWall(lmp, narg, arg)
{
dynamic_group_allow = 1;
}
/* ---------------------------------------------------------------------- */

View File

@ -39,6 +39,8 @@ FixWallReflect::FixWallReflect(LAMMPS *lmp, int narg, char **arg) :
{
if (narg < 4) error->all(FLERR,"Illegal fix wall/reflect command");
dynamic_group_allow = 1;
// parse args
nwall = 0;

View File

@ -67,6 +67,8 @@ FixWallRegion::FixWallRegion(LAMMPS *lmp, int narg, char **arg) :
else if (strcmp(arg[4],"harmonic") == 0) style = HARMONIC;
else error->all(FLERR,"Illegal fix wall/region command");
if (style != COLLOID) dynamic_group_allow = 1;
epsilon = force->numeric(FLERR,arg[5]);
sigma = force->numeric(FLERR,arg[6]);
cutoff = force->numeric(FLERR,arg[7]);