4#ifndef lethe_auxiliary_physics_h
5#define lethe_auxiliary_physics_h
13#include <deal.II/numerics/data_out.h>
43template <
int dim,
typename VectorType>
84 virtual std::vector<OutputStruct<dim, VectorType>>
87 return std::vector<OutputStruct<dim, VectorType>>();
121 virtual const DoFHandler<dim> &
171 virtual std::vector<OutputStructTableHandler>
185 const std::pair<const Variable, Parameters::MultipleAdaptationParameters>
187 dealii::Vector<float> &estimated_error_per_cell) = 0;
virtual void percolate_time_vectors()=0
Carry out the operations required to rearrange the values of the previous solution at the end of a ti...
virtual void post_mesh_adaptation()=0
post_mesh_adaption Interpolates the auxiliary physics variables to the new mesh
virtual void setup_dofs()=0
Sets-up the DofHandler and the degree of freedom associated with the physics.
virtual std::vector< OutputStruct< dim, VectorType > > gather_output_hook()
Gather and return vector of output structs that are particular to some applications.
virtual void compute_error_estimate(const std::pair< const Variable, Parameters::MultipleAdaptationParameters > &ivar, dealii::Vector< float > &estimated_error_per_cell)=0
Compute the Kelly error estimator used to refine mesh on a auxiliary physic parameter.
virtual void postprocess(bool first_iteration)=0
Postprocess the auxiliary physics results. Post-processing this case implies the calculation of all d...
void setup_preconditioner() override
Set up preconditioner. Not used for the auxiliary physics but needed for the compilation of the non-l...
virtual std::vector< OutputStructTableHandler > gather_tables()=0
Returns a vector of references to TableHandler objects that needs to be serialized/deserialized for a...
virtual void output_per_iteration_timer()=0
Output the per iteration wallclock times.
virtual void update_boundary_conditions()
Update non zero constraints if the boundary is time-dependent.
virtual void finish_simulation()=0
Carry out the operations required to finish a simulation correctly.
virtual void write_checkpoint()=0
Prepares auxiliary physics to write checkpoint.
virtual bool should_solve_auxiliary_physics()
Manage if this auxiliary physics should be solved at the current iteration. By default,...
virtual void read_checkpoint()=0
Set solution vector of Auxiliary Physics using checkpoint.
virtual ~AuxiliaryPhysics()=default
AuxiliaryPhysics - Base destructor. At the present moment this is an interface with nothing.
virtual void modify_solution()
Carry out modifications on the auxiliary physic solution. To be defined for some physics only (eg....
virtual void pre_mesh_adaptation()=0
pre_mesh_adaption Prepares the auxiliary physics variables for a mesh refinement/coarsening
virtual void set_initial_conditions()=0
Sets-up the initial conditions associated with the physics. Generally, physics only support imposing ...
virtual const DoFHandler< dim > & get_dof_handler()=0
Provide the dof handler associated with an auxiliary physics TODO : delete as the auxiliary physics a...
AuxiliaryPhysics()
AuxiliaryPhysics - Base constructor for Auxiliary physics. This constructor builds an auxiliary physi...
AuxiliaryPhysics(const Parameters::NonLinearSolver non_linear_solver_parameters)
AuxiliaryPhysics - Base constructor for Auxiliary physics. This constructor builds an auxiliary physi...
PhysicsSolver(const Parameters::NonLinearSolver non_linear_solver_parameters)
Constructor for the non-linear physics.
NonLinearSolver - Parameter that controls the solution of the non-linear problems.
GlobalVectorType VectorType