1 #ifndef MCMD_STRESS_CALCULATOR_H 2 #define MCMD_STRESS_CALCULATOR_H 11 #include <util/space/Tensor.h> 12 #include <util/misc/Setable.h> 41 {
UTIL_THROW(
"Unimplemented computeStress function"); }
46 virtual void unsetStress();
56 void computeStress(
Tensor& stress);
66 void computeStress(
Vector& pressures);
76 void computeStress(
double& pressure);
81 bool createsStress()
const;
A Vector is a Cartesian vector.
Template for a value that can be set or declared null (i.e., unknown).
A Tensor represents a Cartesian tensor.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
Utility classes for scientific computation.
Single-processor Monte Carlo (MC) and molecular dynamics (MD).
Interface for a stress calculator.
virtual void computeStress()
Compute and store the stress tensor.