#include <BasicBidomainSolver.hpp>
Public Member Functions | |
BasicBidomainSolver (bool bathSimulation, AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > *pMesh, BidomainTissue< SPACE_DIM > *pTissue, BoundaryConditionsContainer< ELEMENT_DIM, SPACE_DIM, 2 > *pBcc, unsigned numQuadPoints=2) | |
virtual | ~BasicBidomainSolver () |
Protected Member Functions | |
void | SetupLinearSystem (Vec currentSolution, bool computeMatrix) |
virtual void | InitialiseAssembler () |
Definition at line 55 of file BasicBidomainSolver.hpp.
BasicBidomainSolver< ELEMENT_DIM, SPACE_DIM >::BasicBidomainSolver | ( | bool | bathSimulation, | |
AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > * | pMesh, | |||
BidomainTissue< SPACE_DIM > * | pTissue, | |||
BoundaryConditionsContainer< ELEMENT_DIM, SPACE_DIM, 2 > * | pBcc, | |||
unsigned | numQuadPoints = 2 | |||
) | [inline] |
Constructor
bathSimulation | Whether the simulation involves a perfusing bath | |
pMesh | pointer to the mesh | |
pTissue | pointer to the tissue | |
pBcc | pointer to the boundary conditions | |
numQuadPoints | number of quadrature points (defaults to 2) |
Definition at line 34 of file BasicBidomainSolver.cpp.
References AbstractCardiacTissue< SPACE_DIM >::SetCacheReplication().
virtual BasicBidomainSolver< ELEMENT_DIM, SPACE_DIM >::~BasicBidomainSolver | ( | ) | [inline, virtual] |
Destructor.
Definition at line 96 of file BasicBidomainSolver.hpp.
void BasicBidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem | ( | Vec | currentSolution, | |
bool | computeMatrix | |||
) | [inline, protected, virtual] |
Implemented SetupLinearSystem() method, which uses the BidomainAssembler to assemble the LHS matrix if required, and uses the BidomainAssembler to *assemble* the RHS vector. Much slower than doing matrix-based RHS setup, which is done in MatrixBasedBidomainSolver
currentSolution | Solution at current time | |
computeMatrix | Whether to compute the matrix of the linear system |
Implements AbstractLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >.
Definition at line 47 of file BasicBidomainSolver.cpp.
References BoundaryConditionsContainer< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::ApplyDirichletToLinearProblem(), LinearSystem::AssembleFinalLhsMatrix(), LinearSystem::AssembleRhsVector(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::FinaliseForBath(), BasicBidomainSolver< ELEMENT_DIM, SPACE_DIM >::InitialiseAssembler(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::mBathSimulation, AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::mpBidomainAssembler, AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::mpBoundaryConditions, AbstractLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::mpLinearSystem, LinearSystem::rGetLhsMatrix(), and LinearSystem::rGetRhsVector().
void BasicBidomainSolver< ELEMENT_DIM, SPACE_DIM >::InitialiseAssembler | ( | ) | [inline, protected, virtual] |
Initialise the bidomain assembler. Can be overloaded
Definition at line 95 of file BasicBidomainSolver.cpp.
References AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::mBathSimulation, AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, 2 >::mDt, AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::mNumQuadPoints, AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::mpBidomainAssembler, AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::mpBidomainTissue, and AbstractLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::mpMesh.
Referenced by BasicBidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem().