Chaste
Release::3.4
|
Forward declaration which is going to be used for friendship. More...
#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 |
Forward declaration which is going to be used for friendship.
Base class for different representations of conductivity tensors.
Definition at line 51 of file AbstractConductivityTensors.hpp.
|
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 OrthotropicConductivityTensors< ELEMENT_DIM, SPACE_DIM >, and AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >.
c_matrix< double, SPACE_DIM, SPACE_DIM > & AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::operator[] | ( | const unsigned | global_index | ) |
global_index | Global index of the element of the mesh |
Definition at line 111 of file AbstractConductivityTensors.cpp.
References EXCEPTION.
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities | ( | c_vector< double, 1 > | constantConductivities | ) |
Sets constant conductivities for all the elements of the mesh.
constantConductivities | Longitudinal, Transverse (y axis) and Normal conductivity (z axis) |
We need explicit instantiation of this method to make sure that c_vector length matches SPACE_DIM. Compiler won't detect mismatches.
Definition at line 68 of file AbstractConductivityTensors.cpp.
References EXCEPTION.
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetConstantConductivities | ( | c_vector< double, 2 > | constantConductivities | ) |
Sets constant conductivities for all the elements of the mesh.
constantConductivities | Longitudinal, Transverse (y axis) and Normal conductivity (z axis) |
We need explicit instantiation of this method to make sure that c_vector length matches SPACE_DIM. Compiler won't detect mismatches.
Definition at line 80 of file AbstractConductivityTensors.cpp.
References EXCEPTION.
|
virtual |
Sets constant conductivities for all the elements of the mesh.
constantConductivities | Longitudinal, Transverse (y axis) and Normal conductivity (z axis) |
We need explicit instantiation of this method to make sure that c_vector length matches SPACE_DIM. Compiler won't detect mismatches.
Reimplemented in AxisymmetricConductivityTensors< ELEMENT_DIM, SPACE_DIM >.
Definition at line 92 of file AbstractConductivityTensors.cpp.
References EXCEPTION.
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetFibreOrientationFile | ( | const FileFinder & | rFibreOrientationFile | ) |
Sets a file for reading the fibre orientation from.
rFibreOrientationFile | the file defining the fibre orientation |
Definition at line 61 of file AbstractConductivityTensors.cpp.
void AbstractConductivityTensors< ELEMENT_DIM, SPACE_DIM >::SetNonConstantConductivities | ( | std::vector< c_vector< double, SPACE_DIM > > * | pNonConstantConductivities | ) |
pNonConstantConductivities | pointer to vector of conductivities (one per local element) |
Definition at line 104 of file AbstractConductivityTensors.cpp.
|
protected |
Single constant conductivities for all space (when mUseNonConstantConductivities==false)
Definition at line 59 of file AbstractConductivityTensors.hpp.
|
protected |
Fibre orientation file (see SetFibreOrientationFile)
Definition at line 75 of file AbstractConductivityTensors.hpp.
|
protected |
Fibre file reader
Definition at line 78 of file AbstractConductivityTensors.hpp.
|
protected |
Set by Init() in the base classes
Definition at line 72 of file AbstractConductivityTensors.hpp.
|
protected |
Mesh on which to apply
Definition at line 54 of file AbstractConductivityTensors.hpp.
|
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 65 of file AbstractConductivityTensors.hpp.
|
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 69 of file AbstractConductivityTensors.hpp.
|
protected |
Set by SetFibreOrientationFile so that fibre orientation can be read
Definition at line 56 of file AbstractConductivityTensors.hpp.
|
protected |
Whether conductivities can be non-constant
Definition at line 55 of file AbstractConductivityTensors.hpp.