8 #include "VirialStressAnalyzer.h" 9 #include <ddMd/simulation/Simulation.h> 10 #include <util/space/Tensor.h> Simulation & simulation()
Get the parent Simulation by reference.
virtual void compute()
Compute current value of stress tensor.
Parallel domain decomposition (DD) MD simulation.
Main object for a domain-decomposition MD simulation.
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.
virtual ~VirialStressAnalyzer()
Destructor.
VirialStressAnalyzer(Simulation &simulation)
Constructor.
void computeVirialStress()
Calculate and store all virial stress contributions.
virtual Tensor value()
Get current value, set by compute function.
void setClassName(const char *className)
Set class name string.
Analyzer that computes average of a sequence of symmetric Tensor values.
Tensor virialStress() const
Return total virial stress.