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

This class computes the mass equation residual and Jacobian contributions for the incompressible Navier-Stokes momentum equation in RZ coordinates. More...

#include <INSMassRZ.h>

Inheritance diagram for INSMassRZ:
[legend]

Public Member Functions

 INSMassRZ (const InputParameters &parameters)
 
virtual ~INSMassRZ ()
 

Protected Member Functions

virtual RealVectorValue strongViscousTermTraction () override
 
virtual RealVectorValue dStrongViscDUCompTraction (unsigned comp) override
 
virtual RealVectorValue strongViscousTermLaplace () override
 
virtual RealVectorValue dStrongViscDUCompLaplace (unsigned comp) override
 
virtual Real computeQpResidual () override
 
virtual Real computeQpOffDiagJacobian (unsigned jvar) override
 
virtual Real computeQpJacobian ()
 
virtual Real computeQpPGResidual ()
 
virtual Real computeQpPGJacobian ()
 
virtual Real computeQpPGOffDiagJacobian (unsigned comp)
 
virtual RealVectorValue convectiveTerm ()
 
virtual RealVectorValue dConvecDUComp (unsigned comp)
 
virtual RealVectorValue weakViscousTermLaplace (unsigned comp)
 
virtual RealVectorValue weakViscousTermTraction (unsigned comp)
 
virtual RealVectorValue dWeakViscDUCompLaplace ()
 
virtual RealVectorValue dWeakViscDUCompTraction ()
 
virtual RealVectorValue strongPressureTerm ()
 
virtual Real weakPressureTerm ()
 
virtual RealVectorValue dStrongPressureDPressure ()
 
virtual Real dWeakPressureDPressure ()
 
virtual RealVectorValue gravityTerm ()
 
virtual RealVectorValue timeDerivativeTerm ()
 
virtual RealVectorValue dTimeDerivativeDUComp (unsigned comp)
 
virtual Real tau ()
 
virtual Real dTauDUComp (unsigned comp)
 
virtual Real tauNodal ()
 Provides tau which yields superconvergence for 1D advection-diffusion. More...
 

Protected Attributes

bool _pspg
 
Function & _x_ffn
 
Function & _y_ffn
 
Function & _z_ffn
 
const VariablePhiSecond & _second_phi
 second derivatives of the shape function More...
 
const VariableValue & _u_vel
 
const VariableValue & _v_vel
 
const VariableValue & _w_vel
 
const VariableValue & _p
 
const VariableGradient & _grad_u_vel
 
const VariableGradient & _grad_v_vel
 
const VariableGradient & _grad_w_vel
 
const VariableGradient & _grad_p
 
const VariableSecond & _second_u_vel
 
const VariableSecond & _second_v_vel
 
const VariableSecond & _second_w_vel
 
const VariableValue & _u_vel_dot
 
const VariableValue & _v_vel_dot
 
const VariableValue & _w_vel_dot
 
const VariableValue & _d_u_vel_dot_du
 
const VariableValue & _d_v_vel_dot_dv
 
const VariableValue & _d_w_vel_dot_dw
 
unsigned _u_vel_var_number
 
unsigned _v_vel_var_number
 
unsigned _w_vel_var_number
 
unsigned _p_var_number
 
RealVectorValue _gravity
 
const MaterialProperty< Real > & _mu
 
const MaterialProperty< Real > & _rho
 
const Real & _alpha
 
bool _laplace
 
bool _convective_term
 
bool _transient_term
 

Detailed Description

This class computes the mass equation residual and Jacobian contributions for the incompressible Navier-Stokes momentum equation in RZ coordinates.

Inherits most of its functionality from INSMass, and calls its computeQpXYZ() functions when necessary.

Definition at line 25 of file INSMassRZ.h.

Constructor & Destructor Documentation

INSMassRZ::INSMassRZ ( const InputParameters &  parameters)

Definition at line 20 of file INSMassRZ.C.

20 : INSMass(parameters) {}
INSMass(const InputParameters &parameters)
Definition: INSMass.C:27
virtual INSMassRZ::~INSMassRZ ( )
inlinevirtual

Definition at line 29 of file INSMassRZ.h.

29 {}

Member Function Documentation

Real INSMass::computeQpJacobian ( )
protectedvirtualinherited

Implements INSBase.

Definition at line 69 of file INSMass.C.

Referenced by INSMass::~INSMass().

70 {
71  // Derivative wrt to p is zero
72  Real r = 0;
73 
74  // Unless we are doing GLS stabilization
75  if (_pspg)
76  r += computeQpPGJacobian();
77 
78  return r;
79 }
bool _pspg
Definition: INSMass.h:39
virtual Real computeQpPGJacobian()
Definition: INSMass.C:82
Real INSMassRZ::computeQpOffDiagJacobian ( unsigned  jvar)
overrideprotectedvirtual

Reimplemented from INSMass.

Definition at line 87 of file INSMassRZ.C.

Referenced by ~INSMassRZ().

88 {
89  // Base class jacobian contribution
90  Real jac_base = INSMass::computeQpOffDiagJacobian(jvar);
91 
92  // The radial coordinate value.
93  const Real r = _q_point[_qp](0);
94 
95  if (jvar == _u_vel_var_number)
96  jac_base -= _phi[_j][_qp] / r * _test[_i][_qp];
97 
98  return jac_base;
99 }
virtual Real computeQpOffDiagJacobian(unsigned jvar)
Definition: INSMass.C:88
unsigned _u_vel_var_number
Definition: INSBase.h:94
Real INSMass::computeQpPGJacobian ( )
protectedvirtualinherited

Definition at line 82 of file INSMass.C.

Referenced by INSMass::computeQpJacobian(), and INSMass::~INSMass().

83 {
84  return -1. / _rho[_qp] * tau() * _grad_test[_i][_qp] * dStrongPressureDPressure();
85 }
virtual Real tau()
Definition: INSBase.C:268
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
virtual RealVectorValue dStrongPressureDPressure()
Definition: INSBase.C:224
Real INSMass::computeQpPGOffDiagJacobian ( unsigned  comp)
protectedvirtualinherited

Definition at line 119 of file INSMass.C.

Referenced by INSMass::computeQpOffDiagJacobian(), and INSMass::~INSMass().

120 {
121  RealVectorValue convective_term = _convective_term ? convectiveTerm() : RealVectorValue(0, 0, 0);
122  RealVectorValue d_convective_term_d_u_comp =
123  _convective_term ? dConvecDUComp(comp) : RealVectorValue(0, 0, 0);
124  RealVectorValue viscous_term =
126  RealVectorValue d_viscous_term_d_u_comp =
128  RealVectorValue transient_term =
129  _transient_term ? timeDerivativeTerm() : RealVectorValue(0, 0, 0);
130  RealVectorValue d_transient_term_d_u_comp =
131  _transient_term ? dTimeDerivativeDUComp(comp) : RealVectorValue(0, 0, 0);
132 
133  return -1. / _rho[_qp] * tau() * _grad_test[_i][_qp] *
134  (d_convective_term_d_u_comp + d_viscous_term_d_u_comp + d_transient_term_d_u_comp) -
135  1. / _rho[_qp] * dTauDUComp(comp) * _grad_test[_i][_qp] *
136  (convective_term + viscous_term + transient_term + strongPressureTerm() +
137  gravityTerm() - RealVectorValue(_x_ffn.value(_t, _q_point[_qp]),
138  _y_ffn.value(_t, _q_point[_qp]),
139  _z_ffn.value(_t, _q_point[_qp])));
140 }
virtual RealVectorValue strongViscousTermLaplace()
Definition: INSBase.C:117
virtual RealVectorValue dStrongViscDUCompTraction(unsigned comp)
Definition: INSBase.C:141
virtual Real tau()
Definition: INSBase.C:268
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
virtual Real dTauDUComp(unsigned comp)
Definition: INSBase.C:296
virtual RealVectorValue timeDerivativeTerm()
Definition: INSBase.C:242
virtual RealVectorValue convectiveTerm()
Definition: INSBase.C:94
bool _convective_term
Definition: INSBase.h:107
virtual RealVectorValue strongPressureTerm()
Definition: INSBase.C:212
bool _transient_term
Definition: INSBase.h:108
Function & _z_ffn
Definition: INSMass.h:42
virtual RealVectorValue dConvecDUComp(unsigned comp)
Definition: INSBase.C:102
virtual RealVectorValue dStrongViscDUCompLaplace(unsigned comp)
Definition: INSBase.C:132
bool _laplace
Definition: INSBase.h:106
virtual RealVectorValue gravityTerm()
Definition: INSBase.C:236
virtual RealVectorValue strongViscousTermTraction()
Definition: INSBase.C:124
Function & _x_ffn
Definition: INSMass.h:40
Function & _y_ffn
Definition: INSMass.h:41
virtual RealVectorValue dTimeDerivativeDUComp(unsigned comp)
Definition: INSBase.C:248
Real INSMass::computeQpPGResidual ( )
protectedvirtualinherited

Definition at line 52 of file INSMass.C.

Referenced by INSMass::computeQpResidual(), and INSMass::~INSMass().

53 {
54  RealVectorValue viscous_term =
56  RealVectorValue transient_term =
57  _transient_term ? timeDerivativeTerm() : RealVectorValue(0, 0, 0);
58  RealVectorValue convective_term = _convective_term ? convectiveTerm() : RealVectorValue(0, 0, 0);
59  Real r = -1. / _rho[_qp] * tau() * _grad_test[_i][_qp] *
60  (strongPressureTerm() + gravityTerm() + viscous_term + convective_term + transient_term -
61  RealVectorValue(_x_ffn.value(_t, _q_point[_qp]),
62  _y_ffn.value(_t, _q_point[_qp]),
63  _z_ffn.value(_t, _q_point[_qp])));
64 
65  return r;
66 }
virtual RealVectorValue strongViscousTermLaplace()
Definition: INSBase.C:117
virtual Real tau()
Definition: INSBase.C:268
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
virtual RealVectorValue timeDerivativeTerm()
Definition: INSBase.C:242
virtual RealVectorValue convectiveTerm()
Definition: INSBase.C:94
bool _convective_term
Definition: INSBase.h:107
virtual RealVectorValue strongPressureTerm()
Definition: INSBase.C:212
bool _transient_term
Definition: INSBase.h:108
Function & _z_ffn
Definition: INSMass.h:42
bool _laplace
Definition: INSBase.h:106
virtual RealVectorValue gravityTerm()
Definition: INSBase.C:236
virtual RealVectorValue strongViscousTermTraction()
Definition: INSBase.C:124
Function & _x_ffn
Definition: INSMass.h:40
Function & _y_ffn
Definition: INSMass.h:41
Real INSMassRZ::computeQpResidual ( )
overrideprotectedvirtual

Reimplemented from INSMass.

Definition at line 72 of file INSMassRZ.C.

Referenced by ~INSMassRZ().

73 {
74  // Base class residual contribution
75  Real res_base = INSMass::computeQpResidual();
76 
77  // The radial coordinate value.
78  const Real r = _q_point[_qp](0);
79 
80  // The sign of this term is multiplied by -1 here.
81  res_base -= _u_vel[_qp] / r * _test[_i][_qp];
82 
83  return res_base;
84 }
const VariableValue & _u_vel
Definition: INSBase.h:67
virtual Real computeQpResidual()
Definition: INSMass.C:38
RealVectorValue INSBase::convectiveTerm ( )
protectedvirtualinherited

Definition at line 94 of file INSBase.C.

Referenced by INSMomentumBase::computeQpPGJacobian(), INSMass::computeQpPGOffDiagJacobian(), INSMass::computeQpPGResidual(), INSMomentumBase::computeQpPGResidual(), INSMomentumBase::computeQpResidual(), and INSBase::~INSBase().

95 {
96  RealVectorValue U(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
97  return _rho[_qp] *
98  RealVectorValue(U * _grad_u_vel[_qp], U * _grad_v_vel[_qp], U * _grad_w_vel[_qp]);
99 }
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
const VariableValue & _u_vel
Definition: INSBase.h:67
const VariableGradient & _grad_v_vel
Definition: INSBase.h:74
const VariableValue & _w_vel
Definition: INSBase.h:69
const VariableGradient & _grad_u_vel
Definition: INSBase.h:73
const VariableGradient & _grad_w_vel
Definition: INSBase.h:75
const VariableValue & _v_vel
Definition: INSBase.h:68
RealVectorValue INSBase::dConvecDUComp ( unsigned  comp)
protectedvirtualinherited

Definition at line 102 of file INSBase.C.

Referenced by INSMomentumBase::computeQpJacobian(), INSMomentumBase::computeQpOffDiagJacobian(), INSMomentumBase::computeQpPGJacobian(), INSMass::computeQpPGOffDiagJacobian(), and INSBase::~INSBase().

103 {
104  RealVectorValue U(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
105  RealVectorValue d_U_d_comp(0, 0, 0);
106  d_U_d_comp(comp) = _phi[_j][_qp];
107 
108  RealVectorValue convective_term = _rho[_qp] * RealVectorValue(d_U_d_comp * _grad_u_vel[_qp],
109  d_U_d_comp * _grad_v_vel[_qp],
110  d_U_d_comp * _grad_w_vel[_qp]);
111  convective_term(comp) += _rho[_qp] * U * _grad_phi[_j][_qp];
112 
113  return convective_term;
114 }
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
const VariableValue & _u_vel
Definition: INSBase.h:67
const VariableGradient & _grad_v_vel
Definition: INSBase.h:74
const VariableValue & _w_vel
Definition: INSBase.h:69
const VariableGradient & _grad_u_vel
Definition: INSBase.h:73
const VariableGradient & _grad_w_vel
Definition: INSBase.h:75
const VariableValue & _v_vel
Definition: INSBase.h:68
RealVectorValue INSBase::dStrongPressureDPressure ( )
protectedvirtualinherited

Definition at line 224 of file INSBase.C.

Referenced by INSMomentumBase::computeQpOffDiagJacobian(), INSMass::computeQpPGJacobian(), and INSBase::~INSBase().

225 {
226  return _grad_phi[_j][_qp];
227 }
RealVectorValue INSMassRZ::dStrongViscDUCompLaplace ( unsigned  comp)
overrideprotectedvirtual

Reimplemented from INSBase.

Definition at line 33 of file INSMassRZ.C.

Referenced by ~INSMassRZ().

34 {
35  const Real & r = _q_point[_qp](0);
36  RealVectorValue add_jac(0, 0, 0);
37  if (comp == 0)
38  add_jac(0) = _mu[_qp] * (_phi[_j][_qp] / (r * r) - _grad_phi[_j][_qp](0) / r);
39  else if (comp == 1)
40  add_jac(1) = -_mu[_qp] * _grad_phi[_j][_qp](0) / r;
41 
42  return INSBase::dStrongViscDUCompLaplace(comp) + add_jac;
43 }
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
virtual RealVectorValue dStrongViscDUCompLaplace(unsigned comp)
Definition: INSBase.C:132
RealVectorValue INSMassRZ::dStrongViscDUCompTraction ( unsigned  comp)
overrideprotectedvirtual

Reimplemented from INSBase.

Definition at line 56 of file INSMassRZ.C.

Referenced by ~INSMassRZ().

57 {
58  const Real & r = _q_point[_qp](0);
59  RealVectorValue add_jac(0, 0, 0);
60  if (comp == 0)
61  {
62  add_jac(0) = 2. * _mu[_qp] * (_phi[_j][_qp] / (r * r) - _grad_phi[_j][_qp](0) / r);
63  add_jac(1) = -_mu[_qp] / r * _grad_phi[_j][_qp](1);
64  }
65  else if (comp == 1)
66  add_jac(1) = -_mu[_qp] * _grad_phi[_j][_qp](0) / r;
67 
68  return INSBase::dStrongViscDUCompTraction(comp) + add_jac;
69 }
virtual RealVectorValue dStrongViscDUCompTraction(unsigned comp)
Definition: INSBase.C:141
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
Real INSBase::dTauDUComp ( unsigned  comp)
protectedvirtualinherited

Definition at line 296 of file INSBase.C.

Referenced by INSMomentumBase::computeQpPGJacobian(), INSMass::computeQpPGOffDiagJacobian(), and INSBase::~INSBase().

297 {
298  Real nu = _mu[_qp] / _rho[_qp];
299  RealVectorValue U(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
300  Real h = _current_elem->hmax();
301  Real transient_part = _transient_term ? 4. / (_dt * _dt) : 0.;
302  return -_alpha / 2. * std::pow(transient_part + (2. * U.norm() / h) * (2. * U.norm() / h) +
303  9. * (4. * nu / (h * h)) * (4. * nu / (h * h)),
304  -1.5) *
305  2. * (2. * U.norm() / h) * 2. / h * U(comp) * _phi[_j][_qp] /
306  (U.norm() + std::numeric_limits<double>::epsilon());
307 }
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
const VariableValue & _u_vel
Definition: INSBase.h:67
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
const VariableValue & _w_vel
Definition: INSBase.h:69
bool _transient_term
Definition: INSBase.h:108
ExpressionBuilder::EBTerm pow(const ExpressionBuilder::EBTerm &left, T exponent)
const VariableValue & _v_vel
Definition: INSBase.h:68
const Real & _alpha
Definition: INSBase.h:105
RealVectorValue INSBase::dTimeDerivativeDUComp ( unsigned  comp)
protectedvirtualinherited

Definition at line 248 of file INSBase.C.

Referenced by INSMomentumBase::computeQpPGJacobian(), INSMass::computeQpPGOffDiagJacobian(), and INSBase::~INSBase().

249 {
250  Real base = _rho[_qp] * _phi[_j][_qp];
251  switch (comp)
252  {
253  case 0:
254  return RealVectorValue(base * _d_u_vel_dot_du[_qp], 0, 0);
255 
256  case 1:
257  return RealVectorValue(0, base * _d_v_vel_dot_dv[_qp], 0);
258 
259  case 2:
260  return RealVectorValue(0, 0, base * _d_w_vel_dot_dw[_qp]);
261 
262  default:
263  mooseError("comp must be 0, 1, or 2");
264  }
265 }
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
const VariableValue & _d_v_vel_dot_dv
Definition: INSBase.h:90
const VariableValue & _d_w_vel_dot_dw
Definition: INSBase.h:91
const VariableValue & _d_u_vel_dot_du
Definition: INSBase.h:89
Real INSBase::dWeakPressureDPressure ( )
protectedvirtualinherited

Definition at line 230 of file INSBase.C.

Referenced by INSMomentumBase::computeQpOffDiagJacobian(), and INSBase::~INSBase().

231 {
232  return -_phi[_j][_qp];
233 }
RealVectorValue INSBase::dWeakViscDUCompLaplace ( )
protectedvirtualinherited

Definition at line 200 of file INSBase.C.

Referenced by INSBase::~INSBase().

201 {
202  return _mu[_qp] * _grad_phi[_j][_qp];
203 }
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
RealVectorValue INSBase::dWeakViscDUCompTraction ( )
protectedvirtualinherited

Definition at line 206 of file INSBase.C.

Referenced by INSBase::~INSBase().

207 {
208  return _mu[_qp] * _grad_phi[_j][_qp];
209 }
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
RealVectorValue INSBase::gravityTerm ( )
protectedvirtualinherited

Definition at line 236 of file INSBase.C.

Referenced by INSMomentumBase::computeQpPGJacobian(), INSMass::computeQpPGOffDiagJacobian(), INSMass::computeQpPGResidual(), INSMomentumBase::computeQpPGResidual(), INSMomentumBase::computeQpResidual(), and INSBase::~INSBase().

237 {
238  return -_rho[_qp] * _gravity;
239 }
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
RealVectorValue _gravity
Definition: INSBase.h:99
RealVectorValue INSBase::strongPressureTerm ( )
protectedvirtualinherited
RealVectorValue INSMassRZ::strongViscousTermLaplace ( )
overrideprotectedvirtual

Reimplemented from INSBase.

Definition at line 23 of file INSMassRZ.C.

Referenced by ~INSMassRZ().

24 {
25  const Real & r = _q_point[_qp](0);
27  RealVectorValue(_mu[_qp] * (_u_vel[_qp] / (r * r) - _grad_u_vel[_qp](0) / r),
28  -_mu[_qp] * _grad_v_vel[_qp](0) / r,
29  0);
30 }
virtual RealVectorValue strongViscousTermLaplace()
Definition: INSBase.C:117
const VariableValue & _u_vel
Definition: INSBase.h:67
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
const VariableGradient & _grad_v_vel
Definition: INSBase.h:74
const VariableGradient & _grad_u_vel
Definition: INSBase.h:73
RealVectorValue INSMassRZ::strongViscousTermTraction ( )
overrideprotectedvirtual

Reimplemented from INSBase.

Definition at line 46 of file INSMassRZ.C.

Referenced by ~INSMassRZ().

47 {
48  const Real & r = _q_point[_qp](0);
50  RealVectorValue(2. * _mu[_qp] * (_u_vel[_qp] / (r * r) - _grad_u_vel[_qp](0) / r),
51  -_mu[_qp] / r * (_grad_v_vel[_qp](0) + _grad_u_vel[_qp](1)),
52  0);
53 }
const VariableValue & _u_vel
Definition: INSBase.h:67
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
const VariableGradient & _grad_v_vel
Definition: INSBase.h:74
const VariableGradient & _grad_u_vel
Definition: INSBase.h:73
virtual RealVectorValue strongViscousTermTraction()
Definition: INSBase.C:124
Real INSBase::tau ( )
protectedvirtualinherited

Definition at line 268 of file INSBase.C.

Referenced by Advection::computeQpJacobian(), INSMomentumBase::computeQpOffDiagJacobian(), INSMass::computeQpPGJacobian(), INSMomentumBase::computeQpPGJacobian(), INSMass::computeQpPGOffDiagJacobian(), INSMass::computeQpPGResidual(), INSMomentumBase::computeQpPGResidual(), Advection::computeQpResidual(), and INSBase::~INSBase().

269 {
270  Real nu = _mu[_qp] / _rho[_qp];
271  RealVectorValue U(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
272  Real h = _current_elem->hmax();
273  Real transient_part = _transient_term ? 4. / (_dt * _dt) : 0.;
274  return _alpha / std::sqrt(transient_part + (2. * U.norm() / h) * (2. * U.norm() / h) +
275  9. * (4. * nu / (h * h)) * (4. * nu / (h * h)));
276 }
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
const VariableValue & _u_vel
Definition: INSBase.h:67
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
const VariableValue & _w_vel
Definition: INSBase.h:69
bool _transient_term
Definition: INSBase.h:108
const VariableValue & _v_vel
Definition: INSBase.h:68
const Real & _alpha
Definition: INSBase.h:105
Real INSBase::tauNodal ( )
protectedvirtualinherited

Provides tau which yields superconvergence for 1D advection-diffusion.

Definition at line 279 of file INSBase.C.

Referenced by Advection::computeQpJacobian(), Advection::computeQpResidual(), and INSBase::~INSBase().

280 {
281  Real nu = _mu[_qp] / _rho[_qp];
282  RealVectorValue U(_u_vel[_qp], _v_vel[_qp], _w_vel[_qp]);
283  Real h = _current_elem->hmax();
284  Real xi;
285  if (nu < std::numeric_limits<Real>::epsilon())
286  xi = 1;
287  else
288  {
289  Real alpha = U.norm() * h / (2 * nu);
290  xi = 1. / std::tanh(alpha) - 1. / alpha;
291  }
292  return h / (2 * U.norm()) * xi;
293 }
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
const VariableValue & _u_vel
Definition: INSBase.h:67
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
const VariableValue & _w_vel
Definition: INSBase.h:69
const VariableValue & _v_vel
Definition: INSBase.h:68
RealVectorValue INSBase::timeDerivativeTerm ( )
protectedvirtualinherited

Definition at line 242 of file INSBase.C.

Referenced by INSMomentumBase::computeQpPGJacobian(), INSMass::computeQpPGOffDiagJacobian(), INSMass::computeQpPGResidual(), INSMomentumBase::computeQpPGResidual(), and INSBase::~INSBase().

243 {
244  return _rho[_qp] * RealVectorValue(_u_vel_dot[_qp], _v_vel_dot[_qp], _w_vel_dot[_qp]);
245 }
const MaterialProperty< Real > & _rho
Definition: INSBase.h:103
const VariableValue & _w_vel_dot
Definition: INSBase.h:86
const VariableValue & _u_vel_dot
Definition: INSBase.h:84
const VariableValue & _v_vel_dot
Definition: INSBase.h:85
Real INSBase::weakPressureTerm ( )
protectedvirtualinherited

Definition at line 218 of file INSBase.C.

Referenced by INSMomentumBase::computeQpResidual(), and INSBase::~INSBase().

219 {
220  return -_p[_qp];
221 }
const VariableValue & _p
Definition: INSBase.h:70
RealVectorValue INSBase::weakViscousTermLaplace ( unsigned  comp)
protectedvirtualinherited

Definition at line 153 of file INSBase.C.

Referenced by INSBase::~INSBase().

154 {
155  switch (comp)
156  {
157  case 0:
158  return _mu[_qp] * _grad_u_vel[_qp];
159 
160  case 1:
161  return _mu[_qp] * _grad_v_vel[_qp];
162 
163  case 2:
164  return _mu[_qp] * _grad_w_vel[_qp];
165 
166  default:
167  return _zero[_qp];
168  }
169 }
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
const VariableGradient & _grad_v_vel
Definition: INSBase.h:74
const VariableGradient & _grad_u_vel
Definition: INSBase.h:73
const VariableGradient & _grad_w_vel
Definition: INSBase.h:75
RealVectorValue INSBase::weakViscousTermTraction ( unsigned  comp)
protectedvirtualinherited

Definition at line 172 of file INSBase.C.

Referenced by INSBase::~INSBase().

173 {
174  switch (comp)
175  {
176  case 0:
177  {
178  RealVectorValue transpose(_grad_u_vel[_qp](0), _grad_v_vel[_qp](0), _grad_w_vel[_qp](0));
179  return _mu[_qp] * _grad_u_vel[_qp] + _mu[_qp] * transpose;
180  }
181 
182  case 1:
183  {
184  RealVectorValue transpose(_grad_u_vel[_qp](1), _grad_v_vel[_qp](1), _grad_w_vel[_qp](1));
185  return _mu[_qp] * _grad_v_vel[_qp] + _mu[_qp] * transpose;
186  }
187 
188  case 2:
189  {
190  RealVectorValue transpose(_grad_u_vel[_qp](2), _grad_v_vel[_qp](2), _grad_w_vel[_qp](2));
191  return _mu[_qp] * _grad_w_vel[_qp] + _mu[_qp] * transpose;
192  }
193 
194  default:
195  return _zero[_qp];
196  }
197 }
const MaterialProperty< Real > & _mu
Definition: INSBase.h:102
const VariableGradient & _grad_v_vel
Definition: INSBase.h:74
const VariableGradient & _grad_u_vel
Definition: INSBase.h:73
const VariableGradient & _grad_w_vel
Definition: INSBase.h:75

Member Data Documentation

const Real& INSBase::_alpha
protectedinherited

Definition at line 105 of file INSBase.h.

Referenced by INSBase::dTauDUComp(), and INSBase::tau().

bool INSBase::_convective_term
protectedinherited
const VariableValue& INSBase::_d_u_vel_dot_du
protectedinherited

Definition at line 89 of file INSBase.h.

Referenced by INSBase::dTimeDerivativeDUComp().

const VariableValue& INSBase::_d_v_vel_dot_dv
protectedinherited

Definition at line 90 of file INSBase.h.

Referenced by INSBase::dTimeDerivativeDUComp().

const VariableValue& INSBase::_d_w_vel_dot_dw
protectedinherited

Definition at line 91 of file INSBase.h.

Referenced by INSBase::dTimeDerivativeDUComp().

const VariableGradient& INSBase::_grad_p
protectedinherited

Definition at line 76 of file INSBase.h.

Referenced by INSBase::strongPressureTerm().

const VariableGradient& INSBase::_grad_u_vel
protectedinherited
const VariableGradient& INSBase::_grad_v_vel
protectedinherited
const VariableGradient& INSBase::_grad_w_vel
protectedinherited
RealVectorValue INSBase::_gravity
protectedinherited

Definition at line 99 of file INSBase.h.

Referenced by INSBase::gravityTerm().

bool INSBase::_laplace
protectedinherited
const MaterialProperty<Real>& INSBase::_mu
protectedinherited
const VariableValue& INSBase::_p
protectedinherited
unsigned INSBase::_p_var_number
protectedinherited
bool INSMass::_pspg
protectedinherited
const MaterialProperty<Real>& INSBase::_rho
protectedinherited
const VariablePhiSecond& INSBase::_second_phi
protectedinherited

second derivatives of the shape function

Definition at line 64 of file INSBase.h.

Referenced by INSBase::dStrongViscDUCompLaplace(), and INSBase::dStrongViscDUCompTraction().

const VariableSecond& INSBase::_second_u_vel
protectedinherited
const VariableSecond& INSBase::_second_v_vel
protectedinherited
const VariableSecond& INSBase::_second_w_vel
protectedinherited
bool INSBase::_transient_term
protectedinherited
const VariableValue& INSBase::_u_vel
protectedinherited
const VariableValue& INSBase::_u_vel_dot
protectedinherited

Definition at line 84 of file INSBase.h.

Referenced by INSBase::timeDerivativeTerm().

unsigned INSBase::_u_vel_var_number
protectedinherited
const VariableValue& INSBase::_v_vel
protectedinherited
const VariableValue& INSBase::_v_vel_dot
protectedinherited

Definition at line 85 of file INSBase.h.

Referenced by INSBase::timeDerivativeTerm().

unsigned INSBase::_v_vel_var_number
protectedinherited
const VariableValue& INSBase::_w_vel
protectedinherited
const VariableValue& INSBase::_w_vel_dot
protectedinherited

Definition at line 86 of file INSBase.h.

Referenced by INSBase::timeDerivativeTerm().

unsigned INSBase::_w_vel_var_number
protectedinherited
Function& INSMass::_x_ffn
protectedinherited

Definition at line 40 of file INSMass.h.

Referenced by INSMass::computeQpPGOffDiagJacobian(), and INSMass::computeQpPGResidual().

Function& INSMass::_y_ffn
protectedinherited

Definition at line 41 of file INSMass.h.

Referenced by INSMass::computeQpPGOffDiagJacobian(), and INSMass::computeQpPGResidual().

Function& INSMass::_z_ffn
protectedinherited

Definition at line 42 of file INSMass.h.

Referenced by INSMass::computeQpPGOffDiagJacobian(), and INSMass::computeQpPGResidual().


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