forked from lijiext/lammps
real <-> metal unit conversion factors
This commit is contained in:
parent
d8b087aeb4
commit
c477129165
|
@ -64,13 +64,12 @@ FixClientMD::FixClientMD(LAMMPS *lmp, int narg, char **arg) :
|
||||||
|
|
||||||
// unit conversion factors for REAL
|
// unit conversion factors for REAL
|
||||||
// otherwise not needed
|
// otherwise not needed
|
||||||
|
// message received in METAL units, convert to local REAL units
|
||||||
|
|
||||||
fconvert = econvert = vconvert = 1.0;
|
fconvert = econvert = vconvert = 1.0;
|
||||||
if (units == REAL) {
|
if (units == REAL) {
|
||||||
// NOTE: still need to set these
|
fconvert = econvert = 23.06035;
|
||||||
fconvert = 1.0;
|
vconvert = 0.986923;
|
||||||
econvert = 1.0;
|
|
||||||
vconvert = 1.0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,13 +55,12 @@ ServerMD::ServerMD(LAMMPS *lmp) : Pointers(lmp)
|
||||||
|
|
||||||
// unit conversion factors for REAL
|
// unit conversion factors for REAL
|
||||||
// otherwise not needed
|
// otherwise not needed
|
||||||
|
// local computation in REAL units, send message in METAL units
|
||||||
|
|
||||||
fconvert = econvert = vconvert = 1.0;
|
fconvert = econvert = vconvert = 1.0;
|
||||||
if (units == REAL) {
|
if (units == REAL) {
|
||||||
// NOTE: still need to set these
|
fconvert = econvert = 1.0 / 23.06035;
|
||||||
fconvert = 1.0;
|
vconvert = 1.0 / 0.986923;
|
||||||
econvert = 1.0;
|
|
||||||
vconvert = 1.0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fcopy = NULL;
|
fcopy = NULL;
|
||||||
|
|
Loading…
Reference in New Issue