forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@9334 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
c799bb03d5
commit
7a1238eef4
|
@ -1877,12 +1877,14 @@ void PairLubricateU::init_style()
|
|||
for (int i = 0; i < modify->nfix; i++){
|
||||
if (strcmp(modify->fix[i]->style,"deform") == 0)
|
||||
flagdeform = 1;
|
||||
else if (strstr(modify->fix[i]->style,"wall") != NULL){
|
||||
else if (strstr(modify->fix[i]->style,"wall") != NULL) {
|
||||
if (flagwall)
|
||||
error->all(FLERR,
|
||||
"Cannot use multiple fix wall commands with "
|
||||
"pair lubricateU");
|
||||
flagwall = 1; // Walls exist
|
||||
if (((FixWall *) modify->fix[i])->xflag ) {
|
||||
flagwall = 2; // Moving walls exist
|
||||
wallfix = (FixWall *) modify->fix[i];
|
||||
}
|
||||
wallfix = (FixWall *) modify->fix[i];
|
||||
if (wallfix->xflag) flagwall = 2; // Moving walls exist
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1194,6 +1194,7 @@ void PairLubricateUPoly::init_style()
|
|||
for (int i = 0; i < nlocal; i++)
|
||||
if (radius[i] == 0.0)
|
||||
error->one(FLERR,"Pair lubricate/poly requires extended particles");
|
||||
|
||||
// Set the isotropic constants depending on the volume fraction
|
||||
|
||||
// Find the total volume
|
||||
|
@ -1211,17 +1212,19 @@ void PairLubricateUPoly::init_style()
|
|||
if (strcmp(modify->fix[i]->style,"deform") == 0)
|
||||
flagdeform = 1;
|
||||
else if (strstr(modify->fix[i]->style,"wall") != NULL){
|
||||
if (flagwall)
|
||||
error->all(FLERR,
|
||||
"Cannot use multiple fix wall commands with "
|
||||
"pair lubricateU");
|
||||
flagwall = 1; // Walls exist
|
||||
if (((FixWall *) modify->fix[i])->xflag ) {
|
||||
flagwall = 2; // Moving walls exist
|
||||
wallfix = (FixWall *) modify->fix[i];
|
||||
}
|
||||
wallfix = (FixWall *) modify->fix[i];
|
||||
if (wallfix->xflag) flagwall = 2; // Moving walls exist
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// set the isotropic constants depending on the volume fraction
|
||||
// vol_T = total volumeshearing = flagdeform = flagwall = 0;
|
||||
|
||||
double vol_T, wallcoord;
|
||||
if (!flagwall) vol_T = domain->xprd*domain->yprd*domain->zprd;
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue