https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TransientInterface.h
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
10#pragma once
11
12#include "Moose.h"
14
15#define usingTransientInterfaceMembers \
16 using TransientInterface::_t; \
17 using TransientInterface::_t_step; \
18 using TransientInterface::_dt; \
19 using TransientInterface::_dt_old
20
21// Forward declarations
22class FEProblemBase;
23class InputParameters;
24class MooseObject;
25template <typename T>
27
32{
33public:
34 TransientInterface(const MooseObject * moose_object);
35
36#ifdef MOOSE_KOKKOS_ENABLED
41#endif
42
43 virtual ~TransientInterface();
44
46
47 bool isImplicit() { return _is_implicit; }
48
55
56protected:
58
60
68
70 Real & _t;
71
73 const Real & _t_old;
74
76 int & _t_step;
77
79 Real & _dt;
80
82 Real & _dt_old;
83
84 // NOTE: dunno if it is set properly in time of instantiation (might be a source of bugs)
86
87private:
88 const std::string _ti_name;
89};
90
91inline Moose::StateArg
InputParameters validParams()
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Every object that can be built by the factory should be derived from this class.
Definition MooseObject.h:31
Interface for objects that needs transient capabilities.
Real & _dt
Time step size.
const Real & _t_old
Old time.
static InputParameters validParams()
bool _is_implicit
If the object is using implicit or explicit form.
FEProblemBase & _ti_feproblem
int & _t_step
The number of the time step.
const std::string _ti_name
Real & _dt_old
Size of the old time step.
const InputParameters & _ti_params
Moose::StateArg determineState() const
Create a functor state argument that corresponds to the implicit state of this object.
StateArg oldState()
StateArg currentState()
State argument for evaluating functors.