20#ifndef LIBMESH_ADAPTIVE_TIME_SOLVER_H
21#define LIBMESH_ADAPTIVE_TIME_SOLVER_H
24#include "libmesh/system_norm.h"
25#include "libmesh/first_order_unsteady_solver.h"
69 virtual void init()
override;
71 virtual void reinit()
override;
73 virtual void solve()
override = 0;
87#ifdef LIBMESH_ENABLE_AMR
119 virtual std::unique_ptr<DiffSolver> &
diff_solver()
override;
125 virtual std::unique_ptr<LinearSolver<Number>> &
linear_solver()
override;
This class wraps another UnsteadySolver derived class, and compares the results of timestepping with ...
virtual void reinit() override
The reinitialization function.
virtual void adjoint_advance_timestep() override
This method advances the adjoint solution to the previous timestep, after an adjoint_solve() has been...
virtual void solve() override=0
This method solves for the solution at the next timestep.
virtual Real calculate_norm(System &, NumericVector< Number > &)
A helper function to calculate error norms.
virtual void integrate_qoi_timestep() override=0
A method to integrate the system::QoI functionals.
Real completed_timestep_size
The adaptive time solver's have two notions of deltat.
virtual std::unique_ptr< LinearSolver< Number > > & linear_solver() override
An implicit linear solver to use for adjoint and sensitivity problems.
Real min_deltat
Do not allow the adaptive time solver to select deltat < min_deltat.
Real upper_tolerance
This tolerance is the maximum relative error between an exact time integration and a single time step...
virtual void integrate_adjoint_sensitivity(const QoISet &qois, const ParameterVector ¶meter_vector, SensitivityData &sensitivities) override=0
A method to integrate the adjoint sensitivity w.r.t a given parameter vector.
virtual void integrate_adjoint_refinement_error_estimate(AdjointRefinementEstimator &adjoint_refinement_error_estimator, ErrorVector &QoI_elementwise_error) override=0
A method to compute the adjoint refinement error estimate at the current timestep.
SystemNorm component_norm
Error calculations are done in this norm, DISCRETE_L2 by default.
std::unique_ptr< UnsteadySolver > core_time_solver
This object is used to take timesteps.
virtual std::pair< unsigned int, Real > adjoint_solve(const QoISet &qoi_indices) override=0
This method solves for the adjoint solution at the next adjoint timestep (or a steady state adjoint s...
virtual bool side_residual(bool get_jacobian, DiffContext &) override
This method is passed on to the core_time_solver.
virtual void advance_timestep() override
This method advances the solution to the next timestep, after a solve() has been performed.
virtual ~AdaptiveTimeSolver()
Destructor.
Real max_deltat
Do not allow the adaptive time solver to select deltat > max_deltat.
virtual Real last_completed_timestep_size() override
Returns system.deltat if fixed timestep solver is used, the complete timestep size (sum of all subste...
virtual std::unique_ptr< DiffSolver > & diff_solver() override
An implicit linear or nonlinear solver to use at each timestep.
virtual bool element_residual(bool get_jacobian, DiffContext &) override
This method is passed on to the core_time_solver.
virtual bool nonlocal_residual(bool get_jacobian, DiffContext &) override
This method is passed on to the core_time_solver.
Real target_tolerance
This tolerance is the target relative error between an exact time integration and a single time step ...
bool global_tolerance
This flag, which is true by default, grows (shrinks) the timestep based on the expected global accura...
FirstOrderUnsteadySolver Parent
The parent class.
std::vector< float > component_scale
If component_norms is non-empty, each variable's contribution to the error of a system will also be s...
Real max_growth
Do not allow the adaptive time solver to select a new deltat greater than max_growth times the old de...
virtual Real error_order() const override
This method is passed on to the core_time_solver.
virtual void retrieve_timestep() override
This method retrieves all the stored solutions at the current system.time.
virtual void init() override
The initialization function.
This class implements a "brute force" goal-oriented error estimator which computes an estimate of err...
This class provides all data required for a physics package (e.g.
This class provides a specific system class.
The ErrorVector is a specialization of the StatisticsVector for error data computed on a finite eleme...
Generic class from which first order UnsteadySolvers should subclass.
Provides a uniform interface to vector storage schemes for different linear algebra libraries.
Data structure for specifying which Parameters should be independent variables in a parameter sensiti...
Data structure for specifying which Quantities of Interest should be calculated in an adjoint or a pa...
Data structure for holding completed parameter sensitivity calculations.
This class defines a norm/seminorm to be applied to a NumericVector which contains coefficients in a ...
Manages consistently variables, degrees of freedom, and coefficient vectors.
The libMesh namespace provides an interface to certain functionality in the library.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real