template<typename TMethod,
StressType stressType, typename TGrid = typename std::conditional<stressType==Piola,Grid<Reference>,Grid<Current>>::type>
class Stress< TMethod, stressType, TGrid >
Stress class template describes a three dimensional stress field on a grid, computed using a prescribed averaging domain.
- Template Parameters
-
TMethod | - Method template parameter. For example, TMethod=MethodSphere for a spherical averaging domain and TMethod=MethodLDAD for LDAD. For a user-defined averaging domain, TMethod=MethodUser |
stressType | - Piola or Cauchy |
TGrid | - pointer to Grid<Reference> or Grid<Current> depending on whether stressType is Piola or Cauchy, respectively |
- Examples
- crack/main.cpp, testLDADLJ.cpp, testLJ.cpp, and testMls.cpp.
Definition at line 34 of file Stress.h.
template<typename TMethod ,
StressType stressType, typename TGrid = typename std::conditional<stressType==Piola,Grid<Reference>,Grid<Current>>::type>
void Stress< TMethod, stressType, TGrid >::write |
( |
| ) |
|
|
inline |
This function writes the stress field to a filename with extension .stress and prefix [name]. The output file is in a OVITO-readable format with nine columns. The first three columns represent the three coordinates of the grid points, and the last six columns are the six components of the stress field - \(\sigma_{xx}\), \(\sigma_{yy}\), \(\sigma_{zz}\), \(\sigma_{xy}\), \(\sigma_{xz}\), and \(\sigma_{yz}\)
- Examples
- crack/main.cpp, testLDADLJ.cpp, and testLJ.cpp.
Definition at line 90 of file Stress.h.