StressPerElementWriter< DIM > Class Template Reference

#include <AbstractNonlinearElasticitySolver.hpp>

Inherits AbstractPerElementWriter< DIM, DIM, DIM *DIM >.

Collaboration diagram for StressPerElementWriter< DIM >:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

template<unsigned DIM>
class StressPerElementWriter< DIM >

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.


Constructor & Destructor Documentation

template<unsigned DIM>
StressPerElementWriter< DIM >::StressPerElementWriter ( AbstractTetrahedralMesh< DIM, DIM > *  pMesh,
AbstractNonlinearElasticitySolver< DIM > *  pSolver 
) [inline]

Constructor

Parameters:
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.


Member Function Documentation

template<unsigned DIM>
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

Parameters:
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)

Todo:
#2223 Note that the localIndex is intended for DistributedQuadraticMesh, but we might need a map instead. For now, make sure that it's not a distributed mesh i.e. GetNumLocalElements == GetNumElements and the indexing is always global

Definition at line 172 of file AbstractNonlinearElasticitySolver.hpp.

References AbstractElement< ELEMENT_DIM, SPACE_DIM >::GetIndex(), and StressPerElementWriter< DIM >::mpSolver.


Member Data Documentation

template<unsigned DIM>
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().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2