@ Laplace
A source term that multiplies grad phi (for FE)
@ Default
Simply add the source term.
@ Stimulation
Apply cardiac specific treatment before adding.
#define CEPS_SAYS_NOENDL(message)
Writes a message in the debug log and in the terminal (stdio).
#define CEPS_SAYS_INLINE(message)
Writes a message in the debug log and in the terminal (stdio).
std::shared_ptr< DistributedVector > DVecPtr
Short typedef for pointer on distributed vector.
void addFieldValuesTo(ScalarField< _SupportType > &f, DistributedVector *vec, CepsReal t=0.)
Add values to a distributed vector. Exclusive to scalar fields. Field data may be evaluated on the fl...
DVecPtr newDofVector() const
Get a new vector from the factory.
SourceTermManager * getSourceTermManager() const
Get boundary condition manager.
BoundaryConditionManager * getBoundaryConditionManager() const
Get boundary condition manager.
DMatPtr m_lhs
Left hand side of the system.
DVecPtr m_rhs
Right hand side of the system.
DMatPtr m_bcMat
Matrix of boundary conditions.
CepsBool m_hasRegSrc
Flag telling if there are regular source terms.
AbstractDiscretization * m_discretization
Link to PDE discretization.
LinearSystem * m_linearSystem
Linear system.
DMatPtr m_opMat
Matrix of operator.
DVecPtr m_bcVec
Vector of boundary conditions.
CepsBool m_hasLapSrc
Flag telling if there are Delta f source terms.
AbstractPdeProblem * m_problem
Link to PDE to solve.
DMatPtr m_lapSrcMat
Matrix used for laplace source terms.
Astract Problem which does not depend on time.
Base class for solving PDE with no time dependance.
void updateAssemblers() override
Update assemblers and recompute everything is needed.
DHVecPtr m_solution
The actual vector with the solution.
Manager * getDirichletBCs() const
Get the manager for Dirichlet conditions.
FEStaticSolver()=delete
Deleted constructor.
void assembleAndSolve() override
Main routine used during solving, assemble the system and solve it.
FiniteElements * m_fe
Geometry and reference FE.
~FEStaticSolver() override
Destructor.
Holds all finite elements corresponding to each geometrical element.
DMatPtr getMassMatrix() const
Pointer on mass matrix.
virtual void solve(DVecPtr solution)
Solve current linear system. Calls the solver's method.
CepsVector< ScalarSourceTerm * > asVector() const
Get a vector of all source terms.
A namespace for all utility methods.
_Derived runtimeCast(_Base x)
Perform a runtime cast between base type and derived type if we can.