www.mooseframework.org
PrimaryTimeDerivative.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<TimeDerivative>();
14  params.addClassDescription("Derivative of primary species concentration wrt time");
15  return params;
16 }
17 
18 PrimaryTimeDerivative::PrimaryTimeDerivative(const InputParameters & parameters)
19  : TimeDerivative(parameters), _porosity(getMaterialProperty<Real>("porosity"))
20 {
21 }
22 
23 Real
25 {
26  return _porosity[_qp] * TimeDerivative::computeQpResidual();
27 }
28 
29 Real
31 {
32  return _porosity[_qp] * TimeDerivative::computeQpJacobian();
33 }
const MaterialProperty< Real > & _porosity
Material property of porosity.
virtual Real computeQpJacobian() override
virtual Real computeQpResidual() override
PrimaryTimeDerivative(const InputParameters &parameters)
InputParameters validParams< PrimaryTimeDerivative >()