46 return ceps::runtimeCast<DirichletAnodeCathodeProblem*>(
m_problem);
58 m_bcAsb = ceps::getNew<FEDivKGradBCAssembler>(
m_fe);
void setMatrix(DistributedMatrix *mat)
The matrix to assemble.
void setVector(DistributedVector *vec)
The vector to assemble.
Unknown * getUnknown(const CepsString &label) const
Get an unknown by its name.
DMatPtr m_lhs
Left hand side of the system.
DVecPtr m_rhs
Right hand side of the system.
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.
Poisson equation with Dirichlet 1 on anode, 0 on cathode. Neumann elsewhere. Functional tensorial con...
DirichletAnodeCathodeProblem * getDirichletAnodeCathodeProblem() const
Returns a pointer to the linked problem with appropriate type.
void initializeAssemblers() override
Creates the LHS assembler.
DirichletAnodeCathodeSolver(DirichletAnodeCathodeProblem *problem)
Constructor.
~DirichletAnodeCathodeSolver() override
Destructor.
Assembles the stiffness matrix for a given k-simplexes geometry.
void setKForUnknown(Unknown *u, CepsMathScalar k)
Register the diffusion coefficient (x,t,...) for given unknown.
FiniteElements * m_fe
Geometry and reference FE.
Solve laplacian equation with backward Euler, constant time step, using Finite Elements.