32template <NonlinearSolverTag NLTag>
48template <ODESystemTag ODETag, NonlinearSolverTag NLTag>
85 void assemble(std::vector<GlobalVector*>
const& x_new_timestep,
86 std::vector<GlobalVector*>
const& x_prev,
87 int const process_id)
override;
91 std::vector<GlobalIndexType>
94 return _ode.getIndicesOfResiduumWithoutInitialCompensation();
98 int const process_id)
override
100 _ode.setReleaseNodalForces(r_neq, process_id);
110 int const process_id)
override;
112 void applyKnownSolutions(
GlobalVector& x)
const override;
122 int const process_id)
override
124 _ode.updateConstraints(lower, upper, process_id);
131 return _ode.requiresNormalization();
136 _ode.preIteration(iter, x);
141 return _ode.postIteration(x);
146 const int process_id)
const override
148 return _ode.getMatrixSpecifications(process_id);
199 void assemble(std::vector<GlobalVector*>
const& x_new_timestep,
200 std::vector<GlobalVector*>
const& x_prev,
201 int const process_id)
override;
205 std::vector<GlobalIndexType>
208 return _ode.getIndicesOfResiduumWithoutInitialCompensation();
212 int const process_id)
override
214 _ode.setReleaseNodalForces(r_neq, process_id);
233 int const process_id)
override;
235 void applyKnownSolutions(
GlobalVector& x)
const override;
237 void applyKnownSolutionsPicard(
245 return _ode.requiresNormalization();
250 _ode.preIteration(iter, x);
255 return _ode.postIteration(x);
260 const int process_id)
const override
262 return _ode.getMatrixSpecifications(process_id);
267 if (
_ode.shouldLinearSolverComputeOnlyUponTimestepChange() &&
273 if (
_ode.shouldLinearSolverComputeOnlyUponTimestepChange() &&
MathLib::EigenMatrix GlobalMatrix
MathLib::EigenVector GlobalVector
virtual TimeDiscretization & getTimeDiscretization()=0
Exposes the used time discretization scheme.
MatrixTranslator< ODETag > MatTrans
bool requiresNormalization() const override
static const ODESystemTag ODETag
A tag indicating the type of ODE.
GlobalMatrix * _Jac
the Jacobian of the residual
std::size_t _b_id
ID of the _b vector.
std::unique_ptr< MatTrans > _mat_trans
the object used to compute the matrix/vector for the nonlinear solver
void preIteration(const unsigned iter, GlobalVector const &x) override
ODE & _ode
ode the ODE being wrapped
std::vector< NumLib::IndexValueVector< Index > > const * _known_solutions
stores precomputed values for known solutions
MathLib::MatrixSpecifications getMatrixSpecifications(const int process_id) const override
std::vector< GlobalIndexType > getIndicesOfResiduumWithoutInitialCompensation() const override
TimeDiscretizedODESystem(const int process_id, ODE &ode, TimeDisc &time_discretization)
void updateConstraints(GlobalVector &lower, GlobalVector &upper, int const process_id) override
TimeDiscretization TimeDisc
A shortcut for a general time discretization scheme.
TimeDisc & _time_disc
the time discretization to being used
void assemble(std::vector< GlobalVector * > const &x_new_timestep, std::vector< GlobalVector * > const &x_prev, int const process_id) override
GlobalVector * _b
Matrix .
std::size_t _Jac_id
ID of the _Jac matrix.
bool isLinear() const override
TimeDisc & getTimeDiscretization() override
Exposes the used time discretization scheme.
IterationResult postIteration(GlobalVector const &x) override
void setReleaseNodalForces(GlobalVector const *r_neq, int const process_id) override
MathLib::MatrixVectorTraits< GlobalMatrix >::Index Index
ODESystem< ODETag, NonlinearSolverTag::Newton > ODE
The type of ODE.
TimeDiscretization TimeDisc
A shortcut for a general time discretization scheme.
void getA(GlobalMatrix &A) const override
bool requiresNormalization() const override
GlobalMatrix * _K
Matrix .
void preIteration(const unsigned iter, GlobalVector const &x) override
GlobalMatrix * _M
Matrix .
bool isLinear() const override
MathLib::LinearSolverBehaviour linearSolverNeedsToCompute() const override
ODE & _ode
ode the ODE being wrapped
std::size_t _b_id
ID of the _b vector.
void assemble(std::vector< GlobalVector * > const &x_new_timestep, std::vector< GlobalVector * > const &x_prev, int const process_id) override
std::size_t _M_id
ID of the _M matrix.
ODESystem< ODETag, NonlinearSolverTag::Picard > ODE
The type of ODE.
MathLib::MatrixVectorTraits< GlobalMatrix >::Index Index
std::vector< GlobalIndexType > getIndicesOfResiduumWithoutInitialCompensation() const override
static const ODESystemTag ODETag
A tag indicating the type of ODE.
MatrixTranslator< ODETag > MatTrans
MathLib::MatrixSpecifications getMatrixSpecifications(const int process_id) const override
IterationResult postIteration(GlobalVector const &x) override
std::size_t _K_id
ID of the _K matrix.
GlobalVector * _b
Matrix .
void setReleaseNodalForces(GlobalVector const *r_neq, int const process_id) override
TimeDiscretizedODESystem(const int process_id, ODE &ode, TimeDisc &time_discretization)
Constructs a new instance.
TimeDisc & getTimeDiscretization() override
Exposes the used time discretization scheme.
TimeDisc & _time_disc
the time discretization to being used
void getRhs(GlobalVector const &x_prev, GlobalVector &rhs) const override
std::vector< NumLib::IndexValueVector< Index > > const * _known_solutions
stores precomputed values for known solutions
void getAandRhsNormalized(GlobalMatrix &A, GlobalVector &rhs) const override
std::unique_ptr< MatTrans > _mat_trans
the object used to compute the matrix/vector for the nonlinear solver
ODESystemTag
Tag used to specify the type of ODE.
IterationResult
Status flags telling the NonlinearSolver if an iteration succeeded.
@ FirstOrderImplicitQuasilinear
DirichletBCApplicationMode