www.mooseframework.org
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 
11 
12 registerMooseObject("ChemicalReactionsApp", TotalMineralVolumeFraction);
13 
14 template <>
15 InputParameters
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
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 &parameters)
Definition: TotalMineralVolumeFraction.C:24
validParams< TotalMineralVolumeFraction >
InputParameters validParams< TotalMineralVolumeFraction >()
Definition: TotalMineralVolumeFraction.C:16
TotalMineralVolumeFraction.h