www.mooseframework.org
chemical_reactions
src
postprocessors
TotalMineralVolumeFraction.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 "
TotalMineralVolumeFraction.h
"
11
12
registerMooseObject
(
"ChemicalReactionsApp"
,
TotalMineralVolumeFraction
);
13
14
template
<>
15
InputParameters
16
validParams<TotalMineralVolumeFraction>
()
17
{
18
InputParameters params = validParams<ElementAverageValue>();
19
params.addRequiredParam<Real>(
"molar_volume"
,
"Molar volume of coupled mineral species"
);
20
params.addClassDescription(
"Total volume fraction of coupled mineral species"
);
21
return
params;
22
}
23
24
TotalMineralVolumeFraction::TotalMineralVolumeFraction
(
const
InputParameters & parameters)
25
: ElementAverageValue(parameters), _molar_volume(getParam<Real>(
"molar_volume"
))
26
{
27
}
28
29
Real
30
TotalMineralVolumeFraction::computeQpIntegral
()
31
{
32
return
_molar_volume
* _u[_qp];
33
}
registerMooseObject
registerMooseObject("ChemicalReactionsApp", TotalMineralVolumeFraction)
TotalMineralVolumeFraction
Calculates the total volume fraction of the coupled solid mineral species (volume of mineral species ...
Definition:
TotalMineralVolumeFraction.h:23
TotalMineralVolumeFraction::_molar_volume
const Real _molar_volume
Molar volume of coupled mineral species (molar mass / density)
Definition:
TotalMineralVolumeFraction.h:32
TotalMineralVolumeFraction::computeQpIntegral
virtual Real computeQpIntegral() override
Definition:
TotalMineralVolumeFraction.C:30
TotalMineralVolumeFraction::TotalMineralVolumeFraction
TotalMineralVolumeFraction(const InputParameters ¶meters)
Definition:
TotalMineralVolumeFraction.C:24
validParams< TotalMineralVolumeFraction >
InputParameters validParams< TotalMineralVolumeFraction >()
Definition:
TotalMineralVolumeFraction.C:16
TotalMineralVolumeFraction.h
Generated on Sat Jan 25 2020 12:04:35 for www.mooseframework.org by
1.8.16