www.mooseframework.org
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CoupledBEKinetic Class Reference

Define the Kernel for a CoupledBEKinetic operator that looks like: delta (weight * v) / delta t. More...

#include <CoupledBEKinetic.h>

Inheritance diagram for CoupledBEKinetic:
[legend]

Public Member Functions

 CoupledBEKinetic (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual () override
 

Private Attributes

const MaterialProperty< Real > & _porosity
 Material property of porosity. More...
 
const std::vector< Real > _weight
 Weight of the kinetic mineral concentration in the total primary species concentration. More...
 
std::vector< const VariableValue * > _vals
 Coupled kinetic mineral concentrations. More...
 
std::vector< const VariableValue * > _vals_old
 Coupled old values of kinetic mineral concentrations. More...
 

Detailed Description

Define the Kernel for a CoupledBEKinetic operator that looks like: delta (weight * v) / delta t.

Definition at line 22 of file CoupledBEKinetic.h.

Constructor & Destructor Documentation

CoupledBEKinetic::CoupledBEKinetic ( const InputParameters &  parameters)

Definition at line 21 of file CoupledBEKinetic.C.

22  : Kernel(parameters),
23  _porosity(getMaterialProperty<Real>("porosity")),
24  _weight(getParam<std::vector<Real>>("weight"))
25 {
26  const unsigned int n = coupledComponents("v");
27  _vals.resize(n);
28  _vals_old.resize(n);
29 
30  for (unsigned int i = 0; i < n; ++i)
31  {
32  _vals[i] = &coupledValue("v", i);
33  _vals_old[i] = &coupledValueOld("v", i);
34  }
35 }
std::vector< const VariableValue * > _vals
Coupled kinetic mineral concentrations.
const std::vector< Real > _weight
Weight of the kinetic mineral concentration in the total primary species concentration.
const MaterialProperty< Real > & _porosity
Material property of porosity.
std::vector< const VariableValue * > _vals_old
Coupled old values of kinetic mineral concentrations.

Member Function Documentation

Real CoupledBEKinetic::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 38 of file CoupledBEKinetic.C.

39 {
40  Real assemble_conc = 0.0;
41  for (unsigned int i = 0; i < _vals.size(); ++i)
42  assemble_conc += _weight[i] * ((*_vals[i])[_qp] - (*_vals_old[i])[_qp]) / _dt;
43 
44  return _porosity[_qp] * _test[_i][_qp] * assemble_conc;
45 }
std::vector< const VariableValue * > _vals
Coupled kinetic mineral concentrations.
const std::vector< Real > _weight
Weight of the kinetic mineral concentration in the total primary species concentration.
const MaterialProperty< Real > & _porosity
Material property of porosity.
std::vector< const VariableValue * > _vals_old
Coupled old values of kinetic mineral concentrations.

Member Data Documentation

const MaterialProperty<Real>& CoupledBEKinetic::_porosity
private

Material property of porosity.

Definition at line 32 of file CoupledBEKinetic.h.

Referenced by computeQpResidual().

std::vector<const VariableValue *> CoupledBEKinetic::_vals
private

Coupled kinetic mineral concentrations.

Definition at line 38 of file CoupledBEKinetic.h.

Referenced by computeQpResidual(), and CoupledBEKinetic().

std::vector<const VariableValue *> CoupledBEKinetic::_vals_old
private

Coupled old values of kinetic mineral concentrations.

Definition at line 41 of file CoupledBEKinetic.h.

Referenced by computeQpResidual(), and CoupledBEKinetic().

const std::vector<Real> CoupledBEKinetic::_weight
private

Weight of the kinetic mineral concentration in the total primary species concentration.

Definition at line 35 of file CoupledBEKinetic.h.

Referenced by computeQpResidual().


The documentation for this class was generated from the following files: