13#include "libmesh/numeric_vector.h"
22 "Implements an explicit Adams predictor based on two old solution vectors.");
23 params.
addParam<
int>(
"order", 2,
"The maximum reachable order of the Adams-Bashforth Predictor");
29 _order(getParam<
int>(
"order")),
30 _current_old_solution(_nl.addVector(
"AB2_current_old_solution", true,
libMesh::GHOSTED)),
31 _older_solution(_nl.addVector(
"AB2_older_solution", true,
libMesh::GHOSTED)),
32 _oldest_solution(_nl.addVector(
"AB2_rejected_solution", true,
libMesh::GHOSTED)),
33 _tmp_previous_solution(_nl.addVector(
"tmp_previous_solution", true,
libMesh::GHOSTED)),
34 _tmp_residual_old(_nl.addVector(
"tmp_residual_old", true,
libMesh::GHOSTED)),
35 _tmp_third_vector(_nl.addVector(
"tmp_third_vector", true,
libMesh::GHOSTED)),
36 _dt_older(declareRestartableData<Real>(
"dt_older", 0)),
37 _dtstorage(declareRestartableData<Real>(
"dtstorage", 0))
88 Real firstpart = (1 + .5 * commonpart);
95 vector2 *= -1. * commonpart * (firstpart + secondpart);
96 vector3 *= commonpart * secondpart;
registerMooseObject("MooseApp", AdamsPredictor)
void ErrorVector unsigned int
Implements an explicit Adams predictor based on two old solution vectors.
NumericVector< Number > & _tmp_third_vector
virtual void timestepSetup() override
virtual bool shouldApply() override
virtual void apply(NumericVector< Number > &sln) override
NumericVector< Number > & _current_old_solution
NumericVector< Number > & _tmp_residual_old
NumericVector< Number > & _oldest_solution
AdamsPredictor(const InputParameters ¶meters)
NumericVector< Number > & _older_solution
static InputParameters validParams()
Base class for predictors.
virtual bool shouldApply()
bool & _is_repeated_timestep
NumericVector< Number > & _solution_predictor
static InputParameters validParams()
NonlinearSystemBase & _nl
virtual void timestepSetup()
NumericVector< Number > & solutionOld()
virtual void localize(std::vector< T > &v_local) const=0
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...