www.mooseframework.org
DesorptionToPorespace.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 #ifndef DESORPTIONTOPORESPACE
8 #define DESORPTIONTOPORESPACE
9 
10 #include "Kernel.h"
11 #include "LangmuirMaterial.h"
12 
13 // Forward Declarations
15 
16 template <>
17 InputParameters validParams<DesorptionToPorespace>();
18 
24 class DesorptionToPorespace : public Kernel
25 {
26 public:
27  DesorptionToPorespace(const InputParameters & parameters);
28 
29 protected:
30  virtual Real computeQpResidual() override;
31  virtual Real computeQpJacobian() override;
32  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
33 
35  const unsigned int _conc_var;
36 
38  const MaterialProperty<Real> & _mass_rate_from_matrix;
39 
41  const MaterialProperty<Real> & _dmass_rate_from_matrix_dC;
42 
44  const MaterialProperty<Real> & _dmass_rate_from_matrix_dp;
45 };
46 
47 #endif // DESORPTIONTOPORESPACE
const unsigned int _conc_var
MOOSE internal variable number corresponding to the concentration in the matrix (needed for OffDiagJa...
const MaterialProperty< Real > & _mass_rate_from_matrix
mass flow rate from matrix = mass flow rate to porespace
InputParameters validParams< DesorptionToPorespace >()
Mass flow rate of fluid to the porespace from the matrix Add this to the DE for the porepressure vari...
virtual Real computeQpJacobian() override
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
DesorptionToPorespace(const InputParameters &parameters)
virtual Real computeQpResidual() override
const MaterialProperty< Real > & _dmass_rate_from_matrix_dC
derivative of mass flow rate from matrix wrt concentration
const MaterialProperty< Real > & _dmass_rate_from_matrix_dp
derivative of mass flow rate from matrix wrt pressure