30#include "../CNumerics.hpp"
165 const unsigned short val_nPrimVar);
177 CAvgGrad_Base(
unsigned short val_nDim,
unsigned short val_nVar,
178 unsigned short val_nPrimVar,
179 bool val_correct_grad,
const CConfig* config);
261 CAvgGrad_Flow(
unsigned short val_nDim,
unsigned short val_nVar,
262 bool val_correct_grad,
const CConfig* config);
313 void GetViscousIncProjFlux(
const su2double*
const *val_gradprimvar,
327 void GetViscousIncProjJacs(
su2double val_dS,
341 bool val_correct_grad,
const CConfig* config);
376 void SetHeatFluxJacobian(
const su2double *val_Mean_PrimVar,
Class for computing viscous term using an average of gradients.
Definition flow_diffusion.hpp:298
ResidualType ComputeResidual(const CConfig *config) override
Compute the viscous flow residual using an average of gradients.
Definition flow_diffusion.cpp:578
A base class for computing viscous terms using an average of gradients.
Definition flow_diffusion.hpp:44
void SetIncTauJacobian(su2double val_laminar_viscosity, su2double val_eddy_viscosity, su2double val_dist_ij, const su2double *val_normal)
Calculate the Jacobian of the viscous and turbulent stress tensor.
Definition flow_diffusion.cpp:228
su2double Mean_Eddy_Viscosity
Mean value of the eddy viscosity.
Definition flow_diffusion.hpp:59
su2double dist_ij_2
Length of the edge and face, squared.
Definition flow_diffusion.hpp:66
su2double TauWall_i
Definition flow_diffusion.hpp:65
su2double * heat_flux_jac_i
Jacobian of the molecular + turbulent heat flux vector, projected onto the normal vector.
Definition flow_diffusion.hpp:51
su2double ** Jacobian_j
The Jacobian w.r.t. point j after computation.
Definition flow_diffusion.hpp:70
void CorrectGradient(su2double **GradPrimVar, const su2double *val_PrimVar_i, const su2double *val_PrimVar_j, const su2double *val_edge_vector, su2double val_dist_ij_2, const unsigned short val_nPrimVar)
Apply a correction to the gradient to reduce the truncation error.
Definition flow_diffusion.cpp:101
void SetHeatFluxVector(const su2double *const *val_gradprimvar, su2double val_eddy_viscosity, su2double val_thermal_conductivity, su2double val_heat_capacity_cp)
Compute the heat flux due to molecular and turbulent diffusivity.
Definition flow_diffusion.cpp:170
su2double Mean_StochVar[3]
Mean stochastic variables (Stochastic Backscatter Model).
Definition flow_diffusion.hpp:64
~CAvgGrad_Base() override
Destructor of the class.
Definition flow_diffusion.cpp:70
su2double heat_flux_vector[MAXNDIM]
Flux of total energy due to molecular and turbulent diffusion.
Definition flow_diffusion.hpp:50
su2double GetStressTensor(unsigned short iDim, unsigned short jDim) const
Get a component of the viscous stress tensor.
Definition flow_diffusion.hpp:225
void SetStressTensor(const su2double *val_primvar, const su2double *const *val_gradprimvar, su2double val_turb_ke, su2double val_laminar_viscosity, su2double val_eddy_viscosity, const CConfig *config)
Calculate the viscous + turbulent stress tensor.
Definition flow_diffusion.cpp:119
su2double TauWall_j
Wall shear stress at point i and j (wall functions).
Definition flow_diffusion.hpp:65
const su2double * PrimVar_i
Definition flow_diffusion.hpp:55
void SetStochReynStress(const CConfig *config)
Calculate the stochastic contribution to the subgrid stress tensor (Stochastic Backscatter Model)
Definition flow_diffusion.cpp:156
void GetViscousProjJacs(const su2double *val_Mean_PrimVar, su2double val_dS, const su2double *val_Proj_Visc_Flux, su2double **val_Proj_Jac_Tensor_i, su2double **val_Proj_Jac_Tensor_j)
TSL-Approximation of Viscous NS Jacobians.
Definition flow_diffusion.cpp:292
const su2double * PrimVar_j
Primitives variables at point i and j.
Definition flow_diffusion.hpp:56
bool implicit
Implicit calculus.
Definition flow_diffusion.hpp:48
su2double Edge_Vector[MAXNDIM]
Vector from point i to point j.
Definition flow_diffusion.hpp:67
su2double Mean_Thermal_Conductivity
Mean value of the thermal conductivity.
Definition flow_diffusion.hpp:60
su2double Mean_TauWall
Mean wall shear stress (wall functions).
Definition flow_diffusion.hpp:63
su2double Mean_Laminar_Viscosity
Mean value of the viscosity.
Definition flow_diffusion.hpp:58
void SetTau_Wall(su2double val_tauwall_i, su2double val_tauwall_j) override
Set the value of the wall shear stress at point i and j (wall functions).
Definition flow_diffusion.hpp:191
su2double Mean_turb_ke
Mean value of the turbulent kinetic energy.
Definition flow_diffusion.hpp:62
su2double * Mean_PrimVar
Mean primitive variables.
Definition flow_diffusion.hpp:53
void SetTauJacobian(const su2double *val_Mean_PrimVar, su2double val_laminar_viscosity, su2double val_eddy_viscosity, su2double val_dist_ij, const su2double *val_normal)
Calculate the Jacobian of the viscous + turbulent stress tensor.
Definition flow_diffusion.cpp:201
void GetViscousProjFlux(const su2double *val_primvar, const su2double *val_normal)
Compute the projection of the viscous fluxes into a direction.
Definition flow_diffusion.cpp:245
const unsigned short nPrimVar
The size of the primitive variable array used in the numerics class.
Definition flow_diffusion.hpp:46
su2double GetHeatFluxVector(unsigned short iDim) const
Get a component of the heat flux vector.
Definition flow_diffusion.hpp:242
const bool correct_gradient
Apply a correction to the gradient term.
Definition flow_diffusion.hpp:47
void AddTauWall(const su2double *UnitNormal, su2double TauWall)
Scale the stress tensor using a predefined wall stress.
Definition flow_diffusion.cpp:181
su2double ** Mean_GradPrimVar
Mean value of the gradient.
Definition flow_diffusion.hpp:57
su2double Mean_Cp
Mean value of the specific heat capacity at constant pressure.
Definition flow_diffusion.hpp:61
su2double ** tau_jacobian_i
Jacobian of the viscous + turbulent stress tensor, projected onto the normal vector.
Definition flow_diffusion.hpp:52
su2double ** Jacobian_i
The Jacobian w.r.t. point i after computation.
Definition flow_diffusion.hpp:69
Class for computing viscous term using the average of gradients.
Definition flow_diffusion.hpp:252
ResidualType ComputeResidual(const CConfig *config) override
Compute the viscous flow residual using an average of gradients.
Definition flow_diffusion.cpp:393
void SetHeatFluxJacobian(const su2double *val_Mean_PrimVar, su2double val_heat_capacity_cp, su2double val_thermal_conductivity, su2double val_eddy_viscosity, su2double val_dist_ij, const su2double *val_normal)
Compute the Jacobian of the heat flux vector.
Definition flow_diffusion.cpp:524
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Class for computing viscous term using the average of gradients.
Definition flow_diffusion.hpp:359
ResidualType ComputeResidual(const CConfig *config) override
Compute the viscous flow residual using an average of gradients.
Definition flow_diffusion.cpp:902
Class for defining the numerical methods.
Definition CNumerics.hpp:48
su2double UnitNormal[MAXNDIM]
Unitary normal vector.
Definition CNumerics.hpp:169
static constexpr size_t MAXNDIM
Max number of space dimensions, used in some static arrays.
Definition CNumerics.hpp:50
su2double ** tau
Viscous stress tensor.
Definition CNumerics.hpp:61
passivedouble su2double
Definition code_config.hpp:181
Return type used in some "ComputeResidual" overloads to give a const-view of the internally stored fl...
Definition CNumerics.hpp:218