https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearTimeIntegratorInterface.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11#include "FEProblem.h"
12#include "LinearSystem.h"
13
14#include "libmesh/linear_implicit_system.h"
15
17 : _linear_system(dynamic_cast<LinearSystem *>(&system)),
18 _linear_implicit_system(
19 _linear_system ? dynamic_cast<LinearImplicitSystem *>(&_linear_system->system()) : nullptr)
20{
21}
22
23Real
25 const dof_id_type /*dof_id*/, const std::vector<Real> & /*factors*/) const
26{
27 mooseError("The time derivative right hand side contribution has not been implemented yet",
28 _linear_system ? " for time integrator of system " + _linear_system->name() : "",
29 "!");
30}
31
32Real
34{
35 mooseError("The time derivative matrix contribution has not been implemented yet",
36 _linear_system ? " for time integrator of system " + _linear_system->name() : "",
37 "!");
38}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
Linear system to be solved.
LinearSystem * _linear_system
Pointer to the linear system, can happen that we dont have any.
virtual Real timeDerivativeRHSContribution(dof_id_type dof_id, const std::vector< Real > &factors={}) const
The time derivative's contribution to the right hand side of a linear system.
virtual Real timeDerivativeMatrixContribution(const Real factor) const
The time derivative's contribution to the right hand side of a linear system.
Base class for a system (of equations)
Definition SystemBase.h:87
virtual const std::string & name() const