Chaste
Release::2018.1
|
#include <AbstractContractionCellFactory.hpp>
Public Member Functions | |
virtual AbstractContractionModel * | CreateContractionCellForElement (Element< DIM, DIM > *pElement)=0 |
void | SetMechanicsMesh (QuadraticMesh< DIM > *pMesh) |
virtual | ~AbstractContractionCellFactory () |
Protected Attributes | |
QuadraticMesh< DIM > * | mpMesh |
Friends | |
class | TestElectroMechanicsProblemDefinition |
A factory to ease creating contraction cell models for use in a electro-mechanics simulations.
The user should implement their own concrete class, in particular implementing CreateContractionCellForElement(Element*), which should return the contraction model corresponding to a given element. The user should also implement GetNumberOfCells() if this isn't equal to the number of nodes. FinaliseCellCreation() can be used to (eg) add stimuli to certain cells after they have been created.
DIM is the dimension of the quadratic mesh (element dimension == space dimension for mechanics at present).
Definition at line 54 of file AbstractContractionCellFactory.hpp.
|
inlinevirtual |
Destructor
Definition at line 116 of file AbstractContractionCellFactory.hpp.
|
pure virtual |
Note that there is no vector of all the quadrature points of the mesh; the quad point index is the index that would be obtained by looping over elements and then looping over quad points.
pElement | Pointer to element. It is assumed that all the quad points in a given element will be assigned the same kind of contraction cell. |
Implemented in LabelBasedContractionCellFactory< DIM >.
Referenced by AbstractCardiacMechanicsSolver< ELASTICITY_SOLVER, DIM >::Initialise().
|
inline |
Set the mechanics mesh to be used by this cell factory.
pMesh | A quadratic (mechanics) mesh. |
Definition at line 84 of file AbstractContractionCellFactory.hpp.
References AbstractContractionCellFactory< DIM >::mpMesh.
Referenced by ElectroMechanicsProblemDefinition< DIM >::SetContractionCellFactory().
|
friend |
This class tests that the mesh is set correctly
Definition at line 58 of file AbstractContractionCellFactory.hpp.
|
protected |
The mechanics mesh
Definition at line 62 of file AbstractContractionCellFactory.hpp.
Referenced by AbstractContractionCellFactory< DIM >::SetMechanicsMesh().