34 "0,1,2 depending on if we are solving the x,y,z component of the momentum equation");
37 params.
addParam<MaterialPropertyName>(
"mu_name",
"mu",
"The name of the dynamic viscosity");
38 params.
addParam<MaterialPropertyName>(
"rho_name",
"rho",
"The name of the density");
47 _u_vel(coupledValue(
"u")),
48 _v_vel(_mesh.dimension() >= 2 ? coupledValue(
"v") : _zero),
49 _w_vel(_mesh.dimension() == 3 ? coupledValue(
"w") : _zero),
51 _a1(coupledValue(
"a1")),
52 _a2(_mesh.dimension() >= 2 ? coupledValue(
"a2") : _zero),
53 _a3(_mesh.dimension() == 3 ? coupledValue(
"a3") : _zero),
56 _grad_u_vel(coupledGradient(
"u")),
57 _grad_v_vel(_mesh.dimension() >= 2 ? coupledGradient(
"v") : _grad_zero),
58 _grad_w_vel(_mesh.dimension() == 3 ? coupledGradient(
"w") : _grad_zero),
61 _u_vel_var_number(coupled(
"u")),
65 _a1_var_number(coupled(
"a1")),
71 _component(getParam<unsigned>(
"component")),
74 _mu(getMaterialProperty<
Real>(
"mu_name")),
75 _rho(getMaterialProperty<
Real>(
"rho_name"))
112 for (
unsigned k = 0;
k < 3; ++
k)
124 Real convective_part = (grad_U * U) * test;
129 return symmetric_part + convective_part + viscous_part;
149 unsigned vel_index = 99;
191 for (
unsigned k = 0;
k < 3; ++
k)
201 Real convective_part = convective_jac * test;
207 return convective_part + viscous_part;
static InputParameters validParams()
const unsigned int invalid_uint
const VariablePhiGradient & _grad_phi
const VariableValue & _a2
This class computes the "split" momentum equation residual.
registerMooseObject("NavierStokesApp", INSSplitMomentum)
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
unsigned _u_vel_var_number
const MaterialProperty< Real > & _mu
virtual Real computeQpResidual()
TensorValue< Real > RealTensorValue
const VariableValue & _a1
const VariableTestValue & _test
const MaterialProperty< Real > & _rho
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const VariableGradient & _grad_u_vel
virtual Real computeQpJacobian()
static InputParameters validParams()
const VariableGradient & _grad_v_vel
const VariableValue & _u_vel
const VariableValue & _w_vel
const VariableGradient & _grad_w_vel
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableTestGradient & _grad_test
unsigned _v_vel_var_number
unsigned _w_vel_var_number
const VariableValue & _v_vel
const VariablePhiValue & _phi
static const std::string k
const VariableValue & _a3
INSSplitMomentum(const InputParameters ¶meters)