https://mooseframework.inl.gov
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 
10 #include "ODECoefTimeDerivative.h"
11 
12 registerMooseObject("ThermalHydraulicsApp", ODECoefTimeDerivative);
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 
29 Real
31 {
33 }
34 
35 Real
37 {
39 }
virtual Real computeQpJacobian() override
void addRequiredParam(const std::string &name, const std::string &doc_string)
ODECoefTimeDerivative(const InputParameters &parameters)
virtual Real computeQpResidual() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
virtual Real computeQpJacobian() override
void addClassDescription(const std::string &doc_string)
Time derivative multiplied by a coefficient for ODEs.
static InputParameters validParams()
const Real & _coef
Coefficient that the time derivative terms is multiplied with.
void declareControllable(const std::string &name, std::set< ExecFlagType > execute_flags={})
registerMooseObject("ThermalHydraulicsApp", ODECoefTimeDerivative)
virtual Real computeQpResidual() override