www.mooseframework.org
Functions
DarcyFluxComponent.C File Reference

Go to the source code of this file.

Functions

 registerMooseObject ("RichardsApp", DarcyFluxComponent)
 
template<>
InputParameters validParams< DarcyFluxComponent > ()
 

Function Documentation

◆ registerMooseObject()

registerMooseObject ( "RichardsApp"  ,
DarcyFluxComponent   
)

◆ validParams< DarcyFluxComponent >()

template<>
InputParameters validParams< DarcyFluxComponent > ( )

Definition at line 16 of file DarcyFluxComponent.C.

17 {
18  MooseEnum component("x=0 y=1 z=2");
19  InputParameters params = validParams<AuxKernel>();
20  params.addRequiredParam<RealVectorValue>(
21  "fluid_weight",
22  "Fluid weight (gravity*density) as a vector pointing downwards (usually "
23  "measured in kg.m^-2.s^-2 = Pa/m). Eg '0 0 -10000'");
24  params.addRequiredParam<Real>("fluid_viscosity",
25  "Fluid dynamic viscosity (usually measured in Pa.s)");
26  params.addClassDescription("Darcy flux (in m^3.s^-1.m^-2, or m.s^-1) -(k_ij/mu (nabla_j P - "
27  "w_j)), where k_ij is the permeability tensor, mu is the fluid "
28  "viscosity, P is the fluid pressure, and w_j is the fluid weight. If "
29  "velocity_scaling is used then -(k_ij/mu (nabla_j P - "
30  "w_j))/velocity_scaling is returned");
31  params.addParam<MooseEnum>("component", component, "The component of the Darcy flux to return");
32  params.addParam<Real>(
33  "velocity_scaling",
34  1,
35  "Scale the result by (1/velocity_scaling). Usually velocity_scaling = porosity.");
36  params.addRequiredCoupledVar("porepressure", "The variable representing the porepressure");
37  return params;
38 }
MaterialTensorCalculatorTools::component
Real component(const SymmTensor &symm_tensor, unsigned int index)
Definition: MaterialTensorCalculatorTools.C:16