Thank you for the comments. I am not sure what I should do with this piece
of code that you send me. Where do I have to include it?
as a reference, here is the "patch" again:
diff --git a/src/create_box.cpp b/src/create_box.cpp
index 94a11c1..c7fd98b 100644
--- a/src/create_box.cpp
+++ b/src/create_box.cpp
@@ -158,7 +158,7 @@ void CreateBox::command(int narg, char **arg)
iarg += 2;
} else if (strcmp(arg[iarg],"extra/special/per/atom") == 0) {
if (iarg+2 > narg) error->all(FLERR,"Illegal create_box command");
- atom->maxspecial = force->inumeric(FLERR,arg[iarg+1]);
+ force->special_extra = force->inumeric(FLERR,arg[iarg+1]);
iarg += 2;
} else error->all(FLERR,"Illegal create_box command");
the way to read this is as follows:
in your folder with the lammps source should be a folder "src" and in
there a file "create_box.cpp".
load this file into a text editor. go to somewhere near line 158 and
search for a line with:
atom->maxspecial = force->inumeric(FLERR,arg[iarg+1]);
and replace it with the line
force->special_extra = force->inumeric(FLERR,arg[iarg+1]);
then recompile LAMMPS and try with the new executabl.
Also, I'm using thermo_modify lost ignore because I want to see the
diffusion of particles through a pore into free space, so I want them to be
absorbed and "lost" on the opposite side of the box.
that is fine for your production simulation, but before you do that,
you can set select periodic boundaries, or add a reflective wall and
run without that. thermo_modify lost ignore will hide a *lot* of
problems. esstentially, you'll lose atoms for the wrong reason. ...and
that is very bad. you should first find settings so that the
simulation works without and then switch to the final configuration,
open the system and turn the ignoring on.
axel.