Chaste Commit::8b5d759ac2eb95e67ae57699734101efccb0a0a9
StressPerElementWriter< DIM > Class Template Reference

#include <AbstractNonlinearElasticitySolver.hpp>

+ Inheritance diagram for StressPerElementWriter< DIM >:
+ Collaboration diagram for StressPerElementWriter< 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)
 
- Public Member Functions inherited from AbstractPerElementWriter< DIM, DIM, DIM *DIM >
 AbstractPerElementWriter (AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh)
 
void WriteData (OutputFileHandler &rHandler, const std::string &rFileName)
 
void SetWriteFileAsBinary (bool binary=true)
 
virtual ~AbstractPerElementWriter ()
 

Private Attributes

AbstractNonlinearElasticitySolver< DIM > * mpSolver
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractPerElementWriter< DIM, DIM, DIM *DIM >
virtual void Visit (Element< ELEMENT_DIM, SPACE_DIM > *pElement, unsigned localElementIndex, c_vector< double, DATA_SIZE > &rData)=0
 
virtual void WriteElementOnMaster (const c_vector< double, DATA_SIZE > &rData)
 
virtual void WriteHeaderOnMaster ()
 
virtual void PreWriteCalculations (OutputFileHandler &rOutputDirectory)
 
- Protected Attributes inherited from AbstractPerElementWriter< DIM, DIM, DIM *DIM >
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * mpMesh
 
out_stream mpMasterFile
 

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 142 of file AbstractNonlinearElasticitySolver.hpp.

Constructor & Destructor Documentation

◆ StressPerElementWriter()

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

Constructor

Parameters
pMeshA pointer to the mesh whose elements we want to calculate data on.
pSolverA pointer to the parent class, used to access data

Definition at line 152 of file AbstractNonlinearElasticitySolver.hpp.

Member Function Documentation

◆ Visit()

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
pElementa locally-owned element for which to calculate or lookup some data
localIndexthe index (in mElements) of pElement
rDatathe 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 166 of file AbstractNonlinearElasticitySolver.hpp.

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

Member Data Documentation

◆ mpSolver

template<unsigned DIM>
AbstractNonlinearElasticitySolver<DIM>* StressPerElementWriter< DIM >::mpSolver
private

Pointer to the parent class, set in constructor

Definition at line 145 of file AbstractNonlinearElasticitySolver.hpp.

Referenced by StressPerElementWriter< DIM >::Visit().


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