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

Mass flow rate of fluid to the porespace from the matrix Add this to the DE for the porepressure variable to get fluid flowing from the matrix to the porespace. More...

#include <DesorptionToPorespace.h>

Inheritance diagram for DesorptionToPorespace:
[legend]

Public Member Functions

 DesorptionToPorespace (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 _conc_var
 MOOSE internal variable number corresponding to the concentration in the matrix (needed for 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 fluid to the porespace from the matrix Add this to the DE for the porepressure variable to get fluid flowing from the matrix to the porespace.

Definition at line 24 of file DesorptionToPorespace.h.

Constructor & Destructor Documentation

DesorptionToPorespace::DesorptionToPorespace ( const InputParameters &  parameters)

Definition at line 25 of file DesorptionToPorespace.C.

26  : Kernel(parameters),
27  _conc_var(coupled("conc_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 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
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

Member Function Documentation

Real DesorptionToPorespace::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 41 of file DesorptionToPorespace.C.

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

Definition at line 47 of file DesorptionToPorespace.C.

48 {
49  if (jvar != _conc_var)
50  return 0.0;
51  return -_test[_i][_qp] * _dmass_rate_from_matrix_dC[_qp] * _phi[_j][_qp];
52 }
const unsigned int _conc_var
MOOSE internal variable number corresponding to the concentration in the matrix (needed for OffDiagJa...
const MaterialProperty< Real > & _dmass_rate_from_matrix_dC
derivative of mass flow rate from matrix wrt concentration
Real DesorptionToPorespace::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 35 of file DesorptionToPorespace.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 unsigned int DesorptionToPorespace::_conc_var
protected

MOOSE internal variable number corresponding to the concentration in the matrix (needed for OffDiagJacobian)

Definition at line 35 of file DesorptionToPorespace.h.

Referenced by computeQpOffDiagJacobian().

const MaterialProperty<Real>& DesorptionToPorespace::_dmass_rate_from_matrix_dC
protected

derivative of mass flow rate from matrix wrt concentration

Definition at line 41 of file DesorptionToPorespace.h.

Referenced by computeQpOffDiagJacobian().

const MaterialProperty<Real>& DesorptionToPorespace::_dmass_rate_from_matrix_dp
protected

derivative of mass flow rate from matrix wrt pressure

Definition at line 44 of file DesorptionToPorespace.h.

Referenced by computeQpJacobian().

const MaterialProperty<Real>& DesorptionToPorespace::_mass_rate_from_matrix
protected

mass flow rate from matrix = mass flow rate to porespace

Definition at line 38 of file DesorptionToPorespace.h.

Referenced by computeQpResidual().


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