4#ifndef lethe_physics_subequations_solver_h
5#define lethe_physics_subequations_solver_h
76template <
int dim,
typename VectorType>
92 const ConditionalOStream &
pcout)
const ConditionalOStream pcout
PhysicsLinearSubequationsSolver(const ConditionalOStream &pcout)
Constructor for physics subequations that require the use of a linear solver within the span of the p...
virtual void solve_linear_system_and_update_solution()=0
Solve the linear system associated with the equation to solve, when the equation is already linear.
virtual ~PhysicsLinearSubequationsSolver()=default
Default destructor.
const ConditionalOStream pcout
virtual ~PhysicsNonlinearSubequationsSolver()=default
Default destructor.
void setup_preconditioner() override
Setup preconditioner.
PhysicsNonlinearSubequationsSolver(const Parameters::NonLinearSolver non_linear_solver_parameters, const ConditionalOStream &pcout)
Constructor for physics subequations that require the use of a non-linear solver within the span of t...
PhysicsSolver(const Parameters::NonLinearSolver non_linear_solver_parameters)
Constructor for the non-linear physics.
Base class to solve subequations solved inside a physics (or auxiliary physics) that are not part of ...
virtual void solve()=0
Assemble and solve the system.
virtual void setup_dofs()=0
Set up the DofHandler and the degrees of freedom associated with the equation to solve.
NonLinearSolver - Parameter that controls the solution of the non-linear problems.
GlobalVectorType VectorType