https://mooseframework.inl.gov
TotalMineralVolumeFraction.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 
16 {
18  params.addRequiredParam<Real>("molar_volume", "Molar volume of coupled mineral species");
19  params.addClassDescription("Total volume fraction of coupled mineral species");
20  return params;
21 }
22 
24  : ElementAverageValue(parameters), _molar_volume(getParam<Real>("molar_volume"))
25 {
26 }
27 
28 Real
30 {
31  return _molar_volume * _u[_qp];
32 }
const Real _molar_volume
Molar volume of coupled mineral species (molar mass / density)
virtual Real computeQpIntegral() override
unsigned int _qp
TotalMineralVolumeFraction(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
const VariableValue & _u
Calculates the total volume fraction of the coupled solid mineral species (volume of mineral species ...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("ChemicalReactionsApp", TotalMineralVolumeFraction)