www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DesorptionFromMatrix Class Reference

Mass flow rate of adsorbed fluid from matrix Add this to TimeDerivative to form the entire DE for desorption of fluid-in-the-matrix. More...

#include <DesorptionFromMatrix.h>

Inheritance diagram for DesorptionFromMatrix:
[legend]

Public Member Functions

 DesorptionFromMatrix (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual () override
 
virtual Real computeQpJacobian () override
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar) override
 

Protected Attributes

const unsigned int _pressure_var
 MOOSE internal variable number corresponding to the porepressure (need this of OffDiagJacobian) More...
 
const MaterialProperty< Real > & _mass_rate_from_matrix
 mass flow rate from matrix = mass flow rate to porespace More...
 
const MaterialProperty< Real > & _dmass_rate_from_matrix_dC
 derivative of mass flow rate from matrix wrt concentration More...
 
const MaterialProperty< Real > & _dmass_rate_from_matrix_dp
 derivative of mass flow rate from matrix wrt pressure More...
 

Detailed Description

Mass flow rate of adsorbed fluid from matrix Add this to TimeDerivative to form the entire DE for desorption of fluid-in-the-matrix.

Definition at line 23 of file DesorptionFromMatrix.h.

Constructor & Destructor Documentation

DesorptionFromMatrix::DesorptionFromMatrix ( const InputParameters &  parameters)

Definition at line 25 of file DesorptionFromMatrix.C.

26  : Kernel(parameters),
27  _pressure_var(coupled("pressure_var")),
28  _mass_rate_from_matrix(getMaterialProperty<Real>("mass_rate_from_matrix")),
29  _dmass_rate_from_matrix_dC(getMaterialProperty<Real>("dmass_rate_from_matrix_dC")),
30  _dmass_rate_from_matrix_dp(getMaterialProperty<Real>("dmass_rate_from_matrix_dp"))
31 {
32 }
const MaterialProperty< Real > & _dmass_rate_from_matrix_dC
derivative of mass flow rate from matrix wrt concentration
const MaterialProperty< Real > & _mass_rate_from_matrix
mass flow rate from matrix = mass flow rate to porespace
const unsigned int _pressure_var
MOOSE internal variable number corresponding to the porepressure (need this of OffDiagJacobian) ...
const MaterialProperty< Real > & _dmass_rate_from_matrix_dp
derivative of mass flow rate from matrix wrt pressure

Member Function Documentation

Real DesorptionFromMatrix::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 41 of file DesorptionFromMatrix.C.

42 {
43  return _test[_i][_qp] * _dmass_rate_from_matrix_dC[_qp] * _phi[_j][_qp];
44 }
const MaterialProperty< Real > & _dmass_rate_from_matrix_dC
derivative of mass flow rate from matrix wrt concentration
Real DesorptionFromMatrix::computeQpOffDiagJacobian ( unsigned int  jvar)
overrideprotectedvirtual

Definition at line 47 of file DesorptionFromMatrix.C.

48 {
49  if (jvar != _pressure_var)
50  return 0.0;
51  return _test[_i][_qp] * _dmass_rate_from_matrix_dp[_qp] * _phi[_j][_qp];
52 }
const unsigned int _pressure_var
MOOSE internal variable number corresponding to the porepressure (need this of OffDiagJacobian) ...
const MaterialProperty< Real > & _dmass_rate_from_matrix_dp
derivative of mass flow rate from matrix wrt pressure
Real DesorptionFromMatrix::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 35 of file DesorptionFromMatrix.C.

36 {
37  return _test[_i][_qp] * _mass_rate_from_matrix[_qp];
38 }
const MaterialProperty< Real > & _mass_rate_from_matrix
mass flow rate from matrix = mass flow rate to porespace

Member Data Documentation

const MaterialProperty<Real>& DesorptionFromMatrix::_dmass_rate_from_matrix_dC
protected

derivative of mass flow rate from matrix wrt concentration

Definition at line 40 of file DesorptionFromMatrix.h.

Referenced by computeQpJacobian().

const MaterialProperty<Real>& DesorptionFromMatrix::_dmass_rate_from_matrix_dp
protected

derivative of mass flow rate from matrix wrt pressure

Definition at line 43 of file DesorptionFromMatrix.h.

Referenced by computeQpOffDiagJacobian().

const MaterialProperty<Real>& DesorptionFromMatrix::_mass_rate_from_matrix
protected

mass flow rate from matrix = mass flow rate to porespace

Definition at line 37 of file DesorptionFromMatrix.h.

Referenced by computeQpResidual().

const unsigned int DesorptionFromMatrix::_pressure_var
protected

MOOSE internal variable number corresponding to the porepressure (need this of OffDiagJacobian)

Definition at line 34 of file DesorptionFromMatrix.h.

Referenced by computeQpOffDiagJacobian().


The documentation for this class was generated from the following files: