www.mooseframework.org
PrimaryTimeDerivative.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 "PrimaryTimeDerivative.h"
11 
12 registerMooseObject("ChemicalReactionsApp", PrimaryTimeDerivative);
13 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<TimeDerivative>();
19  params.addClassDescription("Derivative of primary species concentration wrt time");
20  return params;
21 }
22 
23 PrimaryTimeDerivative::PrimaryTimeDerivative(const InputParameters & parameters)
24  : TimeDerivative(parameters), _porosity(getMaterialProperty<Real>("porosity"))
25 {
26 }
27 
28 Real
30 {
31  return _porosity[_qp] * TimeDerivative::computeQpResidual();
32 }
33 
34 Real
36 {
37  return _porosity[_qp] * TimeDerivative::computeQpJacobian();
38 }
PrimaryTimeDerivative::PrimaryTimeDerivative
PrimaryTimeDerivative(const InputParameters &parameters)
Definition: PrimaryTimeDerivative.C:23
PrimaryTimeDerivative::computeQpJacobian
virtual Real computeQpJacobian() override
Definition: PrimaryTimeDerivative.C:35
PrimaryTimeDerivative::computeQpResidual
virtual Real computeQpResidual() override
Definition: PrimaryTimeDerivative.C:29
PrimaryTimeDerivative::_porosity
const MaterialProperty< Real > & _porosity
Material property of porosity.
Definition: PrimaryTimeDerivative.h:34
PrimaryTimeDerivative.h
PrimaryTimeDerivative
Define the Kernel for a CoupledConvectionReactionSub operator that looks like: storage * delta pressu...
Definition: PrimaryTimeDerivative.h:24
validParams< PrimaryTimeDerivative >
InputParameters validParams< PrimaryTimeDerivative >()
Definition: PrimaryTimeDerivative.C:16
registerMooseObject
registerMooseObject("ChemicalReactionsApp", PrimaryTimeDerivative)