www.mooseframework.org
DesorptionToPorespace.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "LangmuirMaterial.h"
14 
15 // Forward Declarations
17 
18 template <>
19 InputParameters validParams<DesorptionToPorespace>();
20 
26 class DesorptionToPorespace : public Kernel
27 {
28 public:
29  DesorptionToPorespace(const InputParameters & parameters);
30 
31 protected:
32  virtual Real computeQpResidual() override;
33  virtual Real computeQpJacobian() override;
34  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
35 
37  const unsigned int _conc_var;
38 
40  const MaterialProperty<Real> & _mass_rate_from_matrix;
41 
43  const MaterialProperty<Real> & _dmass_rate_from_matrix_dC;
44 
46  const MaterialProperty<Real> & _dmass_rate_from_matrix_dp;
47 };
DesorptionToPorespace::DesorptionToPorespace
DesorptionToPorespace(const InputParameters &parameters)
Definition: DesorptionToPorespace.C:30
DesorptionToPorespace::computeQpResidual
virtual Real computeQpResidual() override
Definition: DesorptionToPorespace.C:40
validParams< DesorptionToPorespace >
InputParameters validParams< DesorptionToPorespace >()
Definition: DesorptionToPorespace.C:18
LangmuirMaterial.h
DesorptionToPorespace::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
Definition: DesorptionToPorespace.C:52
DesorptionToPorespace
Mass flow rate of fluid to the porespace from the matrix Add this to the DE for the porepressure vari...
Definition: DesorptionToPorespace.h:26
DesorptionToPorespace::computeQpJacobian
virtual Real computeQpJacobian() override
Definition: DesorptionToPorespace.C:46
DesorptionToPorespace::_conc_var
const unsigned int _conc_var
MOOSE internal variable number corresponding to the concentration in the matrix (needed for OffDiagJa...
Definition: DesorptionToPorespace.h:37
DesorptionToPorespace::_dmass_rate_from_matrix_dp
const MaterialProperty< Real > & _dmass_rate_from_matrix_dp
derivative of mass flow rate from matrix wrt pressure
Definition: DesorptionToPorespace.h:46
DesorptionToPorespace::_mass_rate_from_matrix
const MaterialProperty< Real > & _mass_rate_from_matrix
mass flow rate from matrix = mass flow rate to porespace
Definition: DesorptionToPorespace.h:40
DesorptionToPorespace::_dmass_rate_from_matrix_dC
const MaterialProperty< Real > & _dmass_rate_from_matrix_dC
derivative of mass flow rate from matrix wrt concentration
Definition: DesorptionToPorespace.h:43