https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ODECoefTimeDerivative.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
13
16{
18 params.addRequiredParam<Real>("coef", "The coefficient multiplying the time derivative term");
19 params.addClassDescription("Time derivative term multiplied by a coefficient - used by ODEs.");
20 params.declareControllable("coef");
21 return params;
22}
23
25 : ODETimeDerivative(parameters), _coef(getParam<Real>("coef"))
26{
27}
28
29Real
34
35Real
registerMooseObject("ThermalHydraulicsApp", ODECoefTimeDerivative)
void declareControllable(const std::string &name, std::set< ExecFlagType > execute_flags={})
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Time derivative multiplied by a coefficient for ODEs.
virtual Real computeQpResidual() override
const Real & _coef
Coefficient that the time derivative terms is multiplied with.
static InputParameters validParams()
ODECoefTimeDerivative(const InputParameters &parameters)
virtual Real computeQpJacobian() override
virtual Real computeQpResidual() override
virtual Real computeQpJacobian() override
static InputParameters validParams()