www.mooseframework.org
CoefTimeDerivative.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "CoefTimeDerivative.h"
11 
13 
16 {
18  params.addParam<Real>("Coefficient", 1, "The coefficient for the time derivative kernel");
19  return params;
20 }
21 
23  : TimeDerivative(parameters), _coef(getParam<Real>("Coefficient"))
24 {
25 }
26 
27 Real
29 {
31 }
32 
33 Real
35 {
37 }
Time derivative term multiplied by a coefficient.
virtual Real computeQpResidual() override
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
registerMooseObject("MooseApp", CoefTimeDerivative)
static InputParameters validParams()
virtual Real computeQpJacobian() override
Compute this Kernel&#39;s contribution to the Jacobian at the current quadrature point.
virtual Real computeQpResidual()
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
Real _coef
The coefficient the time derivative is multiplied with.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeQpJacobian()
Compute this Kernel&#39;s contribution to the Jacobian at the current quadrature point.
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an option parameter and a documentation string to the InputParameters object...
CoefTimeDerivative(const InputParameters &parameters)