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

Computes a component of the Darcy flux: -k_ij/mu (nabla_j P - w_j) where k_ij is the permeability tensor, mu is the fluid viscosity, P is the fluid pressure (the variable) and w_j is the fluid weight This is measured in m^3 . More...

#include <DarcyFluxComponent.h>

Inheritance diagram for DarcyFluxComponent:
[legend]

Public Member Functions

 DarcyFluxComponent (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const VariableGradient & _grad_pp
 gradient of the pressure More...
 
RealVectorValue _fluid_weight
 fluid weight (gravity*density) as a vector pointing downwards, eg '0 0 -10000' More...
 
Real _fluid_viscosity
 fluid dynamic viscosity More...
 
Real _poro_recip
 (1/velocity_scaling) More...
 
const MaterialProperty< RealTensorValue > & _permeability
 Material permeability. More...
 
unsigned int _component
 Desired component. More...
 

Detailed Description

Computes a component of the Darcy flux: -k_ij/mu (nabla_j P - w_j) where k_ij is the permeability tensor, mu is the fluid viscosity, P is the fluid pressure (the variable) and w_j is the fluid weight This is measured in m^3 .

s^-1 . m^-2

Sometimes the fluid velocity is required, rather than the flux. In this case velocity_scaling may be used, and the result quoted above is multiplied by (1/velocity_scaling)

Definition at line 34 of file DarcyFluxComponent.h.

Constructor & Destructor Documentation

DarcyFluxComponent::DarcyFluxComponent ( const InputParameters &  parameters)

Definition at line 42 of file DarcyFluxComponent.C.

43  : AuxKernel(parameters),
44  _grad_pp(coupledGradient("porepressure")),
45  _fluid_weight(getParam<RealVectorValue>("fluid_weight")),
46  _fluid_viscosity(getParam<Real>("fluid_viscosity")),
47  _poro_recip(1.0 / getParam<Real>("velocity_scaling")),
48  _permeability(getMaterialProperty<RealTensorValue>("permeability")),
49  _component(getParam<MooseEnum>("component"))
50 {
51 }
const VariableGradient & _grad_pp
gradient of the pressure
const MaterialProperty< RealTensorValue > & _permeability
Material permeability.
unsigned int _component
Desired component.
Real _fluid_viscosity
fluid dynamic viscosity
RealVectorValue _fluid_weight
fluid weight (gravity*density) as a vector pointing downwards, eg &#39;0 0 -10000&#39;
Real _poro_recip
(1/velocity_scaling)

Member Function Documentation

Real DarcyFluxComponent::computeValue ( )
protectedvirtual

Definition at line 54 of file DarcyFluxComponent.C.

55 {
56  return -_poro_recip *
58 }
const VariableGradient & _grad_pp
gradient of the pressure
const MaterialProperty< RealTensorValue > & _permeability
Material permeability.
unsigned int _component
Desired component.
Real _fluid_viscosity
fluid dynamic viscosity
RealVectorValue _fluid_weight
fluid weight (gravity*density) as a vector pointing downwards, eg &#39;0 0 -10000&#39;
Real _poro_recip
(1/velocity_scaling)

Member Data Documentation

unsigned int DarcyFluxComponent::_component
protected

Desired component.

Definition at line 58 of file DarcyFluxComponent.h.

Referenced by computeValue().

Real DarcyFluxComponent::_fluid_viscosity
protected

fluid dynamic viscosity

Definition at line 49 of file DarcyFluxComponent.h.

Referenced by computeValue().

RealVectorValue DarcyFluxComponent::_fluid_weight
protected

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

Definition at line 46 of file DarcyFluxComponent.h.

Referenced by computeValue().

const VariableGradient& DarcyFluxComponent::_grad_pp
protected

gradient of the pressure

Definition at line 43 of file DarcyFluxComponent.h.

Referenced by computeValue().

const MaterialProperty<RealTensorValue>& DarcyFluxComponent::_permeability
protected

Material permeability.

Definition at line 55 of file DarcyFluxComponent.h.

Referenced by computeValue().

Real DarcyFluxComponent::_poro_recip
protected

(1/velocity_scaling)

Definition at line 52 of file DarcyFluxComponent.h.

Referenced by computeValue().


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