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

Kernel = grad(permeability*(grad(pressure) - weight)) This is mass flow according to the Darcy equation. More...

#include <DarcyFlux.h>

Inheritance diagram for DarcyFlux:
[legend]

Public Member Functions

 DarcyFlux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Protected Attributes

RealVectorValue _fluid_weight
 fluid weight (gravity*density) as a vector pointing downwards, eg '0 0 -10000' More...
 
Real _fluid_viscosity
 fluid dynamic viscosity More...
 
const MaterialProperty< RealTensorValue > & _permeability
 Material permeability. More...
 

Detailed Description

Kernel = grad(permeability*(grad(pressure) - weight)) This is mass flow according to the Darcy equation.

Definition at line 25 of file DarcyFlux.h.

Constructor & Destructor Documentation

◆ DarcyFlux()

DarcyFlux::DarcyFlux ( const InputParameters &  parameters)

Definition at line 32 of file DarcyFlux.C.

33  : Kernel(parameters),
34  _fluid_weight(getParam<RealVectorValue>("fluid_weight")),
35  _fluid_viscosity(getParam<Real>("fluid_viscosity")),
36  _permeability(getMaterialProperty<RealTensorValue>("permeability"))
37 {
38 }
const MaterialProperty< RealTensorValue > & _permeability
Material permeability.
Definition: DarcyFlux.h:42
Real _fluid_viscosity
fluid dynamic viscosity
Definition: DarcyFlux.h:39
RealVectorValue _fluid_weight
fluid weight (gravity*density) as a vector pointing downwards, eg &#39;0 0 -10000&#39;
Definition: DarcyFlux.h:36

Member Function Documentation

◆ computeQpJacobian()

Real DarcyFlux::computeQpJacobian ( )
protectedvirtual

Definition at line 48 of file DarcyFlux.C.

49 {
50  return _grad_test[_i][_qp] * (_permeability[_qp] * _grad_phi[_j][_qp]) / _fluid_viscosity;
51 }
const MaterialProperty< RealTensorValue > & _permeability
Material permeability.
Definition: DarcyFlux.h:42
Real _fluid_viscosity
fluid dynamic viscosity
Definition: DarcyFlux.h:39

◆ computeQpResidual()

Real DarcyFlux::computeQpResidual ( )
protectedvirtual

Definition at line 41 of file DarcyFlux.C.

42 {
43  return _grad_test[_i][_qp] * (_permeability[_qp] * (_grad_u[_qp] - _fluid_weight)) /
45 }
const MaterialProperty< RealTensorValue > & _permeability
Material permeability.
Definition: DarcyFlux.h:42
Real _fluid_viscosity
fluid dynamic viscosity
Definition: DarcyFlux.h:39
RealVectorValue _fluid_weight
fluid weight (gravity*density) as a vector pointing downwards, eg &#39;0 0 -10000&#39;
Definition: DarcyFlux.h:36

Member Data Documentation

◆ _fluid_viscosity

Real DarcyFlux::_fluid_viscosity
protected

fluid dynamic viscosity

Definition at line 39 of file DarcyFlux.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _fluid_weight

RealVectorValue DarcyFlux::_fluid_weight
protected

fluid weight (gravity*density) as a vector pointing downwards, eg '0 0 -10000'

Definition at line 36 of file DarcyFlux.h.

Referenced by computeQpResidual().

◆ _permeability

const MaterialProperty<RealTensorValue>& DarcyFlux::_permeability
protected

Material permeability.

Definition at line 42 of file DarcyFlux.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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