www.mooseframework.org
PrimaryDiffusion.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 /****************************************************************/
7 #include "PrimaryDiffusion.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<Diffusion>();
14  params.addClassDescription("Diffusion of primary species");
15  return params;
16 }
17 
18 PrimaryDiffusion::PrimaryDiffusion(const InputParameters & parameters)
19  : Diffusion(parameters), _diffusivity(getMaterialProperty<Real>("diffusivity"))
20 {
21 }
22 
23 Real
25 {
26  return _diffusivity[_qp] * Diffusion::computeQpResidual();
27 }
28 
29 Real
31 {
32  return _diffusivity[_qp] * Diffusion::computeQpJacobian();
33 }
virtual Real computeQpJacobian() override
InputParameters validParams< PrimaryDiffusion >()
PrimaryDiffusion(const InputParameters &parameters)
virtual Real computeQpResidual() override
const MaterialProperty< Real > & _diffusivity
Material property of dispersion-diffusion coefficient.