53 if (pb->hasAnodalCathodalStimulation())
55 CEPS_SAYS(
"Anodal cathodal stimulation enabled");
63 bcManager->
getNeumannBCs()->at(
"ANODE")->setScaleFactor(1. / anodeMeas);
64 CEPS_SAYS(
"Anode intensity divided by the electrode measure: " << anodeMeas);
66 bcManager->
getNeumannBCs()->at(
"CATHODE")->setScaleFactor(1. / cathodeMeas);
67 CEPS_SAYS(
"Cathode intensity divided by the electrode measure: " << cathodeMeas);
77 if (bepb->requireNullMean())
84 LhsAssembler* opAsb = ceps::getNew<LhsAssembler>(bepb,
m_fe);
101 return ceps::runtimeCast<ExtendedBidomainProblem*>(
m_problem);
#define CEPS_SAYS(message)
Writes a message in the debug log and in the terminal (stdio).
std::set< _Type, _Compare, _Alloc > CepsSet
C++ set.
float CepsReal
Need single precision floating point.
constexpr CepsAttribute CepsUniversal
This attribute means "everywhere".
CepsReal getDomainMeasure(const CepsVector< FEBase * > &cells, const CepsSet< CepsAttribute > &attributes, CepsBool onlyOfThisProc)
Compute the measure of a set of a cells.
InputParameters * getParameters() const
Text parameters.
Unknown * getUnknown(const CepsString &label) const
Get an unknown by its name.
AbstractAssembler * m_bcAsb
Assembler for Robin and Neumann BCs.
AbstractAssembler * m_opAsb
Assembler for the operator matrix.
AbstractPdeProblem * m_problem
Link to PDE to solve.
Solves bidomain problem with FBE, SBDF RK or CN schemes.
Boundary condition to manage Dirichlet, Neumann and Robin conditions.
Manager * getNeumannBCs() const
Get the manager for Neumann conditions of dim.
Bidomain equation with extracardiac medium main class.
ExtendedBidomainSolver(ExtendedBidomainProblem *problem)
Constructor from problem.
void initializeAssemblers() override
Sets the assemblers.
ExtendedBidomainProblem * getExtendedBidomainProblem() const
Converts own pointer to abstract pde problem to cardiac problem.
void setupWithParameters(InputParameters *params) override
Set attributes from input file. Parameters are passed as arguments in case one wants to use other par...
Linear system builder for the bidomain extended equation.
A class that adds a 0 mean constraint to an already existing assembler.
FiniteElements * m_fe
Geometry and reference FE.
CepsVector< FEBase * > & getBoundaryFiniteElements()
Get vector containing all finite elements of the maximum valid dim.
CepsBool isValidPtr(_Type *ptr)
Tells if pointer is not null.