![]() |
Chaste Commit::333233612e3dcc941d260418acd7b5ccdc30390e
|
#include <AbstractConductivityModifier.hpp>
Public Member Functions | |
virtual | ~AbstractConductivityModifier () |
c_matrix< double, SPACE_DIM, SPACE_DIM > & | rGetModifiedConductivityTensor (unsigned elementIndex, const c_matrix< double, SPACE_DIM, SPACE_DIM > &rOriginalConductivity, unsigned domainIndex) |
virtual c_matrix< double, SPACE_DIM, SPACE_DIM > & | rCalculateModifiedConductivityTensor (unsigned elementIndex, const c_matrix< double, SPACE_DIM, SPACE_DIM > &rOriginalConductivity, unsigned domainIndex)=0 |
Private Attributes | |
std::vector< std::pair< unsigned, c_matrix< double, SPACE_DIM, SPACE_DIM > > > | mCache |
Abstract class which just defines an interface and caching method. The pure method rCalculateModifiedConductivityTensor() should take in a conductivity and return a modified conductivity (with some dependence e.g. on tissue deformation in cardiac electromechanics).
Definition at line 47 of file AbstractConductivityModifier.hpp.
|
inlinevirtual |
Destructor
Definition at line 55 of file AbstractConductivityModifier.hpp.
|
pure virtual |
Pure method that alters the given conductivity tensor on an element-wise basis for a particular domain.
elementIndex | Global index of current element. |
rOriginalConductivity | Reference to the original (for example, undeformed) conductivity tensor. |
domainIndex | The index of the domain (0=intracellular, 1=extracellular, [2=second intracellular in extended bidomain]). |
Referenced by AbstractConductivityModifier< ELEMENT_DIM, SPACE_DIM >::rGetModifiedConductivityTensor().
|
inline |
Method that checks element index and the domain (intra/extra/other) and returns cached value if available.
elementIndex | Index of current element |
rOriginalConductivity | Reference to the original (for example, undeformed) conductivity tensor |
domainIndex | Used to tailor modification to the domain. 0 = intracellular, 1 = extracellular, 2 = second intracellular (tridomain) |
Definition at line 65 of file AbstractConductivityModifier.hpp.
References AbstractConductivityModifier< ELEMENT_DIM, SPACE_DIM >::mCache, AbstractConductivityModifier< ELEMENT_DIM, SPACE_DIM >::rCalculateModifiedConductivityTensor(), and UNSIGNED_UNSET.
|
private |
Cache recently-seen elementindex-tensor pairs, one per "domain"
Definition at line 51 of file AbstractConductivityModifier.hpp.
Referenced by AbstractConductivityModifier< ELEMENT_DIM, SPACE_DIM >::rGetModifiedConductivityTensor().