www.mooseframework.org
CoupledConvectionReactionSub.h
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 
8 #ifndef COUPLEDCONVECTIONREACTIONSUB_H
9 #define COUPLEDCONVECTIONREACTIONSUB_H
10 
11 #include "Kernel.h"
12 #include "DerivativeMaterialInterface.h"
13 
15 
16 template <>
18 
23 class CoupledConvectionReactionSub : public DerivativeMaterialInterface<Kernel>
24 {
25 public:
26  CoupledConvectionReactionSub(const InputParameters & parameters);
27 
28 protected:
29  virtual Real computeQpResidual() override;
30  virtual Real computeQpJacobian() override;
31  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
32 
34  const Real _weight;
35 
37  const Real _log_k;
38 
40  const Real _sto_u;
41 
43  const std::vector<Real> _sto_v;
44 
46  const MaterialProperty<Real> & _cond;
47 
49  const RealVectorValue _gravity;
50 
52  const MaterialProperty<Real> & _density;
53 
55  const VariableGradient & _grad_p;
56 
58  const unsigned int _pvar;
59 
61  std::vector<unsigned int> _vars;
62 
64  std::vector<const VariableValue *> _vals;
65 
67  std::vector<const VariableGradient *> _grad_vals;
68 };
69 
70 #endif // COUPLEDCONVECTIONREACTIONSUB_H
std::vector< const VariableGradient * > _grad_vals
Coupled gradients of primary species concentrations.
const MaterialProperty< Real > & _density
Fluid density.
const Real _log_k
Equilibrium constant for the equilibrium species in association form.
const std::vector< Real > _sto_v
Stoichiometric coefficients of the coupled primary species.
Define the Kernel for a CoupledConvectionReactionSub operator that looks like: weight * velocity * 10...
const VariableGradient & _grad_p
Pressure gradient.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const unsigned int _pvar
Pressure variable number.
const Real _weight
Weight of the equilibrium species concentration in the total primary species concentration.
const RealVectorValue _gravity
Gravity.
std::vector< unsigned int > _vars
Coupled primary species variable numbers.
const Real _sto_u
Stoichiometric coefficient of the primary species.
const MaterialProperty< Real > & _cond
Hydraulic conductivity.
InputParameters validParams< CoupledConvectionReactionSub >()
std::vector< const VariableValue * > _vals
Coupled primary species concentrations.
CoupledConvectionReactionSub(const InputParameters &parameters)