#include <AbstractConductivityTensors.hpp>
Public Member Functions | |
void | SetFibreOrientationFile (const FileFinder &rFibreOrientationFile) |
void | SetConstantConductivities (c_vector< double, 1 > constantConductivities) |
void | SetConstantConductivities (c_vector< double, 2 > constantConductivities) |
virtual void | SetConstantConductivities (c_vector< double, 3 > constantConductivities) |
void | SetNonConstantConductivities (std::vector< c_vector< double, SPACE_DIM > > *pNonConstantConductivities) |
virtual void | Init (AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh)=0 throw (Exception) |
c_matrix< double, SPACE_DIM, SPACE_DIM > & | operator[] (const unsigned global_index) |
Protected Attributes | |
AbstractTetrahedralMesh < ELEMENT_DIM, SPACE_DIM > * | mpMesh |
bool | mUseNonConstantConductivities |
bool | mUseFibreOrientation |
c_vector< double, SPACE_DIM > | mConstantConductivities |
std::vector< c_vector< double, SPACE_DIM > > * | mpNonConstantConductivities |
std::vector< c_matrix< double, SPACE_DIM, SPACE_DIM > > | mTensors |
bool | mInitialised |
FileFinder | mFibreOrientationFile |
std::auto_ptr< FibreReader < SPACE_DIM > > | mFileReader |
Definition at line 44 of file AbstractConductivityTensors.hpp.
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetFibreOrientationFile | ( | const FileFinder & | rFibreOrientationFile | ) | [inline] |
Sets a file for reading the fibre orientation from.
rFibreOrientationFile | the file defining the fibre orientation |
Definition at line 54 of file AbstractConductivityTensors.cpp.
References AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mFibreOrientationFile, and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseFibreOrientation.
Referenced by BidomainTissue< SPACE_DIM >::CreateExtracellularConductivityTensors().
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities | ( | c_vector< double, 1 > | constantConductivities | ) | [inline] |
Sets constant conductivities for all the elements of the mesh.
constantConductivities | Longitudinal, Transverse (y axis) and Normal conductivity (z axis) |
Definition at line 61 of file AbstractConductivityTensors.cpp.
References EXCEPTION, AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mConstantConductivities, and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseNonConstantConductivities.
Referenced by BidomainTissue< SPACE_DIM >::CreateExtracellularConductivityTensors().
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities | ( | c_vector< double, 2 > | constantConductivities | ) | [inline] |
Sets constant conductivities for all the elements of the mesh.
constantConductivities | Longitudinal, Transverse (y axis) and Normal conductivity (z axis) |
Definition at line 73 of file AbstractConductivityTensors.cpp.
References EXCEPTION, AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mConstantConductivities, and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseNonConstantConductivities.
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities | ( | c_vector< double, 3 > | constantConductivities | ) | [inline, virtual] |
Sets constant conductivities for all the elements of the mesh.
constantConductivities | Longitudinal, Transverse (y axis) and Normal conductivity (z axis) |
Reimplemented in AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >.
Definition at line 85 of file AbstractConductivityTensors.cpp.
References EXCEPTION, AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mConstantConductivities, and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseNonConstantConductivities.
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetNonConstantConductivities | ( | std::vector< c_vector< double, SPACE_DIM > > * | pNonConstantConductivities | ) | [inline] |
pNonConstantConductivities | pointer to vector of conductivities (one per local element) |
Definition at line 97 of file AbstractConductivityTensors.cpp.
References AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mpNonConstantConductivities, and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseNonConstantConductivities.
Referenced by BidomainTissue< SPACE_DIM >::CreateExtracellularConductivityTensors().
virtual void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init | ( | AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * | pMesh | ) | throw (Exception) [pure virtual] |
Computes the tensors based in all the info set
pMesh | a pointer to the mesh on which these tensors are to be used |
Implemented in AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >, and OrthotropicConductivityTensors< ELEMENT_DIM, SPACE_DIM >.
Referenced by BidomainTissue< SPACE_DIM >::CreateExtracellularConductivityTensors().
c_matrix< double, SPACE_DIM, SPACE_DIM > & AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::operator[] | ( | const unsigned | global_index | ) | [inline] |
Returns the diffussion tensor of the element number "index"
global_index | Global index of the element of the mesh |
Definition at line 104 of file AbstractConductivityTensors.cpp.
References AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mInitialised, AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mpMesh, AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mTensors, AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseFibreOrientation, and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseNonConstantConductivities.
AbstractTetrahedralMesh<ELEMENT_DIM, SPACE_DIM>* AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mpMesh [protected] |
Mesh on which to apply
Definition at line 47 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::operator[]().
bool AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseNonConstantConductivities [protected] |
Whether conductivities can be non-constant
Definition at line 48 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::operator[](), AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities(), AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities(), and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetNonConstantConductivities().
bool AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mUseFibreOrientation [protected] |
Set by SetFibreOrientationFile so that fibre orientation can be read
Definition at line 49 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::operator[](), and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetFibreOrientationFile().
c_vector<double, SPACE_DIM> AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mConstantConductivities [protected] |
Single constant conductivities for all space (when mUseNonConstantConductivities==false)
Definition at line 52 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities(), and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities().
std::vector<c_vector<double, SPACE_DIM> >* AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mpNonConstantConductivities [protected] |
Non-constant conductivities for each element (when mUseNonConstantConductivities==true) The size of this vector should match the number of local elements in the mesh
Definition at line 58 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetNonConstantConductivities().
std::vector< c_matrix<double,SPACE_DIM,SPACE_DIM> > AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mTensors [protected] |
Container for conductivity tensors (single, size=1 [one for all space] or multiple, size=num local elements [one for each local element])
Definition at line 62 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::operator[]().
bool AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mInitialised [protected] |
Set by Init() in the base classes
Definition at line 65 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::operator[]().
FileFinder AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mFibreOrientationFile [protected] |
Fibre orientation file (see SetFibreOrientationFile)
Definition at line 68 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init(), and AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetFibreOrientationFile().
std::auto_ptr<FibreReader<SPACE_DIM> > AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::mFileReader [protected] |
Fibre file reader
Definition at line 71 of file AbstractConductivityTensors.hpp.
Referenced by AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >::Init().