added brownian dynamics integrator fix bd/sphere.

This commit is contained in:
Sam Cameron
2020-12-03 13:00:21 +00:00
parent 5ea9d97024
commit ca5c921702
5 changed files with 554 additions and 0 deletions

View File

@ -94,6 +94,22 @@ double RanMars::uniform()
return uni;
}
/* ----------------------------------------------------------------------
uniform RN shifted to be symmetric about zero (for fix bd/sphere).
------------------------------------------------------------------------- */
double RanMars::uniform_middle()
{
return uniform()-0.5;
}
/* ----------------------------------------------------------------------
Return 0 (for fix/bd/sphere).
------------------------------------------------------------------------- */
double RanMars::zero_rng()
{
return 0.0;
}
/* ----------------------------------------------------------------------
gaussian RN
------------------------------------------------------------------------- */