This class computes the residual and Jacobian contributions for the incompressible Navier-Stokes temperature (energy) equation.
More...
#include <INSTemperature.h>
This class computes the residual and Jacobian contributions for the incompressible Navier-Stokes temperature (energy) equation.
Definition at line 24 of file INSTemperature.h.
◆ INSTemperature()
INSTemperature::INSTemperature |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 36 of file INSTemperature.C.
41 _v_vel(_mesh.dimension() >= 2 ? coupledValue(
"v") : _zero),
42 _w_vel(_mesh.dimension() == 3 ? coupledValue(
"w") : _zero),
50 _rho(getMaterialProperty<Real>(
"rho_name")),
51 _k(getMaterialProperty<Real>(
"k_name")),
52 _cp(getMaterialProperty<Real>(
"cp_name"))
◆ ~INSTemperature()
virtual INSTemperature::~INSTemperature |
( |
| ) |
|
|
inlinevirtual |
◆ computeQpJacobian()
Real INSTemperature::computeQpJacobian |
( |
| ) |
|
|
protectedvirtual |
Definition at line 73 of file INSTemperature.C.
77 Real convective_part =
_rho[_qp] *
_cp[_qp] * (U * _grad_phi[_j][_qp]) * _test[_i][_qp];
78 Real conduction_part =
_k[_qp] * (_grad_phi[_j][_qp] * _grad_test[_i][_qp]);
80 return convective_part + conduction_part;
◆ computeQpOffDiagJacobian()
Real INSTemperature::computeQpOffDiagJacobian |
( |
unsigned |
jvar | ) |
|
|
protectedvirtual |
Definition at line 84 of file INSTemperature.C.
88 Real convective_part =
_rho[_qp] *
_cp[_qp] * _phi[_j][_qp] * _grad_u[_qp](0) * _test[_i][_qp];
89 return convective_part;
94 Real convective_part =
_rho[_qp] *
_cp[_qp] * _phi[_j][_qp] * _grad_u[_qp](1) * _test[_i][_qp];
95 return convective_part;
100 Real convective_part =
_rho[_qp] *
_cp[_qp] * _phi[_j][_qp] * _grad_u[_qp](2) * _test[_i][_qp];
101 return convective_part;
◆ computeQpResidual()
Real INSTemperature::computeQpResidual |
( |
| ) |
|
|
protectedvirtual |
Definition at line 57 of file INSTemperature.C.
61 Real convective_part =
_rho[_qp] *
_cp[_qp] *
62 (
_u_vel[_qp] * _grad_u[_qp](0) +
_v_vel[_qp] * _grad_u[_qp](1) +
63 _w_vel[_qp] * _grad_u[_qp](2)) *
67 Real conduction_part =
_k[_qp] * _grad_u[_qp] * _grad_test[_i][_qp];
69 return convective_part + conduction_part;
◆ _cp
const MaterialProperty<Real>& INSTemperature::_cp |
|
protected |
◆ _k
const MaterialProperty<Real>& INSTemperature::_k |
|
protected |
◆ _rho
const MaterialProperty<Real>& INSTemperature::_rho |
|
protected |
◆ _u_vel
const VariableValue& INSTemperature::_u_vel |
|
protected |
◆ _u_vel_var_number
unsigned INSTemperature::_u_vel_var_number |
|
protected |
◆ _v_vel
const VariableValue& INSTemperature::_v_vel |
|
protected |
◆ _v_vel_var_number
unsigned INSTemperature::_v_vel_var_number |
|
protected |
◆ _w_vel
const VariableValue& INSTemperature::_w_vel |
|
protected |
◆ _w_vel_var_number
unsigned INSTemperature::_w_vel_var_number |
|
protected |
The documentation for this class was generated from the following files: