https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CoupledDiffusionReactionSub.h
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
10#pragma once
11
12#include "Kernel.h"
13
18{
19public:
21
23
24protected:
25 virtual Real computeQpResidual() override;
26 virtual Real computeQpJacobian() override;
27 virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
28
29private:
33 const Real _weight;
37 const Real _sto_u;
39 const std::vector<Real> _sto_v;
41 const std::vector<unsigned int> _vars;
43 const std::vector<const VariableValue *> _vals;
45 const std::vector<const VariableGradient *> _grad_vals;
49 const std::vector<const VariableValue *> _gamma_v;
52};
Diffusion of primary species in given equilibrium species.
const VariableValue & _gamma_eq
Activity coefficient of equilibrium species.
const std::vector< Real > _sto_v
Stoichiometric coefficients of the coupled primary species.
const VariableValue & _log_k
Equilibrium constant for the equilibrium species in association form.
const Real _sto_u
Stoichiometric coefficient of the primary species.
const VariableValue & _gamma_u
Activity coefficient of primary species in the equilibrium species.
const std::vector< const VariableValue * > _vals
Coupled primary species concentrations.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const MaterialProperty< Real > & _diffusivity
Material property of dispersion-diffusion coefficient.
const Real _weight
Weight of the equilibrium species concentration in the total primary species concentration.
const std::vector< const VariableValue * > _gamma_v
Activity coefficients of coupled primary species in the equilibrium species.
virtual Real computeQpResidual() override
const std::vector< const VariableGradient * > _grad_vals
Coupled gradients of primary species concentrations.
const std::vector< unsigned int > _vars
Coupled primary species variable numbers.
const InputParameters & parameters() const
VariableValueTempl< false > VariableValue