https://mooseframework.inl.gov
CoupledBEEquilibriumSub.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 "TimeDerivative.h"
13 
18 {
19 public:
21 
23 
24 protected:
25  virtual Real computeQpResidual() override;
26  virtual Real computeQpJacobian() override;
27  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
28 
29 private:
31  const Real _weight;
35  const Real _sto_u;
37  const std::vector<Real> _sto_v;
43  const std::vector<const VariableValue *> _gamma_v;
45  const std::vector<const VariableValue *> _gamma_v_old;
53  const std::vector<unsigned int> _vars;
55  const std::vector<const VariableValue *> _v_vals;
57  const std::vector<const VariableValue *> _v_vals_old;
60 };
CoupledBEEquilibriumSub(const InputParameters &parameters)
const std::vector< const VariableValue * > _v_vals_old
Old values of coupled primary species concentrations.
const std::vector< const VariableValue * > _gamma_v
Activity coefficients of coupled primary species in the equilibrium species.
const VariableValue & _gamma_eq_old
Old activity coefficient of equilibrium species.
const VariableValue & _gamma_eq
Activity coefficient of equilibrium species.
static InputParameters validParams()
const VariableValue & _gamma_u
Activity coefficient of primary species in the equilibrium species.
virtual Real computeQpJacobian() override
const std::vector< unsigned int > _vars
Coupled primary species variable numbers.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const VariableValue & _gamma_u_old
Old activity coefficient of primary species in the equilibrium species.
const MaterialProperty< Real > & _porosity
Porosity.
const std::vector< const VariableValue * > _v_vals
Coupled primary species concentrations.
OutputTools< Real >::VariableValue VariableValue
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _sto_u
Stoichiometric coefficient of the primary species in the equilibrium species.
const std::vector< const VariableValue * > _gamma_v_old
Old activity coefficients of coupled primary species in the equilibrium species.
const InputParameters & parameters() const
virtual Real computeQpResidual() override
const std::vector< Real > _sto_v
Stoichiometric coefficients of the coupled primary species in the equilibrium species.
const VariableValue & _u_old
Old value of the primary species concentration.
const Real _weight
Weight of the equilibrium species in the total primary species.
Time derivative of primary species in given equilibrium species.
const VariableValue & _log_k
Equilibrium constant for the equilibrium species.