www.mooseframework.org
Functions
INSSplitMomentum.C File Reference

Go to the source code of this file.

Functions

template<>
InputParameters validParams< INSSplitMomentum > ()
 

Function Documentation

template<>
InputParameters validParams< INSSplitMomentum > ( )

Definition at line 13 of file INSSplitMomentum.C.

14 {
15  InputParameters params = validParams<Kernel>();
16 
17  params.addClassDescription("This class computes the 'split' momentum equation residual.");
18  // Coupled variables
19  params.addRequiredCoupledVar("u", "x-velocity");
20  params.addCoupledVar("v", "y-velocity"); // only required in 2D and 3D
21  params.addCoupledVar("w", "z-velocity"); // only required in 3D
22 
23  params.addRequiredCoupledVar("a1", "x-acceleration");
24  params.addCoupledVar("a2", "y-acceleration"); // only required in 2D and 3D
25  params.addCoupledVar("a3", "z-acceleration"); // only required in 3D
26 
27  // Required parameters
28  params.addRequiredParam<RealVectorValue>("gravity", "Direction of the gravity vector");
29  params.addRequiredParam<unsigned>(
30  "component",
31  "0,1,2 depending on if we are solving the x,y,z component of the momentum equation");
32 
33  // Optional parameters
34  params.addParam<MaterialPropertyName>("mu_name", "mu", "The name of the dynamic viscosity");
35  params.addParam<MaterialPropertyName>("rho_name", "rho", "The name of the density");
36 
37  return params;
38 }