#include <AbstractNonlinearElasticitySolver.hpp>
Inherits AbstractPerElementWriter< DIM, DIM, DIM *DIM >.
Public Member Functions | |
StressPerElementWriter (AbstractTetrahedralMesh< DIM, DIM > *pMesh, AbstractNonlinearElasticitySolver< DIM > *pSolver) | |
void | Visit (Element< DIM, DIM > *pElement, unsigned localIndex, c_vector< double, DIM *DIM > &rData) |
Private Attributes | |
AbstractNonlinearElasticitySolver < DIM > * | mpSolver |
Helper class for dumping the stresses to file.
Currently located here so that it's easy to feed a pointer to the main class AbstractNonlinearElasticitySolver
Definition at line 148 of file AbstractNonlinearElasticitySolver.hpp.
StressPerElementWriter< DIM >::StressPerElementWriter | ( | AbstractTetrahedralMesh< DIM, DIM > * | pMesh, | |
AbstractNonlinearElasticitySolver< DIM > * | pSolver | |||
) | [inline] |
Constructor
pMesh | A pointer to the mesh whose elements we want to calculate data on. | |
pSolver | A pointer to the parent class, used to access data |
Definition at line 158 of file AbstractNonlinearElasticitySolver.hpp.
void StressPerElementWriter< DIM >::Visit | ( | Element< DIM, DIM > * | pElement, | |
unsigned | localIndex, | |||
c_vector< double, DIM *DIM > & | rData | |||
) | [inline] |
How to associate an element with the stress data
pElement | a locally-owned element for which to calculate or lookup some data | |
localIndex | the index (in mElements) of pElement | |
rData | the double-precision data to write to file (output from the method) |
Definition at line 172 of file AbstractNonlinearElasticitySolver.hpp.
References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetIndex(), and StressPerElementWriter< DIM >::mpSolver.
AbstractNonlinearElasticitySolver<DIM>* StressPerElementWriter< DIM >::mpSolver [private] |
Pointer to the parent class, set in constructor
Definition at line 151 of file AbstractNonlinearElasticitySolver.hpp.
Referenced by StressPerElementWriter< DIM >::Visit().