www.mooseframework.org
Functions
INSMomentumNoBCBCBase.C File Reference

Go to the source code of this file.

Functions

template<>
InputParameters validParams< INSMomentumNoBCBCBase > ()
 

Function Documentation

template<>
InputParameters validParams< INSMomentumNoBCBCBase > ( )

Definition at line 13 of file INSMomentumNoBCBCBase.C.

Referenced by validParams< INSMomentumNoBCBCLaplaceForm >(), and validParams< INSMomentumNoBCBCTractionForm >().

14 {
15  InputParameters params = validParams<IntegratedBC>();
16 
17  params.addClassDescription("Base class for the 'No BC' boundary condition.");
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  params.addRequiredCoupledVar("p", "pressure");
23 
24  // Required parameters
25  params.addRequiredParam<RealVectorValue>("gravity", "Direction of the gravity vector");
26  params.addRequiredParam<unsigned>(
27  "component",
28  "0,1,2 depending on if we are solving the x,y,z component of the momentum equation");
29  params.addParam<bool>("integrate_p_by_parts",
30  true,
31  "Allows simulations to be run with pressure BC if set to false");
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 }