26 _grad_temperature(coupledGradient(
NS::temperature)),
27 _thermal_conductivity(getMaterialProperty<Real>(
"thermal_conductivity")),
64 Real thermal_term = 0.0;
66 for (
unsigned int ell = 0; ell < LIBMESH_DIM; ++ell)
68 Real intermediate_result = 0.;
71 for (
unsigned n = 0; n < 5; ++n)
81 thermal_term += intermediate_result *
_normals[
_qp](ell);
113 Real thermal_term = 0.;
115 for (
unsigned ell = 0; ell < LIBMESH_DIM; ++ell)
117 Real intermediate_result = 0.;
120 for (
unsigned n = 0; n < 5; ++n)
130 thermal_term += intermediate_result *
_normals[
_qp](ell);
150 Real intermediate_value = 0.0;
151 for (
unsigned int ell = 0; ell < LIBMESH_DIM; ++ell)
152 intermediate_value +=
157 visc_term += intermediate_value *
_normals[
_qp](k);
168 unsigned int m_local = m - 1;
173 Real intermediate_value = tau(k, m_local) * phij /
rho;
175 for (
unsigned int ell = 0; ell < LIBMESH_DIM; ++ell)
180 visc_term += intermediate_value *
_normals[
_qp](k);
187 mooseError(
"Shouldn't get here, this is the on-diagonal entry!");
197 return (-thermal_term - visc_term) *
_test[
_i][
_qp];
registerMooseObject("NavierStokesApp", NSEnergyViscousBC)
const VariablePhiGradient & _grad_phi
const VariablePhiValue & _phi
const MooseArray< Point > & _normals
const VariableTestValue & _test
void mooseError(Args &&... args) const
This class corresponds to the viscous part of the "natural" boundary condition for the energy equatio...
const MaterialProperty< Real > & _thermal_conductivity
virtual Real computeQpJacobian()
NSTemperatureDerivs< NSEnergyViscousBC > _temp_derivs
virtual Real computeQpResidual()
Just like other kernels, we must overload the Residual and Jacobian contributions....
virtual Real computeQpOffDiagJacobian(unsigned jvar)
NSEnergyViscousBC(const InputParameters ¶meters)
const VariableGradient & _grad_temperature
NSViscStressTensorDerivs< NSEnergyViscousBC > _vst_derivs
std::vector< const VariableGradient * > _gradU
static InputParameters validParams()
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
const VariableValue & _w_vel
const VariableValue & _v_vel
static InputParameters validParams()
const VariableValue & _rho
const VariableGradient & _grad_rho_w
const VariableGradient & _grad_rho_et
const VariableValue & _u_vel
const VariableGradient & _grad_rho
bool isNSVariable(unsigned var)
const VariableValue & _rho_u
const VariableGradient & _grad_rho_u
const MaterialProperty< RealTensorValue > & _viscous_stress_tensor
unsigned mapVarNumber(unsigned var)
const VariableGradient & _grad_rho_v
const VariableValue & _rho_w
const VariableValue & _rho_v
Real get_hess(unsigned i, unsigned j)
Real get_grad(unsigned i)
The primary interfaces for computing temperature derivatives.
Real dtau(unsigned k, unsigned ell, unsigned m)
The primary interface for computing viscous stress tensor derivatives.
static constexpr std::size_t dim
static const std::string temperature