![]() |
OGS
|
Time discretized first order implicit quasi-linear ODE; to be solved using the Picard fixpoint iteration method for resolving nonlinearities.
Definition at line 170 of file TimeDiscretizedODESystem.h.
#include <TimeDiscretizedODESystem.h>
Public Types | |
using | ODE = ODESystem<ODETag, NonlinearSolverTag::Picard> |
The type of ODE. | |
using | MatTrans = MatrixTranslator<ODETag> |
using | TimeDisc = TimeDiscretization |
A shortcut for a general time discretization scheme. | |
Public Member Functions | |
TimeDiscretizedODESystem (const int process_id, ODE &ode, TimeDisc &time_discretization) | |
Constructs a new instance. | |
~TimeDiscretizedODESystem () override | |
void | assemble (std::vector< GlobalVector * > const &x_new_timestep, std::vector< GlobalVector * > const &x_prev, int const process_id) override |
std::vector< GlobalIndexType > | getIndicesOfResiduumWithoutInitialCompensation () const override |
void | getA (GlobalMatrix &A) const override |
void | getRhs (GlobalVector const &x_prev, GlobalVector &rhs) const override |
void | getAandRhsNormalized (GlobalMatrix &A, GlobalVector &rhs) const override |
void | computeKnownSolutions (GlobalVector const &x, int const process_id) override |
void | applyKnownSolutions (GlobalVector &x) const override |
void | applyKnownSolutionsPicard (GlobalMatrix &A, GlobalVector &rhs, GlobalVector &x) const override |
bool | isLinear () const override |
bool | requiresNormalization () const override |
void | preIteration (const unsigned iter, GlobalVector const &x) override |
IterationResult | postIteration (GlobalVector const &x) override |
TimeDisc & | getTimeDiscretization () override |
Exposes the used time discretization scheme. | |
MathLib::MatrixSpecifications | getMatrixSpecifications (const int process_id) const override |
MathLib::LinearSolverBehaviour | linearSolverNeedsToCompute () const override |
![]() |
Static Public Attributes | |
static const ODESystemTag | ODETag |
A tag indicating the type of ODE. | |
Private Types | |
using | Index = MathLib::MatrixVectorTraits<GlobalMatrix>::Index |
Private Attributes | |
ODE & | _ode |
ode the ODE being wrapped | |
TimeDisc & | _time_disc |
the time discretization to being used | |
std::unique_ptr< MatTrans > | _mat_trans |
the object used to compute the matrix/vector for the nonlinear solver | |
std::vector< NumLib::IndexValueVector< Index > > const * | _known_solutions |
stores precomputed values for known solutions | |
GlobalMatrix * | _M |
Matrix \( M \). | |
GlobalMatrix * | _K |
Matrix \( K \). | |
GlobalVector * | _b |
Matrix \( b \). | |
std::size_t | _M_id = 0u |
ID of the _M matrix. | |
std::size_t | _K_id = 0u |
ID of the _K matrix. | |
std::size_t | _b_id = 0u |
ID of the _b vector. | |
|
private |
Definition at line 276 of file TimeDiscretizedODESystem.h.
using NumLib::TimeDiscretizedODESystem< ODESystemTag::FirstOrderImplicitQuasilinear, NonlinearSolverTag::Picard >::MatTrans = MatrixTranslator<ODETag> |
The auxiliary class that computes the matrix/vector used by the nonlinear solver.
Definition at line 183 of file TimeDiscretizedODESystem.h.
using NumLib::TimeDiscretizedODESystem< ODESystemTag::FirstOrderImplicitQuasilinear, NonlinearSolverTag::Picard >::ODE = ODESystem<ODETag, NonlinearSolverTag::Picard> |
The type of ODE.
Definition at line 180 of file TimeDiscretizedODESystem.h.
using NumLib::TimeDiscretizedODESystem< ODESystemTag::FirstOrderImplicitQuasilinear, NonlinearSolverTag::Picard >::TimeDisc = TimeDiscretization |
A shortcut for a general time discretization scheme.
Definition at line 185 of file TimeDiscretizedODESystem.h.
|
explicit |
Constructs a new instance.
Definition at line 190 of file TimeDiscretizedODESystem.cpp.
References NumLib::MatrixProvider::getMatrix(), NumLib::VectorProvider::getVector(), NumLib::GlobalMatrixProvider::provider, and NumLib::GlobalVectorProvider::provider.
|
override |
Definition at line 207 of file TimeDiscretizedODESystem.cpp.
References NumLib::GlobalMatrixProvider::provider, NumLib::GlobalVectorProvider::provider, NumLib::MatrixProvider::releaseMatrix(), and NumLib::VectorProvider::releaseVector().
|
override |
Definition at line 249 of file TimeDiscretizedODESystem.cpp.
References detail::applyKnownSolutions().
|
override |
Definition at line 255 of file TimeDiscretizedODESystem.cpp.
References MathLib::applyKnownSolution().
|
override |
Definition at line 215 of file TimeDiscretizedODESystem.cpp.
References MathLib::LinAlg::finalizeAssembly().
|
override |
Definition at line 240 of file TimeDiscretizedODESystem.cpp.
|
inlineoverride |
Definition at line 205 of file TimeDiscretizedODESystem.h.
|
inlineoverride |
Definition at line 215 of file TimeDiscretizedODESystem.h.
|
inlineoverride |
Definition at line 200 of file TimeDiscretizedODESystem.h.
|
inlineoverride |
Definition at line 246 of file TimeDiscretizedODESystem.h.
|
inlineoverride |
Definition at line 210 of file TimeDiscretizedODESystem.h.
|
inlineoverridevirtual |
Exposes the used time discretization scheme.
Implements NumLib::TimeDiscretizedODESystemBase< NonlinearSolverTag::Picard >.
Definition at line 245 of file TimeDiscretizedODESystem.h.
|
inlineoverride |
Definition at line 228 of file TimeDiscretizedODESystem.h.
|
inlineoverride |
Definition at line 252 of file TimeDiscretizedODESystem.h.
References MathLib::RECOMPUTE, MathLib::RECOMPUTE_AND_STORE, and MathLib::REUSE.
|
inlineoverride |
Definition at line 240 of file TimeDiscretizedODESystem.h.
|
inlineoverride |
Definition at line 235 of file TimeDiscretizedODESystem.h.
|
inlineoverride |
Definition at line 230 of file TimeDiscretizedODESystem.h.
|
private |
Matrix \( b \).
Definition at line 282 of file TimeDiscretizedODESystem.h.
|
private |
ID of the _b
vector.
Definition at line 286 of file TimeDiscretizedODESystem.h.
|
private |
Matrix \( K \).
Definition at line 281 of file TimeDiscretizedODESystem.h.
|
private |
ID of the _K
matrix.
Definition at line 285 of file TimeDiscretizedODESystem.h.
|
private |
stores precomputed values for known solutions
Definition at line 277 of file TimeDiscretizedODESystem.h.
|
private |
Matrix \( M \).
Definition at line 280 of file TimeDiscretizedODESystem.h.
|
private |
ID of the _M
matrix.
Definition at line 284 of file TimeDiscretizedODESystem.h.
|
private |
the object used to compute the matrix/vector for the nonlinear solver
Definition at line 274 of file TimeDiscretizedODESystem.h.
|
private |
ode the ODE being wrapped
Definition at line 270 of file TimeDiscretizedODESystem.h.
|
private |
the time discretization to being used
Definition at line 271 of file TimeDiscretizedODESystem.h.
|
static |
A tag indicating the type of ODE.
Definition at line 176 of file TimeDiscretizedODESystem.h.