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 23 of file DarcyFlux.h.

Constructor & Destructor Documentation

DarcyFlux::DarcyFlux ( const InputParameters &  parameters)

Definition at line 28 of file DarcyFlux.C.

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

Member Function Documentation

Real DarcyFlux::computeQpJacobian ( )
protectedvirtual

Definition at line 44 of file DarcyFlux.C.

45 {
46  return _grad_test[_i][_qp] * (_permeability[_qp] * _grad_phi[_j][_qp]) / _fluid_viscosity;
47 }
const MaterialProperty< RealTensorValue > & _permeability
Material permeability.
Definition: DarcyFlux.h:40
Real _fluid_viscosity
fluid dynamic viscosity
Definition: DarcyFlux.h:37
Real DarcyFlux::computeQpResidual ( )
protectedvirtual

Definition at line 37 of file DarcyFlux.C.

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

Member Data Documentation

Real DarcyFlux::_fluid_viscosity
protected

fluid dynamic viscosity

Definition at line 37 of file DarcyFlux.h.

Referenced by computeQpJacobian(), and computeQpResidual().

RealVectorValue DarcyFlux::_fluid_weight
protected

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

Definition at line 34 of file DarcyFlux.h.

Referenced by computeQpResidual().

const MaterialProperty<RealTensorValue>& DarcyFlux::_permeability
protected

Material permeability.

Definition at line 40 of file DarcyFlux.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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