31 energyString(
"kj/mol"),
43 }
else if(s==
"kcal/mol"){
45 }
else if(s==
"j/mol"){
53 plumed_massert(
energy>0.0,
"energy units should be positive");
69 plumed_massert(
length>0.0,
"length units should be positive");
85 plumed_massert(
time>0.0,
"time units should be positive");
void setTime(const std::string &)
Set time units from string.
void setLength(const std::string &)
Set lengh units from string.
double length
Units for length, expressed in nm (e.g. 0.1 means A)
double energy
Units for energy, expressed in kj/mol (e.g. 4.184 means kcal/mol)
void setEnergy(const std::string &)
Set energy units from string.
double time
Units for time, expressed in ps (e.g. 0.001 means fs)