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

Darcy flux: - cond * (Grad P - rho * g) where cond is the hydraulic conductivity, P is fluid pressure, rho is flui density and g is gravity. More...

#include <DarcyFluxPressure.h>

Inheritance diagram for DarcyFluxPressure:
[legend]

Public Member Functions

 DarcyFluxPressure (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual () override
 
virtual Real computeQpJacobian () override
 

Protected Attributes

const MaterialProperty< Real > & _cond
 Hydraulic conductivity. More...
 
const RealVectorValue _gravity
 Gravity. More...
 
const MaterialProperty< Real > & _density
 Fluid density. More...
 

Detailed Description

Darcy flux: - cond * (Grad P - rho * g) where cond is the hydraulic conductivity, P is fluid pressure, rho is flui density and g is gravity.

Definition at line 26 of file DarcyFluxPressure.h.

Constructor & Destructor Documentation

◆ DarcyFluxPressure()

DarcyFluxPressure::DarcyFluxPressure ( const InputParameters &  parameters)

Definition at line 25 of file DarcyFluxPressure.C.

26  : DerivativeMaterialInterface<Kernel>(parameters),
27  _cond(getMaterialProperty<Real>("conductivity")),
28  _gravity(getParam<RealVectorValue>("gravity")),
29  _density(getDefaultMaterialProperty<Real>("density"))
30 {
31 }
const RealVectorValue _gravity
Gravity.
const MaterialProperty< Real > & _density
Fluid density.
const MaterialProperty< Real > & _cond
Hydraulic conductivity.

Member Function Documentation

◆ computeQpJacobian()

Real DarcyFluxPressure::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 40 of file DarcyFluxPressure.C.

41 {
42  return _grad_test[_i][_qp] * _cond[_qp] * _grad_phi[_j][_qp];
43 }
const MaterialProperty< Real > & _cond
Hydraulic conductivity.

◆ computeQpResidual()

Real DarcyFluxPressure::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 34 of file DarcyFluxPressure.C.

35 {
36  return _grad_test[_i][_qp] * _cond[_qp] * (_grad_u[_qp] - _density[_qp] * _gravity);
37 }
const RealVectorValue _gravity
Gravity.
const MaterialProperty< Real > & _density
Fluid density.
const MaterialProperty< Real > & _cond
Hydraulic conductivity.

Member Data Documentation

◆ _cond

const MaterialProperty<Real>& DarcyFluxPressure::_cond
protected

Hydraulic conductivity.

Definition at line 36 of file DarcyFluxPressure.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _density

const MaterialProperty<Real>& DarcyFluxPressure::_density
protected

Fluid density.

Definition at line 42 of file DarcyFluxPressure.h.

Referenced by computeQpResidual().

◆ _gravity

const RealVectorValue DarcyFluxPressure::_gravity
protected

Gravity.

Definition at line 39 of file DarcyFluxPressure.h.

Referenced by computeQpResidual().


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