![]() |
Documentation 6b54b78464
|
Class for defining the numerical methods. More...
#include <CNumerics.hpp>
Classes | |
| struct | ResidualType |
| Return type used in some "ComputeResidual" overloads to give a const-view of the internally stored flux vector and Jacobians to the outside. More... | |
Public Member Functions | |
| CNumerics (void) | |
| Constructor of the class. | |
| CNumerics (unsigned short val_nDim, unsigned short val_nVar, const CConfig *config) | |
| virtual | ~CNumerics (void) |
| Destructor of the class. | |
| void | SetTimeStep (su2double val_timestep) |
| Set the time step. | |
| void | SetVelocity2_Inf (su2double val_velocity2) |
| Set the freestream velocity square. | |
| void | SetVorticity (const su2double *val_vorticity_i, const su2double *val_vorticity_j) |
| Set the value of the vorticity. | |
| void | SetStrainMag (su2double val_strainmag_i, su2double val_strainmag_j) |
| Set the value of the rate of strain magnitude. | |
| void | SetConservative (const su2double *val_u_i, const su2double *val_u_j) |
| Set the value of the conservative variables. | |
| void | SetPrimitive (const su2double *val_v_i, const su2double *val_v_j) |
| Set the value of the primitive variables. | |
| void | SetSecondary (const su2double *val_s_i, const su2double *val_s_j) |
| Set the value of the primitive variables. | |
| void | SetConsVarGradient (CMatrixView< const su2double > val_consvar_grad_i, CMatrixView< const su2double > val_consvar_grad_j) |
| Set the gradient of the conservative variables. | |
| void | SetConsVarGradient (CMatrixView< const su2double > val_consvar_grad) |
| Set the gradient of the conservative variables. | |
| void | SetPrimVarGradient (CMatrixView< const su2double > val_primvar_grad_i, CMatrixView< const su2double > val_primvar_grad_j) |
| Set the gradient of the primitive variables. | |
| void | SetAdjointVar (const su2double *val_psi_i, const su2double *val_psi_j) |
| Set the value of the adjoint variable. | |
| void | SetAdjointVarGradient (CMatrixView< const su2double > val_psivar_grad_i, CMatrixView< const su2double > val_psivar_grad_j) |
| Set the gradient of the adjoint variables. | |
| void | SetScalarVar (const su2double *val_scalarvar_i, const su2double *val_scalarvar_j) |
| Set the value of the scalar variable. | |
| void | SetTransVar (const su2double *val_transvar_i, const su2double *val_transvar_j) |
| Set the value of the turbulent variable. | |
| void | SetScalarVarGradient (CMatrixView< const su2double > val_scalarvar_grad_i, CMatrixView< const su2double > val_scalarvar_grad_j) |
| Set the gradient of the scalar variables. | |
| void | SetTransVarGradient (CMatrixView< const su2double > val_transvar_grad_i, CMatrixView< const su2double > val_transvar_grad_j) |
| Set the gradient of the turbulent variables. | |
| void | SetLocalGridLength (const su2double val_localGridLength_i) |
| Set the value of the turbulent variable. | |
| void | SetTurbAdjointVar (const su2double *val_turbpsivar_i, const su2double *val_turbpsivar_j) |
| Set the value of the adjoint turbulent variable. | |
| void | SetTurbAdjointGradient (CMatrixView< const su2double > val_turbpsivar_grad_i, CMatrixView< const su2double > val_turbpsivar_grad_j) |
| Set the gradient of the adjoint turbulent variables. | |
| template<class Vec , class Mat > | |
| void | ComputeStochReynStress (su2double density, su2double tke, const Vec &rndVec, su2double Cmag, Mat &stochReynStress) |
| Compute a random contribution to the Reynolds stress tensor (Stochastic Backscatter Model). | |
| su2double | ComputeStochRelaxFactor (const CConfig *config) |
| Compute relaxation factor for stochastic source term in momentum equations (Stochastic Backscatter Model). | |
| virtual void | SetF1blending (su2double val_F1_i, su2double val_F1_j) |
| Set the value of the first blending function. | |
| virtual void | SetF2blending (su2double val_F2_i) |
| Set the value of the second blending function. | |
| virtual void | SetCrossDiff (su2double val_CDkw_i) |
| Set the value of the cross diffusion for the SST model. | |
| void | SetIntermittencyEff (su2double val_intermittency_eff_i) |
| Set the value of the effective intermittency for the LM model. | |
| void | SetIntermittency (su2double val_intermittency_i) |
| Set the value of the intermittency for the LM model. | |
| su2double | GetIntermittencyEff () const |
| Get the value of the effective intermittency for the transition model. | |
| void | SetAuxVarGrad (CMatrixView< const su2double > val_auxvar_grad_i, CMatrixView< const su2double > val_auxvar_grad_j) |
| Set the gradient of the auxiliary variables. | |
| void | SetDiffusionCoeff (const su2double *val_diffusioncoeff_i, const su2double *val_diffusioncoeff_j) |
| Set the diffusion coefficient. | |
| void | SetHeatFluxDiffusion (su2double val_heatfluxdiffusion) |
| Set the heat flux due to enthalpy diffusion. | |
| void | SetJacHeatFluxDiffusion (su2double val_jacheatfluxdiffusion) |
| Set Jacobian of the heat flux due to enthalpy diffusion. | |
| void | SetLaminarViscosity (su2double val_laminar_viscosity_i, su2double val_laminar_viscosity_j) |
| Set the laminar viscosity. | |
| void | SetThermalConductivity (su2double val_thermal_conductivity_i, su2double val_thermal_conductivity_j) |
| Set the thermal conductivity (translational/rotational) | |
| void | SetThermalConductivity_ve (su2double val_thermal_conductivity_ve_i, su2double val_thermal_conductivity_ve_j) |
| Set the thermal conductivity (translational/rotational) | |
| void | SetSpecificHeat (su2double val_specific_heat_i, su2double val_specific_heat_j) |
| Set the specifc heat c_p. | |
| void | SetEddyViscosity (su2double val_eddy_viscosity_i, su2double val_eddy_viscosity_j) |
| Set the eddy viscosity. | |
| void | SetTurbKineticEnergy (su2double val_turb_ke_i, su2double val_turb_ke_j) |
| Set the turbulent kinetic energy. | |
| void | SetStochVar (unsigned short iDim, su2double val_stochvar_i, su2double val_stochvar_j) |
| Set the stochastic variables from Langevin equations (Stochastic Backscatter Model). | |
| void | SetSbsInBoxSensor (int8_t val_sbsInBox_i) |
| Set the sensor to locate the box where the Stochastic Backscatter Model is active. | |
| void | SetLES_Mode (su2double val_lesMode_i, su2double val_lesMode_j) |
| Set the LES sensor for hybrid RANS-LES methods. | |
| void | SetDistance (su2double val_dist_i, su2double val_dist_j) |
| Set the value of the distance from the nearest wall. | |
| void | SetStochSource (su2double val_stoch_source, unsigned short iDim) |
| Set the stochastic source term for the Langevin equations (Backscatter Model). | |
| void | SetRoughness (su2double val_roughness_i, su2double val_roughness_j) |
| Set the value of the roughness from the nearest wall. | |
| void | SetCoord (const su2double *val_coord_i, const su2double *val_coord_j) |
| Set coordinates of the points. | |
| void | SetGridVel (const su2double *val_gridvel_i, const su2double *val_gridvel_j) |
| Set the velocity of the computational grid. | |
| void | SetPressure (su2double val_pressure_i, su2double val_pressure_j) |
| Set the value of the pressure. | |
| void | SetDensity (su2double val_densityinc_i, su2double val_densityinc_j) |
| Set the value of the density for the incompressible solver. | |
| void | SetBetaInc2 (su2double val_betainc2_i, su2double val_betainc2_j) |
| Set the value of the beta for incompressible flows. | |
| void | SetSoundSpeed (su2double val_soundspeed_i, su2double val_soundspeed_j) |
| Set the value of the sound speed. | |
| void | SetEnthalpy (su2double val_enthalpy_i, su2double val_enthalpy_j) |
| Set the value of the enthalpy. | |
| void | SetLambda (su2double val_lambda_i, su2double val_lambda_j) |
| Set the value of the spectral radius. | |
| void | SetUndivided_Laplacian (const su2double *val_und_lapl_i, const su2double *val_und_lapl_j) |
| Set the value of undivided laplacian. | |
| void | SetSensor (su2double val_sensor_i, su2double val_sensor_j) |
| Set the value of the pressure sensor. | |
| void | SetNeighbor (unsigned short val_neighbor_i, unsigned short val_neighbor_j) |
| Set the number of neighbor to a point. | |
| void | SetNormal (const su2double *val_normal) |
| Set the value of the normal vector to the face between two points. | |
| void | SetVolume (su2double val_volume) |
| Set the value of the volume of the control volume. | |
| void | SetAvgVolume (su2double val_avgvolume) |
| Set the value of AvgVolume Variable. | |
| void | SetDissipation (su2double diss_i, su2double diss_j) |
| Sets the values of the roe dissipation. | |
| su2double | GetDissipation () const |
| Get the final Roe dissipation factor. | |
| void | GetInviscidProjFlux (const su2double *val_density, const su2double *val_velocity, const su2double *val_pressure, const su2double *val_enthalpy, const su2double *val_normal, su2double *val_Proj_Flux) const |
| Compute the projected inviscid flux vector. | |
| void | GetInviscidIncProjFlux (const su2double *val_density, const su2double *val_velocity, const su2double *val_pressure, const su2double *val_betainc2, const su2double *val_enthalpy, const su2double *val_normal, su2double *val_Proj_Flux) const |
| Compute the projected inviscid flux vector for incompresible simulations. | |
| void | GetInviscidProjJac (const su2double *val_velocity, const su2double *val_energy, const su2double *val_normal, su2double val_scale, su2double **val_Proj_Jac_tensor) const |
| Compute the projection of the inviscid Jacobian matrices. | |
| void | GetInviscidIncProjJac (const su2double *val_density, const su2double *val_velocity, const su2double *val_betainc2, const su2double *val_normal, su2double val_scale, su2double **val_Proj_Jac_tensor) |
| Compute the projection of the inviscid Jacobian matrices (incompressible). | |
| void | GetInviscidIncProjJac (const su2double *val_density, const su2double *val_velocity, const su2double *val_betainc2, const su2double *val_enthalpy, const su2double *val_dRhodh, const su2double *val_normal, su2double val_scale, su2double **val_Proj_Jac_Tensor) const |
| Compute the projection of the inviscid Jacobian matrices (overload for low speed preconditioner version). | |
| void | GetPreconditioner (const su2double *val_density, const su2double *val_velocity, const su2double *val_betainc2, const su2double *val_enthalpy, const su2double *val_drhodh, su2double **val_Precon) const |
| Compute the low speed preconditioning matrix. | |
| void | GetPreconditionedProjJac (const su2double *val_density, const su2double *val_velocity, const su2double *val_betainc2, const su2double *val_normal, su2double **val_Proj_Jac_Tensor) const |
| Compute the projection of the preconditioned inviscid Jacobian matrices. | |
| void | GetInviscidProjJac (const su2double *val_velocity, const su2double *val_enthalphy, const su2double *val_chi, const su2double *val_kappa, const su2double *val_normal, su2double val_scale, su2double **val_Proj_Jac_tensor) const |
| Compute the projection of the inviscid Jacobian matrices for general fluid model. | |
| void | GetPrimitive2Conservative (const su2double *val_Mean_PrimVar, const su2double *val_Mean_SecVar, su2double **val_Jac_PC) const |
| Mapping between primitives variables P and conservatives variables C. | |
| void | GetPMatrix (const su2double *val_density, const su2double *val_velocity, const su2double *val_soundspeed, const su2double *val_enthalpy, const su2double *val_chi, const su2double *val_kappa, const su2double *val_normal, su2double **val_p_tensor) const |
| Computation of the matrix P for a generic fluid model. | |
| template<typename Matrix > | |
| void | GetPMatrix (const su2double &density, const su2double *velocity, const su2double &soundspeed, const su2double *normal, Matrix &p_tensor) const |
| Computation of the matrix P, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$. | |
| void | GetinvRinvPe (su2double Beta2, su2double val_enthalpy, su2double val_soundspeed, su2double val_density, const su2double *val_velocity, su2double **val_invR_invPe) const |
| Computation of the matrix Rinv*Pe. | |
| void | GetRMatrix (su2double val_pressure, su2double val_soundspeed, su2double val_density, const su2double *val_velocity, su2double **val_invR_invPe) const |
| Computation of the matrix R. | |
| void | GetRMatrix (su2double val_soundspeed, su2double val_density, su2double **R_Matrix) const |
| Computation of the matrix R. | |
| void | GetLMatrix (su2double val_soundspeed, su2double val_density, su2double **L_Matrix) const |
| Computation of the matrix R. | |
| void | ComputeResJacobianGiles (CFluidModel *FluidModel, su2double pressure, su2double density, const su2double *turboVel, su2double alphaInBC, su2double gammaInBC, su2double **R_c, su2double **R_c_inv) |
| Computation of the flow Residual Jacobian Matrix for Non Reflecting BC. | |
| void | InvMatrix3D (su2double **matrix, su2double **invMatrix) |
| Computate the inverse of a 3x3 matrix. | |
| void | InvMatrix4D (su2double **matrix, su2double **invMatrix) |
| Computate the inverse of a 4x4 matrix. | |
| void | GetCharJump (su2double val_soundspeed, su2double val_density, const su2double *prim_jump, su2double *char_jump) const |
| Computation of the matrix R. | |
| void | GetPrecondJacobian (su2double Beta2, su2double r_hat, su2double s_hat, su2double t_hat, su2double rB2a2, const su2double *val_Lambda, const su2double *val_normal, su2double **val_absPeJac) const |
| Computation of the matrix Td, this matrix diagonalize the preconditioned conservative Jacobians in the form $Tg |Lambda| Td = Pc{-1}|Pc (A.Normal)|$. | |
| void | GetPMatrix_inv (su2double **val_invp_tensor, const su2double *val_density, const su2double *val_velocity, const su2double *val_soundspeed, const su2double *val_chi, const su2double *val_kappa, const su2double *val_normal) const |
| Computation of the matrix P^{-1}, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$. | |
| template<typename Matrix > | |
| void | GetPMatrix_inv (const su2double &density, const su2double *velocity, const su2double &soundspeed, const su2double *normal, Matrix &inv_p_tensor) const |
| Computation of the matrix P^{-1}, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$. | |
| void | GetAdjViscousFlux_Jac (su2double Pressure_i, su2double Pressure_j, su2double Density_i, su2double Density_j, su2double ViscDens_i, su2double ViscDens_j, const su2double *Velocity_i, const su2double *Velocity_j, su2double sq_vel_i, su2double sq_vel_j, su2double XiDens_i, su2double XiDens_j, su2double **Mean_GradPhi, const su2double *Mean_GradPsiE, su2double dPhiE_dn, const su2double *Normal, const su2double *Edge_Vector, su2double dist_ij_2, su2double *val_residual_i, su2double *val_residual_j, su2double **val_Jacobian_ii, su2double **val_Jacobian_ij, su2double **val_Jacobian_ji, su2double **val_Jacobian_jj, bool implicit) const |
| Compute viscous residual and jacobian. | |
| void | GetJacInviscidLambda_fabs (const su2double *val_velocity, su2double val_soundspeed, const su2double *val_normal, su2double *val_Lambda_Vector) const |
| Computation of the projected inviscid lambda (eingenvalues). | |
| virtual void | ComputeResidual (su2double *val_residual, CConfig *config) |
| Compute the numerical residual. | |
| virtual void | ComputeResidual (su2double *val_residual, su2double **val_Jacobian_i, su2double **val_Jacobian_j, CConfig *config) |
| virtual ResidualType | ComputeResidual (const CConfig *config) |
| virtual void | ComputeResidual (su2double *val_residual_i, su2double *val_residual_j, su2double **val_Jacobian_ii, su2double **val_Jacobian_ij, su2double **val_Jacobian_ji, su2double **val_Jacobian_jj, CConfig *config) |
| virtual void | ComputeResidual (su2double *val_resconv_i, su2double *val_resvisc_i, su2double *val_resconv_j, su2double *val_resvisc_j, su2double **val_Jacobian_ii, su2double **val_Jacobian_ij, su2double **val_Jacobian_ji, su2double **val_Jacobian_jj, CConfig *config) |
| virtual void | ComputeResidual (su2double *val_resconv, su2double *val_resvisc, su2double **val_Jacobian_i, su2double **val_Jacobian_j, CConfig *config) |
| virtual void | ComputeResidual (su2double *val_residual, su2double **val_Jacobian_i, CConfig *config) |
| virtual void | ComputeResidual_TransLM (su2double *val_residual, su2double **val_Jacobian_i, su2double **val_Jacobian_j, CConfig *config, su2double &gamma_sep) |
| Residual for transition problems. | |
| virtual ResidualType | ComputeAxisymmetric (const CConfig *config) |
| Residual for source term integration. | |
| virtual ResidualType | ComputeVibRelaxation (const CConfig *config) |
| virtual ResidualType | ComputeChemistry (const CConfig *config) |
| Calculation of the chemistry source term. | |
| virtual su2double | GetGammaBC (void) const |
| A virtual member. | |
| virtual void | Compute_Tangent_Matrix (CElement *element_container, const CConfig *config) |
| A virtual member to compute the tangent matrix in structural problems. | |
| virtual void | Compute_NodalStress_Term (CElement *element_container, const CConfig *config) |
| A virtual member to compute the nodal stress term in non-linear structural problems. | |
| virtual void | SetMeshElasticProperties (unsigned long iElem, su2double val_E) |
| Set the element-based local Young's modulus in mesh problems. | |
| virtual void | Set_DV_Val (unsigned short i_DV, su2double val_DV) |
| A virtual member to set the value of the design variables. | |
| virtual su2double | Get_DV_Val (unsigned short i_DV) const |
| A virtual member to retrieve the value of the design variables. | |
| virtual void | Set_ElectricField (unsigned short i_DV, su2double val_EField) |
| A virtual member to set the electric field. | |
| virtual void | SetMaterial_Properties (unsigned short iVal, su2double val_E, su2double val_Nu) |
| A virtual member to set the material properties. | |
| virtual void | SetMaterial_Density (unsigned short iVal, su2double val_Rho, su2double val_Rho_DL) |
| A virtual member to set the material properties. | |
| virtual void | Compute_Mass_Matrix (CElement *element_container, const CConfig *config) |
| A virtual member to compute the mass matrix. | |
| virtual void | Compute_Body_Forces (CElement *element_container, const CConfig *config) |
| A virtual member to compute the residual component due to body forces. | |
| virtual su2double | Compute_Averaged_NodalStress (CElement *element_container, const CConfig *config) |
| A virtual member to compute the averaged nodal stresses. | |
| void | CreateBasis (const su2double *val_Normal, su2double *l, su2double *m) |
| Computes a basis of orthogonal vectors from a supplied vector. | |
| virtual void | SetTau_Wall (su2double val_tauwall_i, su2double val_tauwall_j) |
| Set the value of the Tauwall. | |
| su2double | GetRoe_Dissipation (const su2double Dissipation_i, const su2double Dissipation_j, const su2double Sensor_i, const su2double Sensor_j, const CConfig *config) const |
| |
| virtual void | SetRadVar (const su2double *val_radvar_i, const su2double *val_radvar_j) |
| Set the value of the radiation variable. | |
| virtual void | SetRadVarGradient (CMatrixView< const su2double > val_radvar_grad_i, CMatrixView< const su2double > val_radvar_grad_j) |
| Set the gradient of the radiation variables. | |
| void | SetRadVarSource (const su2double *val_radvar_source) |
| Set the gradient of the radiation variables. | |
| virtual void | SetdPdU (su2double *val_dPdU_i, su2double *val_dPdU_j) |
| Set the pressure derivatives. | |
| virtual void | SetdTdU (su2double *val_dTdU_i, su2double *val_dTdU_j) |
| Set the temperature derivatives. | |
| virtual void | SetdTvedU (su2double *val_dTvedU_i, su2double *val_dTvedU_j) |
| Set the vib-el temperture derivatives. | |
| virtual void | SetEve (su2double *val_Eve_i, su2double *val_Eve_j) |
| Set the vib-elec energy. | |
| virtual void | SetCvve (su2double *val_Cvve_i, su2double *val_Cvve_j) |
| Set the vib-elec specific heat. | |
| virtual void | SetGamma (su2double val_Gamma_i, su2double val_Gamma_j) |
| Set the ratio of specific heats. | |
| virtual void | SetStreamwisePeriodicValues (const StreamwisePeriodicValues SolverSPvals) |
| Set massflow, heatflow & inlet temperature for streamwise periodic flow. | |
| void | SetMassFlux (const su2double val_MassFlux) |
| SetMassFlux. | |
| bool | GetBoundedScalar () const |
| Obtain information on bounded scalar problem. | |
Static Public Member Functions | |
| template<class Mat1 , class Mat2 > | |
| static void | ComputeMeanRateOfStrainMatrix (size_t nDim, Mat1 &rateofstrain, const Mat2 &velgrad) |
| Compute the mean rate of strain matrix. | |
| template<class Mat1 , class Mat2 , class Scalar > | |
| static void | ComputeStressTensor (size_t nDim, Mat1 &stress, const Mat2 &velgrad, Scalar viscosity, Scalar density=0.0, Scalar turb_ke=0.0, bool reynolds3x3=false) |
| Compute the stress tensor from the velocity gradients. | |
| template<class Mat1 , class Mat2 , class Scalar2 > | |
| static void | AddQCR (size_t nDim, const Mat1 &gradvel, Mat2 &tau, Scalar2 turb_fraction) |
| Add a correction using a Quadratic Constitutive Relation to the stress tensor. | |
| template<class Mat1 , class Mat2 , class Scalar > | |
| static void | ComputePerturbedRSM (size_t nDim, size_t uq_eigval_comp, bool uq_permute, su2double uq_delta_b, su2double uq_urlx, const Mat1 &velgrad, Scalar density, Scalar viscosity, Scalar turb_ke, Mat2 &MeanPerturbedRSM) |
| Perturb the Reynolds stress tensor based on parameters. | |
| template<class Vec1 , class Vec2 , class Mat > | |
| static su2double | ComputeProjectedGradient (int nDim, int nVar, const Vec1 &normal, const Vec1 &coord_i, const Vec1 &coord_j, const Mat &grad_i, const Mat &grad_j, bool correct, const Vec2 &var_i, const Vec2 &var_j, su2double *projNormal, su2double *projCorrected) |
| Project average gradient onto normal (with or w/o correction) for viscous fluxes of scalar quantities. | |
| static bool | CheckResidualNaNs (bool implicit, int nVar, const ResidualType<> residual) |
| Check if residual constains a NaN value. | |
Protected Attributes | |
| unsigned short | nDim |
| unsigned short | nVar |
| Number of dimensions and variables. | |
| su2double | Gamma |
| Fluid's Gamma constant (ratio of specific heats). | |
| su2double | Gamma_Minus_One |
| Fluids's Gamma - 1.0 . | |
| su2double | Minf |
| Free stream Mach number . | |
| su2double | Gas_Constant |
| Gas constant. | |
| su2double | Prandtl_Turb |
| Turbulent Prandtl's number. | |
| su2double | MassFlux |
| Mass flux across edge. | |
| su2double * | Proj_Flux_Tensor |
| Flux tensor projected in a direction. | |
| su2double ** | tau |
| Viscous stress tensor. | |
| const su2double | delta [3][3] = {{1.0, 0.0, 0.0},{0.0, 1.0, 0.0}, {0.0, 0.0, 1.0}} |
| Identity matrix. | |
| const su2double * | Diffusion_Coeff_i |
| Species diffusion coefficients at point i. | |
| const su2double * | Diffusion_Coeff_j |
| Species diffusion coefficients at point j. | |
| su2double | Laminar_Viscosity_i |
| Laminar viscosity at point i. | |
| su2double | Laminar_Viscosity_j |
| Laminar viscosity at point j. | |
| su2double | Thermal_Conductivity_i |
| Thermal conductivity at point i. | |
| su2double | Thermal_Conductivity_j |
| Thermal conductivity at point j. | |
| su2double | Thermal_Conductivity_ve_i |
| vibrational-electronic Thermal conductivity at point i. | |
| su2double | Thermal_Conductivity_ve_j |
| vibrational-electronic Thermal conductivity at point j. | |
| su2double | Cp_i |
| Cp at point i. | |
| su2double | Cp_j |
| Cp at point j. | |
| su2double | Eddy_Viscosity_i |
| Eddy viscosity at point i. | |
| su2double | Eddy_Viscosity_j |
| Eddy viscosity at point j. | |
| su2double | turb_ke_i |
| Turbulent kinetic energy at point i. | |
| su2double | turb_ke_j |
| Turbulent kinetic energy at point j. | |
| su2double | intermittency_eff_i |
| effective intermittency at point i. | |
| su2double | intermittency_i |
| intermittency at point i. | |
| su2double | Pressure_i |
| Pressure at point i. | |
| su2double | Pressure_j |
| Pressure at point j. | |
| su2double | Density_i |
| Density at point i. | |
| su2double | Density_j |
| Density at point j. | |
| su2double | DensityInc_i |
| Incompressible density at point i. | |
| su2double | DensityInc_j |
| Incompressible density at point j. | |
| su2double | BetaInc2_i |
| Beta incompressible at point i. | |
| su2double | BetaInc2_j |
| Beta incompressible at point j. | |
| su2double | Lambda_i |
| Spectral radius at point i. | |
| su2double | Lambda_j |
| Spectral radius at point j. | |
| su2double | SoundSpeed_i |
| Sound speed at point i. | |
| su2double | SoundSpeed_j |
| Sound speed at point j. | |
| su2double | Enthalpy_i |
| Enthalpy at point i. | |
| su2double | Enthalpy_j |
| Enthalpy at point j. | |
| su2double | dist_i |
| Distance of point i to the nearest wall. | |
| su2double | dist_j |
| Distance of point j to the nearest wall. | |
| const su2double * | Und_Lapl_i |
| Undivided laplacians at point i. | |
| const su2double * | Und_Lapl_j |
| Undivided laplacians at point j. | |
| su2double | Sensor_i |
| Pressure sensor at point i. | |
| su2double | Sensor_j |
| Pressure sensor at point j. | |
| const su2double * | GridVel_i |
| Grid velocity at point i. | |
| const su2double * | GridVel_j |
| Grid velocity at point j. | |
| const su2double * | U_i |
| Vector of conservative variables at point i. | |
| const su2double * | U_j |
| Vector of conservative variables at point j. | |
| const su2double * | V_i |
| Vector of primitive variables at point i. | |
| const su2double * | V_j |
| Vector of primitive variables at point j. | |
| const su2double * | S_i |
| Vector of secondary variables at point i. | |
| const su2double * | S_j |
| Vector of secondary variables at point j. | |
| const su2double * | Psi_i |
| Vector of adjoint variables at point i. | |
| const su2double * | Psi_j |
| Vector of adjoint variables at point j. | |
| const su2double * | ScalarVar_i |
| Vector of scalar variables at point i. | |
| const su2double * | ScalarVar_j |
| Vector of scalar variables at point j. | |
| su2double | HeatFluxDiffusion |
| Heat flux due to enthalpy diffusion for multicomponent. | |
| su2double | JacHeatFluxDiffusion |
| Heat flux jacobian due to enthalpy diffusion for multicomponent. | |
| const su2double * | TransVar_i |
| Vector of turbulent variables at point i. | |
| const su2double * | TransVar_j |
| Vector of turbulent variables at point j. | |
| const su2double * | TurbPsi_i |
| Vector of adjoint turbulent variables at point i. | |
| const su2double * | TurbPsi_j |
| Vector of adjoint turbulent variables at point j. | |
| CMatrixView< const su2double > | ConsVar_Grad_i |
| Gradient of conservative variables at point i. | |
| CMatrixView< const su2double > | ConsVar_Grad_j |
| Gradient of conservative variables at point j. | |
| CMatrixView< const su2double > | ConsVar_Grad |
| Gradient of conservative variables which is a scalar. | |
| CMatrixView< const su2double > | PrimVar_Grad_i |
| Gradient of primitive variables at point i. | |
| CMatrixView< const su2double > | PrimVar_Grad_j |
| Gradient of primitive variables at point j. | |
| CMatrixView< const su2double > | PsiVar_Grad_i |
| Gradient of adjoint variables at point i. | |
| CMatrixView< const su2double > | PsiVar_Grad_j |
| Gradient of adjoint variables at point j. | |
| CMatrixView< const su2double > | ScalarVar_Grad_i |
| Gradient of scalar variables at point i. | |
| CMatrixView< const su2double > | ScalarVar_Grad_j |
| Gradient of scalar variables at point j. | |
| CMatrixView< const su2double > | TransVar_Grad_i |
| Gradient of turbulent variables at point i. | |
| CMatrixView< const su2double > | TransVar_Grad_j |
| Gradient of turbulent variables at point j. | |
| CMatrixView< const su2double > | TurbPsi_Grad_i |
| Gradient of adjoint turbulent variables at point i. | |
| CMatrixView< const su2double > | TurbPsi_Grad_j |
| Gradient of adjoint turbulent variables at point j. | |
| CMatrixView< const su2double > | AuxVar_Grad_i |
| Gradient of an auxiliary variable at point i. | |
| CMatrixView< const su2double > | AuxVar_Grad_j |
| Gradient of an auxiliary variable at point i. | |
| su2double | LocalGridLength_i |
| Local grid length at point i. | |
| const su2double * | RadVar_Source |
| Source term from the radiative heat transfer equation. | |
| const su2double * | Coord_i |
| Cartesians coordinates of point i. | |
| const su2double * | Coord_j |
| Cartesians coordinates of point j. | |
| unsigned short | Neighbor_i |
| Number of neighbors of the point i. | |
| unsigned short | Neighbor_j |
| Number of neighbors of the point j. | |
| const su2double * | Normal = nullptr |
| Normal vector, its norm is the area of the face. | |
| su2double | UnitNormal [MAXNDIM] = {0.0} |
| Unitary normal vector. | |
| su2double | TimeStep |
| Time step useful in dual time method. | |
| su2double | Area |
| Area of the face i-j. | |
| su2double | Volume |
| Volume of the control volume around point i. | |
| su2double | AvgVolume |
| Average of the control Volume around point i for vorticity confinement parameter correction. | |
| su2double | vel2_inf |
| value of the square of freestream speed. | |
| const su2double * | WindGust_i |
| Wind gust at point i. | |
| const su2double * | WindGust_j |
| Wind gust at point j. | |
| const su2double * | Vorticity_i |
| const su2double * | Vorticity_j |
| Vorticity. | |
| su2double | StrainMag_i |
| su2double | StrainMag_j |
| Strain rate magnitude. | |
| su2double | Dissipation_i |
| su2double | Dissipation_j |
| Dissipation. | |
| su2double | Dissipation_ij |
| su2double | roughness_i = 0.0 |
| Roughness of the wall nearest to point i. | |
| su2double | roughness_j = 0.0 |
| Roughness of the wall nearest to point j. | |
| su2double | MeanPerturbedRSM [3][3] |
| Perturbed Reynolds stress tensor | |
| su2double | stochReynStress [3][3] = {{0.0}} |
| Stochastic contribution to Reynolds stress tensor for Backscatter Model. | |
| su2double | stochSource [3] = {0.0} |
| Source term for Langevin equations in Stochastic Backscatter Model. | |
| su2double | stochVar_i [3] = {0.0} |
| Stochastic variables at point i for Stochastic Backscatter Model. | |
| su2double | stochVar_j [3] = {0.0} |
| Stochastic variables at point j for Stochastic Backscatter Model. | |
| su2double | lesMode_i = 0.0 |
| LES sensor at point i for hybrid RANS-LES methods. | |
| su2double | lesMode_j = 0.0 |
| LES sensor at point j for hybrid RANS-LES methods. | |
| int8_t | sbsInBox_i = 0 |
| Sensor to assess if point i lies inside the box where the Stochastic Backscatter Model is active. | |
| SST_ParsedOptions | sstParsedOptions |
| additional options for the SST turbulence model | |
| unsigned short | Eig_Val_Comp |
| Component towards which perturbation is perfromed. | |
| su2double | uq_delta_b |
| Magnitude of perturbation. | |
| su2double | uq_urlx |
| Under-relaxation factor for numerical stability. | |
| bool | uq_permute |
| Flag for eigenvector permutation. | |
| bool | nemo |
| Flag for NEMO problems | |
| bool | energy_multicomponent = false |
| Flag for multicomponent and reacting flow | |
| bool | bounded_scalar = false |
| Flag for bounded scalar problem. | |
Static Protected Attributes | |
| static constexpr size_t | MAXNDIM = 3 |
| Max number of space dimensions, used in some static arrays. | |
Class for defining the numerical methods.
| CNumerics::CNumerics | ( | void | ) |
Constructor of the class.
| CNumerics::CNumerics | ( | unsigned short | val_nDim, |
| unsigned short | val_nVar, | ||
| const CConfig * | config | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | val_nDim | - Number of dimensions of the problem. |
| [in] | val_nVar | - Number of variables of the problem. |
| [in] | config | - Definition of the particular problem. |
|
virtual |
Destructor of the class.
|
inlinestatic |
Add a correction using a Quadratic Constitutive Relation to the stress tensor.
See: Spalart, P. R., "Strategies for Turbulence Modelling and Simulation", International Journal of Heat and Fluid Flow, Vol. 21, 2000, pp. 252-263
The QCR correction applies to the turbulent (Boussinesq) stresses only. When tau is the total (laminar + turbulent) stress tensor, which is proportional to the total viscosity, the turbulent part is recovered by scaling the correction with turb_fraction = mu_t / (mu_l + mu_t); at a no-slip wall (mu_t = 0) the correction vanishes. Pass 1 only if tau is already the turbulent stress tensor.
| [in] | nDim | 2D or 3D. |
| [in] | gradvel | Velocity gradients. |
| [in,out] | tau | Shear stress tensor. |
| [in] | turb_fraction | Turbulent share of the viscosity in tau. |
|
inlinestatic |
Check if residual constains a NaN value.
| [in] | config | - Definition of the particular problem. |
| [in] | val_residual | - residual of the numeric function. |
| [out] | ERR | - Presencse of NaN in vector |
|
inlinevirtual |
A virtual member to compute the averaged nodal stresses.
| [in] | element_container | - Element structure for the particular element integrated. |
Reimplemented in CFEALinearElasticity, CFEANonlinearElasticity, and CFEAElasticity.
|
inlinevirtual |
A virtual member to compute the residual component due to body forces.
| [in] | element_container | - Element structure for the particular element integrated. |
Reimplemented in CFEAElasticity.
|
inlinevirtual |
A virtual member to compute the mass matrix.
| [in] | element_container | - Element structure for the particular element integrated. |
Reimplemented in CFEAElasticity.
|
inlinevirtual |
A virtual member to compute the nodal stress term in non-linear structural problems.
| [in] | element_container | - Definition of the particular element integrated. |
Reimplemented in CFEANonlinearElasticity.
|
inlinevirtual |
A virtual member to compute the tangent matrix in structural problems.
| [in] | element_container | - Element structure for the particular element integrated. |
Reimplemented in CFEALinearElasticity, CFEANonlinearElasticity, CGradSmoothing, and CFEAElasticity.
|
inlinevirtual |
Residual for source term integration.
| [out] | val_residual | - Pointer to the source residual containing chemistry terms. |
| [in] | config | - Definition of the particular problem. |
Reimplemented in CSource_NEMO.
|
inlinevirtual |
Calculation of the chemistry source term.
| [in] | config | - Definition of the particular problem. |
| [out] | val_residual | - residual of the source terms |
| [out] | val_Jacobian_i | - Jacobian of the source terms |
Reimplemented in CSource_NEMO.
|
inlinestatic |
Compute the mean rate of strain matrix.
The parameter primvargrad can be e.g. PrimVar_Grad_i or Mean_GradPrimVar.
| [in] | nDim | - 2 or 3 |
| [out] | rateofstrain | - Rate of strain matrix |
| [in] | velgrad | - A velocity gradient matrix. |
| Mat1 | - any type that supports the [][] interface |
| Mat2 | - any type that supports the [][] interface |
|
inlinestatic |
Perturb the Reynolds stress tensor based on parameters.
| [in] | nDim | - Dimension of the flow problem, 2 or 3. |
| [in] | uq_eigval_comp | - Component 1C 2C 3C. |
| [in] | uq_permute | - Whether to swap order of eigen vectors. |
| [in] | uq_delta_b | - Delta_b parameter. |
| [in] | uq_urlx | - Relaxation factor. |
| [in] | velgrad | - A velocity gradient matrix. |
| [in] | density | - Density. |
| [in] | viscosity | - Eddy viscosity. |
| [in] | turb_ke | Turbulent kinetic energy. |
| [out] | MeanPerturbedRSM | - Perturbed stress tensor. |
|
inlinestatic |
Project average gradient onto normal (with or w/o correction) for viscous fluxes of scalar quantities.
| [in] | nDim | - Dimension of the flow problem, 2 or 3. |
| [in] | nVar | - Number of variables. |
| [in] | normal | - Area vector. |
| [in] | coord_i | - Coordinate of point i. |
| [in] | coord_j | - Coordinate of point j. |
| [in] | grad_i | - Gradient at point i. |
| [in] | grad_j | - Gradient at point j. |
| [in] | correct | - Correct |
| [in] | var_i | - Variable at point i. |
| [in] | var_j | - Variable at point j. |
| [out] | projNormal | - Average gradient projected on normal. |
| [out] | projCorrected | - Corrected gradient projected on normal. |
|
inlinevirtual |
Reimplemented in CUpwAUSMPLUS_SLAU_Base_Flow, CPBConvection_Base, CUpwRoeBase_Flow, CUpwAUSM_SLAU_Base_NEMO, CCentLax_NEMO, CUpwMSW_NEMO, CUpwRoe_NEMO, CAvgGrad_NEMO, CAvgGradCorrected_NEMO, CUpwAUSM_Flow, CCentLaxInc_Flow, CCentJSTInc_Flow, CUpwFDSInc_Flow, CUpwMSW_Flow, CUpwHLLC_Flow, CUpwGeneralHLLC_Flow, CUpwTurkel_Flow, CUpwGeneralRoe_Flow, CAvgGrad_Flow, CAvgGradInc_Flow, CGeneralAvgGrad_Flow, CSourceAxisymmetric_Flow, CSourceGeneralAxisymmetric_Flow, CSourceIncAxisymmetric_Flow, CSourceBodyForce, CSourceIncBodyForce, CSourceBoussinesq, CSourceGravity, CSourceRotatingFrame_Flow, CSourceIncRotatingFrame_Flow, CSourceVorticityConfinement, CSourceWindGust, CSourceIncStreamwise_Periodic, CSourceIncStreamwisePeriodic_Outlet, CSourceRadiation, CSourceAxisymmetric_Species< FlowIndices >, CSourcePieceWise_TransLM< FlowIndices >, CSourceBase_TurbSA< FlowIndices, Omega, ft2, ModVort, rFunc, SourceTerms >, and CSourcePieceWise_TurbSST< FlowIndices >.
|
inlinevirtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [out] | val_resconv | - Pointer to the convective residual. |
| [out] | val_resvisc | - Pointer to the artificial viscosity residual. |
| [out] | val_Jacobian_i | - Jacobian of the numerical method at node i (implicit computation). |
| [out] | val_Jacobian_j | - Jacobian of the numerical method at node j (implicit computation). |
| [in] | config | - Definition of the particular problem. |
|
inlinevirtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [out] | val_resconv_i | - Pointer to the convective residual at point i. |
| [out] | val_resvisc_i | - Pointer to the artificial viscosity residual at point i. |
| [out] | val_resconv_j | - Pointer to the convective residual at point j. |
| [out] | val_resvisc_j | - Pointer to the artificial viscosity residual at point j. |
| [out] | val_Jacobian_ii | - Jacobian of the numerical method at node i (implicit computation) from node i. |
| [out] | val_Jacobian_ij | - Jacobian of the numerical method at node i (implicit computation) from node j. |
| [out] | val_Jacobian_ji | - Jacobian of the numerical method at node j (implicit computation) from node i. |
| [out] | val_Jacobian_jj | - Jacobian of the numerical method at node j (implicit computation) from node j. |
| [in] | config | - Definition of the particular problem. |
Reimplemented in CCentLax_AdjFlow, and CCentJST_AdjFlow.
|
inlinevirtual |
Compute the numerical residual.
| [out] | val_residual | - Pointer to the total residual. |
| [in] | config | - Definition of the particular problem. |
Reimplemented in CSourceConservative_AdjFlow, and CSourceViscous_AdjFlow.
|
inlinevirtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | config | - Definition of the particular problem. |
| [out] | val_residual | - residual of the source terms |
| [out] | val_Jacobian_i | - Jacobian of the source terms |
Reimplemented in CSourceAxisymmetric_AdjFlow, CSourceRotatingFrame_AdjFlow, CSourceP1, and CSource_Template.
|
inlinevirtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [out] | val_residual | - Pointer to the total residual. |
| [out] | val_Jacobian_i | - Jacobian of the numerical method at node i (implicit computation). |
| [out] | val_Jacobian_j | - Jacobian of the numerical method at node j (implicit computation). |
| [in] | config | - Definition of the particular problem. |
Reimplemented in CAvgGradCorrected_P1, CUpwLin_AdjTurb, CAvgGrad_AdjTurb, CAvgGradCorrected_AdjTurb, CSourceConservative_AdjTurb, CSourcePieceWise_AdjTurb, CConvective_Template, and CViscous_Template.
|
inlinevirtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [out] | val_residual_i | - Pointer to the total residual at point i. |
| [out] | val_residual_j | - Pointer to the total viscosity residual at point j. |
| [out] | val_Jacobian_ii | - Jacobian of the numerical method at node i (implicit computation) from node i. |
| [out] | val_Jacobian_ij | - Jacobian of the numerical method at node i (implicit computation) from node j. |
| [out] | val_Jacobian_ji | - Jacobian of the numerical method at node j (implicit computation) from node i. |
| [out] | val_Jacobian_jj | - Jacobian of the numerical method at node j (implicit computation) from node j. |
| [in] | config | - Definition of the particular problem. |
Reimplemented in CUpwRoe_AdjFlow, CUpwSca_AdjTurb, CAvgGrad_AdjFlow, CAvgGradCorrected_AdjFlow, CAvgGrad_AdjTurb, and CAvgGradCorrected_AdjTurb.
|
inlinevirtual |
Residual for transition problems.
| [out] | val_residual | - Pointer to the total residual. |
| [out] | val_Jacobian_i | - Jacobian of the numerical method at node i (implicit computation). |
| [out] | val_Jacobian_j | - Jacobian of the numerical method at node j (implicit computation). |
| [in] | config | - Definition of the particular problem. |
| [out] | gamma_sep |
| void CNumerics::ComputeResJacobianGiles | ( | CFluidModel * | FluidModel, |
| su2double | pressure, | ||
| su2double | density, | ||
| const su2double * | turboVel, | ||
| su2double | alphaInBC, | ||
| su2double | gammaInBC, | ||
| su2double ** | R_c, | ||
| su2double ** | R_c_inv | ||
| ) |
Computation of the flow Residual Jacobian Matrix for Non Reflecting BC.
| [in] | val_soundspeed | - value of the sound speed. |
| [in] | val_density | - value of the density. |
| [out] | R_c | - Residual Jacoboan Matrix |
| [out] | R_c_inv- | inverse of the Residual Jacobian Matrix . |
Compute relaxation factor for stochastic source term in momentum equations (Stochastic Backscatter Model).
| [in] | config | - Definition of the particular problem. |
| [out] | intensityCoeff | - Relaxation factor for backscatter intensity. |
|
inline |
Compute a random contribution to the Reynolds stress tensor (Stochastic Backscatter Model).
See: Kok, Johan C. "A stochastic backscatter model for grey-area mitigation in detached eddy simulations." Flow, Turbulence and Combustion 99.1 (2017): 119-150.
| [in] | nDim | - Dimension of the flow problem, 2 or 3. |
| [in] | density | - Density. |
| [in] | tke | - Turbulent kinetic energy. |
| [in] | rndVec | - Vector of stochastic variables from Langevin equations. |
| [in] | Cmag | - Stochastic backscatter intensity coefficient. |
| [out] | stochReynStress | - Stochastic tensor (to be added to the Reynolds stress tensor). |
|
inlinestatic |
Compute the stress tensor from the velocity gradients.
To obtain the Reynolds stress tensor +(u_i' u_j')~, divide the result of this function by (-rho). The argument density is only used if turb_ke is not 0. To select the velocity gradient components from a primitive variable gradient PrimVar_Grad_i, write PrimVar_Grad_i+1. If nDim==2, we use the same formula but only only access the entries [0][0]..[1][1] of stress and velgrad. If reynolds3x3 is true, the other non-diagonal entries of stress set to zero, and stress[2][2] to some value.
| [in] | nDim | - Dimension of the flow problem, 2 or 3 |
| [out] | stress | - Stress tensor |
| [in] | velgrad | - A velocity gradient matrix. |
| [in] | viscosity | - Viscosity |
| [in] | density | - Density |
| [in] | turb_ke | - Turbulent kinetic energy, for the turbulent stress tensor |
| [in] | reynolds3x3 | - If true, write to the third row and column of stress even if nDim==2. |
| Mat1 | - any type that supports the [][] interface |
| Mat2 | - any type that supports the [][] interface |
|
inlinevirtual |
Reimplemented in CSource_NEMO.
Computes a basis of orthogonal vectors from a supplied vector.
| [in] | config | - Normal vector |
|
inlinevirtual |
A virtual member to retrieve the value of the design variables.
| [in] | i_DV | - Index of the design variable. |
Reimplemented in CFEAElasticity.
| void CNumerics::GetAdjViscousFlux_Jac | ( | su2double | Pressure_i, |
| su2double | Pressure_j, | ||
| su2double | Density_i, | ||
| su2double | Density_j, | ||
| su2double | ViscDens_i, | ||
| su2double | ViscDens_j, | ||
| const su2double * | Velocity_i, | ||
| const su2double * | Velocity_j, | ||
| su2double | sq_vel_i, | ||
| su2double | sq_vel_j, | ||
| su2double | XiDens_i, | ||
| su2double | XiDens_j, | ||
| su2double ** | Mean_GradPhi, | ||
| const su2double * | Mean_GradPsiE, | ||
| su2double | dPhiE_dn, | ||
| const su2double * | Normal, | ||
| const su2double * | Edge_Vector, | ||
| su2double | dist_ij_2, | ||
| su2double * | val_residual_i, | ||
| su2double * | val_residual_j, | ||
| su2double ** | val_Jacobian_ii, | ||
| su2double ** | val_Jacobian_ij, | ||
| su2double ** | val_Jacobian_ji, | ||
| su2double ** | val_Jacobian_jj, | ||
| bool | implicit | ||
| ) | const |
Compute viscous residual and jacobian.
|
inline |
Obtain information on bounded scalar problem.
| void CNumerics::GetCharJump | ( | su2double | val_soundspeed, |
| su2double | val_density, | ||
| const su2double * | prim_jump, | ||
| su2double * | char_jump | ||
| ) | const |
Computation of the matrix R.
| [in] | val_soundspeed | - value of the sound speed. |
| [in] | val_density | - value of the density. |
| [in] | prim_jump | - pointer to the vector containing the primitive variable jump (drho, dV, dp). |
| [out] | char_jump | - pointer to the vector containing the characteristic variable jump. |
|
inline |
Get the final Roe dissipation factor.
|
inlinevirtual |
A virtual member.
|
inline |
Get the value of the effective intermittency for the transition model.
| [in] | intermittency_eff_i | - Value of the effective intermittency at point i. |
| void CNumerics::GetInviscidIncProjFlux | ( | const su2double * | val_density, |
| const su2double * | val_velocity, | ||
| const su2double * | val_pressure, | ||
| const su2double * | val_betainc2, | ||
| const su2double * | val_enthalpy, | ||
| const su2double * | val_normal, | ||
| su2double * | val_Proj_Flux | ||
| ) | const |
Compute the projected inviscid flux vector for incompresible simulations.
| [in] | val_density | - Pointer to the density. |
| [in] | val_velocity | - Pointer to the velocity. |
| [in] | val_pressure | - Pointer to the pressure. |
| [in] | val_betainc2 | - Value of the artificial compresibility factor. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [out] | val_Proj_Flux | - Pointer to the projected flux. |
| void CNumerics::GetInviscidIncProjJac | ( | const su2double * | val_density, |
| const su2double * | val_velocity, | ||
| const su2double * | val_betainc2, | ||
| const su2double * | val_enthalpy, | ||
| const su2double * | val_dRhodh, | ||
| const su2double * | val_normal, | ||
| su2double | val_scale, | ||
| su2double ** | val_Proj_Jac_Tensor | ||
| ) | const |
Compute the projection of the inviscid Jacobian matrices (overload for low speed preconditioner version).
| [in] | val_density | - Value of the density. |
| [in] | val_velocity | - Pointer to the velocity. |
| [in] | val_betainc2 | - Value of the artificial compresibility factor. |
| [in] | val_enthalpy | - Value of the enthalpy. |
| [in] | val_dRhodh | - Value of the derivative of density w.r.t. enthalpy. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [in] | val_scale | - Scale of the projection. |
| [out] | val_Proj_Jac_tensor | - Pointer to the projected inviscid Jacobian. |
| void CNumerics::GetInviscidIncProjJac | ( | const su2double * | val_density, |
| const su2double * | val_velocity, | ||
| const su2double * | val_betainc2, | ||
| const su2double * | val_normal, | ||
| su2double | val_scale, | ||
| su2double ** | val_Proj_Jac_tensor | ||
| ) |
Compute the projection of the inviscid Jacobian matrices (incompressible).
| [in] | val_density | - Value of the density. |
| [in] | val_velocity | - Pointer to the velocity. |
| [in] | val_betainc2 | - Value of the artificial compresibility factor. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [in] | val_scale | - Scale of the projection. |
| [out] | val_Proj_Jac_tensor | - Pointer to the projected inviscid Jacobian. |
| void CNumerics::GetInviscidProjFlux | ( | const su2double * | val_density, |
| const su2double * | val_velocity, | ||
| const su2double * | val_pressure, | ||
| const su2double * | val_enthalpy, | ||
| const su2double * | val_normal, | ||
| su2double * | val_Proj_Flux | ||
| ) | const |
Compute the projected inviscid flux vector.
| [in] | val_density | - Pointer to the density. |
| [in] | val_velocity | - Pointer to the velocity. |
| [in] | val_pressure | - Pointer to the pressure. |
| [in] | val_enthalpy | - Pointer to the enthalpy. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [out] | val_Proj_Flux | - Pointer to the projected flux. |
| void CNumerics::GetInviscidProjJac | ( | const su2double * | val_velocity, |
| const su2double * | val_energy, | ||
| const su2double * | val_normal, | ||
| su2double | val_scale, | ||
| su2double ** | val_Proj_Jac_tensor | ||
| ) | const |
Compute the projection of the inviscid Jacobian matrices.
| [in] | val_velocity | Pointer to the velocity. |
| [in] | val_energy | Value of the energy. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [in] | val_scale | - Scale of the projection. |
| [out] | val_Proj_Jac_tensor | - Pointer to the projected inviscid Jacobian. |
| void CNumerics::GetInviscidProjJac | ( | const su2double * | val_velocity, |
| const su2double * | val_enthalphy, | ||
| const su2double * | val_chi, | ||
| const su2double * | val_kappa, | ||
| const su2double * | val_normal, | ||
| su2double | val_scale, | ||
| su2double ** | val_Proj_Jac_tensor | ||
| ) | const |
Compute the projection of the inviscid Jacobian matrices for general fluid model.
| [in] | val_velocity | Pointer to the velocity. |
| [in] | val_energy | Value of the energy. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [in] | val_scale | - Scale of the projection. |
| [out] | val_Proj_Jac_tensor | - Pointer to the projected inviscid Jacobian. |
| void CNumerics::GetinvRinvPe | ( | su2double | Beta2, |
| su2double | val_enthalpy, | ||
| su2double | val_soundspeed, | ||
| su2double | val_density, | ||
| const su2double * | val_velocity, | ||
| su2double ** | val_invR_invPe | ||
| ) | const |
Computation of the matrix Rinv*Pe.
| [in] | Beta2 | - A variable in used to define Pe matrix. |
| [in] | val_enthalpy | - value of the enthalpy. |
| [in] | val_soundspeed | - value of the sound speed. |
| [in] | val_density | - value of the density. |
| [in] | val_velocity | - value of the velocity. |
| [out] | val_invR_invPe | - Pointer to the matrix of conversion from entropic to conserved variables. |
| void CNumerics::GetJacInviscidLambda_fabs | ( | const su2double * | val_velocity, |
| su2double | val_soundspeed, | ||
| const su2double * | val_normal, | ||
| su2double * | val_Lambda_Vector | ||
| ) | const |
Computation of the projected inviscid lambda (eingenvalues).
| [in] | val_velocity | - Value of the velocity. |
| [in] | val_soundspeed | - Value of the sound speed. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [in] | val_Lambda_Vector | - Pointer to Lambda matrix. |
| void CNumerics::GetLMatrix | ( | su2double | val_soundspeed, |
| su2double | val_density, | ||
| su2double ** | L_Matrix | ||
| ) | const |
Computation of the matrix R.
| [in] | val_soundspeed | - value of the sound speed. |
| [in] | val_density | - value of the density. |
| [out] | L_Matrix | - Pointer to the matrix of conversion from conserved to entropic variables. |
|
inline |
Computation of the matrix P, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$.
| [in] | density | - Value of the density. |
| [in] | velocity | - Velocity vector. |
| [in] | soundspeed | - Value of the sound speed. |
| [in] | normal | - Normal vector, the norm of the vector is the area of the face. |
| [out] | p_tensor | - P matrix. |
| void CNumerics::GetPMatrix | ( | const su2double * | val_density, |
| const su2double * | val_velocity, | ||
| const su2double * | val_soundspeed, | ||
| const su2double * | val_enthalpy, | ||
| const su2double * | val_chi, | ||
| const su2double * | val_kappa, | ||
| const su2double * | val_normal, | ||
| su2double ** | val_p_tensor | ||
| ) | const |
Computation of the matrix P for a generic fluid model.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| [in] | val_density | - Value of the density. |
| [in] | val_velocity | - Value of the velocity. |
| [in] | val_soundspeed | - Value of the sound speed. |
| [in] | val_enthalpy | - Value of the Enthalpy |
| [in] | val_chi | - Value of the derivative of Pressure with respect to the Density. |
| [in] | val_kappa | - Value of the derivative of Pressure with respect to the volume specific Static Energy. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [out] | val_p_tensor | - Pointer to the P matrix. |
|
inline |
Computation of the matrix P^{-1}, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$.
| [in] | density | - Value of the density. |
| [in] | velocity | - Velocity vector. |
| [in] | soundspeed | - Value of the sound speed. |
| [in] | normal | - Normal vector, the norm of the vector is the area of the face. |
| [out] | inv_p_tensor | - Pointer to inverse of the P matrix. |
| void CNumerics::GetPMatrix_inv | ( | su2double ** | val_invp_tensor, |
| const su2double * | val_density, | ||
| const su2double * | val_velocity, | ||
| const su2double * | val_soundspeed, | ||
| const su2double * | val_chi, | ||
| const su2double * | val_kappa, | ||
| const su2double * | val_normal | ||
| ) | const |
Computation of the matrix P^{-1}, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$.
| [in] | val_density | - Value of the density. |
| [in] | val_velocity | - Value of the velocity. |
| [in] | val_soundspeed | - Value of the sound speed. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [out] | val_invp_tensor | - Pointer to inverse of the P matrix. |
| void CNumerics::GetPreconditionedProjJac | ( | const su2double * | val_density, |
| const su2double * | val_velocity, | ||
| const su2double * | val_betainc2, | ||
| const su2double * | val_normal, | ||
| su2double ** | val_Proj_Jac_Tensor | ||
| ) | const |
Compute the projection of the preconditioned inviscid Jacobian matrices.
| [in] | val_density | - Value of the density. |
| [in] | val_velocity | - Pointer to the velocity. |
| [in] | val_betainc2 | - Value of the artificial compresibility factor. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [out] | val_Proj_Jac_tensor | - Pointer to the projected inviscid Jacobian. |
| void CNumerics::GetPreconditioner | ( | const su2double * | val_density, |
| const su2double * | val_velocity, | ||
| const su2double * | val_betainc2, | ||
| const su2double * | val_enthalpy, | ||
| const su2double * | val_drhodh, | ||
| su2double ** | val_Precon | ||
| ) | const |
Compute the low speed preconditioning matrix.
| [in] | val_density | - Value of the density. |
| [in] | val_velocity | - Pointer to the velocity. |
| [in] | val_betainc2 | - Value of the artificial compresibility factor. |
| [in] | val_enthalpy | - Value of the enthalpy. |
| [in] | val_dRhodh | - Value of the derivative of density w.r.t. enthalpy. |
| [out] | val_Precon | - Pointer to the preconditioning matrix. |
| void CNumerics::GetPrecondJacobian | ( | su2double | Beta2, |
| su2double | r_hat, | ||
| su2double | s_hat, | ||
| su2double | t_hat, | ||
| su2double | rB2a2, | ||
| const su2double * | val_Lambda, | ||
| const su2double * | val_normal, | ||
| su2double ** | val_absPeJac | ||
| ) | const |
Computation of the matrix Td, this matrix diagonalize the preconditioned conservative Jacobians in the form $Tg |Lambda| Td = Pc{-1}|Pc (A.Normal)|$.
| [in] | Beta2 | - A variable in used to define absPeJacobian matrix. |
| [in] | r_hat | - A variable in used to define absPeJacobian matrix. |
| [in] | s_hat | - A variable in used to define absPeJacobian matrix. |
| [in] | t_hat | - A variable in used to define absPeJacobian matrix. |
| [in] | rB2a2 | - A variable in used to define absPeJacobian matrix. |
| [in] | val_Lambda | - Eigenvalues of the Preconditioned Jacobian. |
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
| [out] | val_absPeJac | - Pointer to the Preconditioned Jacobian matrix. |
| void CNumerics::GetPrimitive2Conservative | ( | const su2double * | val_Mean_PrimVar, |
| const su2double * | val_Mean_SecVar, | ||
| su2double ** | val_Jac_PC | ||
| ) | const |
Mapping between primitives variables P and conservatives variables C.
| [in] | val_Mean_PrimVar | - Mean value of the primitive variables. |
| [in] | val_Mean_PrimVar | - Mean Value of the secondary variables. |
| [out] | val_Jac_PC | - Pointer to the Jacobian dPdC. |
| void CNumerics::GetRMatrix | ( | su2double | val_pressure, |
| su2double | val_soundspeed, | ||
| su2double | val_density, | ||
| const su2double * | val_velocity, | ||
| su2double ** | val_invR_invPe | ||
| ) | const |
Computation of the matrix R.
| [in] | val_pressure | - value of the pressure. |
| [in] | val_soundspeed | - value of the sound speed. |
| [in] | val_density | - value of the density. |
| [in] | val_velocity | - value of the velocity. |
| [out] | val_invR_invPe | - Pointer to the matrix of conversion from entropic to conserved variables. |
| void CNumerics::GetRMatrix | ( | su2double | val_soundspeed, |
| su2double | val_density, | ||
| su2double ** | R_Matrix | ||
| ) | const |
Computation of the matrix R.
| [in] | val_soundspeed | - value of the sound speed. |
| [in] | val_density | - value of the density. |
| [out] | R_Matrix | - Pointer to the matrix of conversion from entropic to conserved variables. |
| su2double CNumerics::GetRoe_Dissipation | ( | const su2double | Dissipation_i, |
| const su2double | Dissipation_j, | ||
| const su2double | Sensor_i, | ||
| const su2double | Sensor_j, | ||
| const CConfig * | config | ||
| ) | const |
At its simplest level, this function will calculate the average value of the "Roe dissipation" or central/upwind blending function at a face. If Ducros shock sensors are used, then this method will also adjust the central/upwind blending to account for shocks.
| [in] | Dissipation_i | - Value of the blending function at point i |
| [in] | Dissipation_j | - Value of the bledning function at point j |
| [in] | Sensor_i | - Shock sensor at point i |
| [in] | Sensor_j | - Shock sensor at point j |
| [in] | config | - The configuration of the problem |
Computate the inverse of a 3x3 matrix.
| [in] | matrix | - the matrix to invert |
| [out] | invMatrix | - inverse matrix. |
Computate the inverse of a 4x4 matrix.
| [in] | matrix | - the matrix to invert |
| [out] | invMatrix | - inverse matrix. |
|
inlinevirtual |
A virtual member to set the value of the design variables.
| [in] | i_DV | - Index of the design variable. |
| [in] | val_DV | - Value of the design variable |
Reimplemented in CFEAElasticity.
|
inlinevirtual |
A virtual member to set the electric field.
| [in] | EField_DV | - New electric field computed by adjoint methods. |
Reimplemented in CFEANonlinearElasticity, and CFEAElasticity.
Set the value of the adjoint variable.
| [in] | val_psi_i | - Value of the adjoint variable at point i. |
| [in] | val_psi_j | - Value of the adjoint variable at point j. |
|
inline |
Set the gradient of the adjoint variables.
| [in] | val_psivar_grad_i | - Gradient of the adjoint variable at point i. |
| [in] | val_psivar_grad_j | - Gradient of the adjoint variable at point j. |
|
inline |
Set the gradient of the auxiliary variables.
| [in] | val_auxvar_grad_i | - Gradient of the auxiliary variable at point i. |
| [in] | val_auxvar_grad_j | - Gradient of the auxiliary variable at point j. |
|
inline |
Set the value of AvgVolume Variable.
| [in] | val_avgvolume | AvgVolume Variable. |
Set the value of the beta for incompressible flows.
| [in] | val_betainc2_i | - Value of beta for incompressible flows at point i. |
| [in] | val_betainc2_j | - Value of beta for incompressible flows at point j. |
Set the value of the conservative variables.
| [in] | val_u_i | - Value of the conservative variable at point i. |
| [in] | val_u_j | - Value of the conservative variable at point j. |
|
inline |
Set the gradient of the conservative variables.
| [in] | val_consvar_grad | - Gradient of the conservative variable which is a scalar. |
|
inline |
Set the gradient of the conservative variables.
| [in] | val_consvar_grad_i | - Gradient of the conservative variable at point i. |
| [in] | val_consvar_grad_j | - Gradient of the conservative variable at point j. |
Set coordinates of the points.
| [in] | val_coord_i | - Coordinates of the point i. |
| [in] | val_coord_j | - Coordinates of the point j. |
|
inlinevirtual |
Set the value of the cross diffusion for the SST model.
| [in] | val_CDkw_i | - Value of the cross diffusion at point i. |
Reimplemented in CSourcePieceWise_TurbSST< FlowIndices >.
Set the vib-elec specific heat.
| [in] | val_Cvve_i | - Cvve at i. |
| [in] | val_Cvve_j | - Cvve at j. |
Reimplemented in CNEMONumerics.
Set the value of the density for the incompressible solver.
| [in] | val_densityinc_i | - Value of the pressure at point i. |
| [in] | val_densityinc_j | - Value of the pressure at point j. |
|
inline |
Set the diffusion coefficient.
| [in] | val_diffusioncoeff_i | - Value of the diffusion coefficients at i. |
| [in] | val_diffusioncoeff_j | - Value of the diffusion coefficients at j |
Sets the values of the roe dissipation.
| [in] | diss_i | - Dissipation value at node i |
| [in] | diss_j | - Dissipation value at node j |
Set the value of the distance from the nearest wall.
| [in] | val_dist_i | - Value of of the distance from point i to the nearest wall. |
| [in] | val_dist_j | - Value of of the distance from point j to the nearest wall. |
Set the pressure derivatives.
| [in] | val_dPdU_i | - pressure derivatives at i. |
| [in] | val_dPdU_j | - pressure derivatives at j. |
Reimplemented in CNEMONumerics.
Set the temperature derivatives.
| [in] | val_dTdU_i | - temperature derivatives at i. |
| [in] | val_dTdU_j | - temperature derivatives at j. |
Reimplemented in CNEMONumerics.
|
inlinevirtual |
Set the vib-el temperture derivatives.
| [in] | val_dTvedU_i | - t_ve derivatives at i. |
| [in] | val_dTvedU_j | - t_ve derivatives at j. |
Reimplemented in CNEMONumerics.
|
inline |
Set the eddy viscosity.
| [in] | val_eddy_viscosity_i | - Value of the eddy viscosity at point i. |
| [in] | val_eddy_viscosity_j | - Value of the eddy viscosity at point j. |
Set the value of the enthalpy.
| [in] | val_enthalpy_i | - Value of the enthalpy at point i. |
| [in] | val_enthalpy_j | - Value of the enthalpy at point j. |
Set the vib-elec energy.
| [in] | val_Eve_i | - vib-el energy at i. |
| [in] | val_Eve_j | - vib-el energy at j. |
Reimplemented in CNEMONumerics.
Set the value of the first blending function.
| [in] | val_F1_i | - Value of the first Menter blending function at point i. |
| [in] | val_F1_j | - Value of the first Menter blending function at point j. |
Reimplemented in CSourcePieceWise_TurbSST< FlowIndices >.
|
inlinevirtual |
Set the value of the second blending function.
| [in] | val_F2_i | - Value of the second Menter blending function at point i. |
Reimplemented in CSourcePieceWise_TurbSST< FlowIndices >.
Set the ratio of specific heats.
| [in] | val_Gamma_i | - Gamma at i. |
| [in] | val_Gamma_j | - Gamma at j. |
Reimplemented in CNEMONumerics.
|
inline |
Set the velocity of the computational grid.
| [in] | val_gridvel_i | - Grid velocity of the point i. |
| [in] | val_gridvel_j | - Grid velocity of the point j. |
|
inline |
Set the heat flux due to enthalpy diffusion.
| [in] | val_heatfluxdiffusion | - Value of the heat flux due to enthalpy diffusion. |
|
inline |
Set the value of the intermittency for the LM model.
| [in] | intermittency_i | - Value of the intermittency at point i. |
|
inline |
Set the value of the effective intermittency for the LM model.
| [in] | intermittency_eff_i | - Value of the effective intermittency at point i. |
|
inline |
Set Jacobian of the heat flux due to enthalpy diffusion.
| [in] | val_jacheatfluxdiffusion | - Value of the heat flux jacobian due to enthalpy diffusion. |
Set the value of the spectral radius.
| [in] | val_lambda_i | - Value of the spectral radius at point i. |
| [in] | val_lambda_j | - Value of the spectral radius at point j. |
|
inline |
Set the laminar viscosity.
| [in] | val_laminar_viscosity_i | - Value of the laminar viscosity at point i. |
| [in] | val_laminar_viscosity_j | - Value of the laminar viscosity at point j. |
Set the LES sensor for hybrid RANS-LES methods.
| [in] | val_lesMode_i | - Value of the LES sensor at point i. |
| [in] | val_lesMode_j | - Value of the LES sensor at point j. |
|
inline |
Set the value of the turbulent variable.
| [in] | val_transvar_i | - Value of the turbulent variable at point i. |
|
inline |
SetMassFlux.
| [in] | val_MassFlux | Mass flux across the edge |
|
inlinevirtual |
A virtual member to set the material properties.
| [in] | iVal | - Index of the region of concern |
| [in] | val_Rho | - Value of the density (inertial effects). |
| [in] | val_Rho_DL | - Value of the density (dead load effects). |
Reimplemented in CFEAElasticity.
|
inlinevirtual |
A virtual member to set the material properties.
| [in] | iVal | - Index of the region of concern |
| [in] | val_E | - Value of the Young Modulus. |
| [in] | val_Nu | - Value of the Poisson's ratio. |
Reimplemented in CFEAElasticity.
|
inlinevirtual |
Set the element-based local Young's modulus in mesh problems.
| [in] | iElem | - Element index. |
| [in] | val_E | - Value of elasticity modulus. |
Reimplemented in CFEAElasticity, and CFEAMeshElasticity.
|
inline |
Set the number of neighbor to a point.
| [in] | val_neighbor_i | - Number of neighbor to point i. |
| [in] | val_neighbor_j | - Number of neighbor to point j. |
|
inline |
Set the value of the normal vector to the face between two points.
| [in] | val_normal | - Normal vector, the norm of the vector is the area of the face. |
Set the value of the pressure.
| [in] | val_pressure_i | - Value of the pressure at point i. |
| [in] | val_pressure_j | - Value of the pressure at point j. |
Set the value of the primitive variables.
| [in] | val_v_i | - Value of the primitive variable at point i. |
| [in] | val_v_j | - Value of the primitive variable at point j. |
|
inline |
Set the gradient of the primitive variables.
| [in] | val_primvar_grad_i | - Gradient of the primitive variable at point i. |
| [in] | val_primvar_grad_j | - Gradient of the primitive variable at point j. |
|
inlinevirtual |
Set the value of the radiation variable.
| [in] | val_radvar_i | - Value of the turbulent variable at point i. |
| [in] | val_radvar_j | - Value of the turbulent variable at point j. |
Reimplemented in CNumericsRadiation.
|
inlinevirtual |
Set the gradient of the radiation variables.
| [in] | val_radvar_grad_i | - Gradient of the turbulent variable at point i. |
| [in] | val_radvar_grad_j | - Gradient of the turbulent variable at point j. |
Reimplemented in CNumericsRadiation.
|
inline |
Set the gradient of the radiation variables.
| [in] | val_radvar_source | - Source term (and jacobian term) of the radiative heat transfer. |
Set the value of the roughness from the nearest wall.
| [in] | val_dist_i | - Value of of the roughness of the nearest wall from point i |
| [in] | val_dist_j | - Value of of the roughness of the nearest wall from point j |
|
inline |
Set the sensor to locate the box where the Stochastic Backscatter Model is active.
| [in] | val_sbsInBox_i | - 1 if point i lies inside the box where the model is active. |
|
inline |
Set the value of the scalar variable.
| [in] | val_scalarvar_i | - Value of the scalar variable at point i. |
| [in] | val_scalarvar_j | - Value of the scalar variable at point j. |
|
inline |
Set the gradient of the scalar variables.
| [in] | val_scalarvar_grad_i | - Gradient of the scalar variable at point i. |
| [in] | val_scalarvar_grad_j | - Gradient of the scalar variable at point j. |
Set the value of the primitive variables.
| [in] | val_v_i | - Value of the primitive variable at point i. |
| [in] | val_v_j | - Value of the primitive variable at point j. |
Set the value of the pressure sensor.
| [in] | val_sensor_i | Pressure sensor at point i. |
| [in] | val_sensor_j | Pressure sensor at point j. |
Set the value of the sound speed.
| [in] | val_soundspeed_i | - Value of the sound speed at point i. |
| [in] | val_soundspeed_j | - Value of the sound speed at point j. |
|
inline |
Set the specifc heat c_p.
| [in] | val_specific_heat_i | - Value of the specific heat at point i. |
| [in] | val_specific_heat_j | - Value of the specific heat at point j. |
|
inline |
Set the stochastic source term for the Langevin equations (Backscatter Model).
| [in] | val_stoch_source | - Value of stochastic source term. |
| [in] | iDim | - Index of Langevin equation. |
|
inline |
Set the stochastic variables from Langevin equations (Stochastic Backscatter Model).
| [in] | val_stochvar_i | - Value of the stochastic variable at point i. |
| [in] | val_stochvar_j | - Value of the stochastic variable at point j. |
| [in] | iDim | - Index of Langevin equation. |
Set the value of the rate of strain magnitude.
| [in] | val_StrainMag_i | - Value of the magnitude of rate of strain at point i. |
| [in] | val_StrainMag_j | - Value of the magnitude of rate of strain at point j. |
|
inlinevirtual |
Set massflow, heatflow & inlet temperature for streamwise periodic flow.
| [in] | SolverSPvals | - Struct holding the values. |
Reimplemented in CSourceBase_Flow.
|
inlinevirtual |
Set the value of the Tauwall.
| [in] | val_tauwall_i | - Tauwall at point i |
| [in] | val_tauwall_j | - Tauwall at point j |
Reimplemented in CAvgGrad_Base.
|
inline |
Set the thermal conductivity (translational/rotational)
| [in] | val_thermal_conductivity_i | - Value of the thermal conductivity at point i. |
| [in] | val_thermal_conductivity_j | - Value of the thermal conductivity at point j. |
| [in] | iSpecies | - Value of the species. |
|
inline |
Set the thermal conductivity (translational/rotational)
| [in] | val_thermal_conductivity_i | - Value of the thermal conductivity at point i. |
| [in] | val_thermal_conductivity_j | - Value of the thermal conductivity at point j. |
| [in] | iSpecies | - Value of the species. |
|
inline |
Set the time step.
| [in] | val_timestep | - Value of the time step. |
|
inline |
Set the value of the turbulent variable.
| [in] | val_transvar_i | - Value of the turbulent variable at point i. |
| [in] | val_transvar_j | - Value of the turbulent variable at point j. |
|
inline |
Set the gradient of the turbulent variables.
| [in] | val_turbvar_grad_i | - Gradient of the turbulent variable at point i. |
| [in] | val_turbvar_grad_j | - Gradient of the turbulent variable at point j. |
|
inline |
Set the gradient of the adjoint turbulent variables.
| [in] | val_turbpsivar_grad_i | - Gradient of the adjoint turbulent variable at point i. |
| [in] | val_turbpsivar_grad_j | - Gradient of the adjoint turbulent variable at point j. |
|
inline |
Set the value of the adjoint turbulent variable.
| [in] | val_turbpsivar_i | - Value of the adjoint turbulent variable at point i. |
| [in] | val_turbpsivar_j | - Value of the adjoint turbulent variable at point j. |
Set the turbulent kinetic energy.
| [in] | val_turb_ke_i | - Value of the turbulent kinetic energy at point i. |
| [in] | val_turb_ke_j | - Value of the turbulent kinetic energy at point j. |
|
inline |
Set the value of undivided laplacian.
| [in] | val_und_lapl_i | Undivided laplacian at point i. |
| [in] | val_und_lapl_j | Undivided laplacian at point j. |
|
inline |
Set the freestream velocity square.
| [in] | SetVelocity2_Inf | - Value of the square of the freestream velocity. |
|
inline |
Set the value of the volume of the control volume.
| [in] | val_volume | Volume of the control volume. |
|
inline |
Set the value of the vorticity.
| [in] | val_vorticity | - Value of the vorticity. |
|
protected |
Area of the face i-j.
|
protected |
Gradient of an auxiliary variable at point i.
|
protected |
Gradient of an auxiliary variable at point i.
|
protected |
Average of the control Volume around point i for vorticity confinement parameter correction.
|
protected |
Beta incompressible at point i.
|
protected |
Beta incompressible at point j.
|
protected |
Flag for bounded scalar problem.
|
protected |
Gradient of conservative variables which is a scalar.
|
protected |
Gradient of conservative variables at point i.
|
protected |
Gradient of conservative variables at point j.
|
protected |
Cartesians coordinates of point i.
|
protected |
Cartesians coordinates of point j.
|
protected |
Cp at point i.
|
protected |
Cp at point j.
|
protected |
Identity matrix.
|
protected |
Density at point i.
|
protected |
Density at point j.
|
protected |
Incompressible density at point i.
|
protected |
Incompressible density at point j.
|
protected |
Species diffusion coefficients at point i.
|
protected |
Species diffusion coefficients at point j.
|
protected |
|
protected |
|
protected |
Dissipation.
|
protected |
Distance of point i to the nearest wall.
|
protected |
Distance of point j to the nearest wall.
|
protected |
Eddy viscosity at point i.
|
protected |
Eddy viscosity at point j.
|
protected |
Component towards which perturbation is perfromed.
|
protected |
Flag for multicomponent and reacting flow
|
protected |
Enthalpy at point i.
|
protected |
Enthalpy at point j.
|
protected |
Fluid's Gamma constant (ratio of specific heats).
|
protected |
Fluids's Gamma - 1.0 .
|
protected |
Gas constant.
|
protected |
Grid velocity at point i.
|
protected |
Grid velocity at point j.
|
protected |
Heat flux due to enthalpy diffusion for multicomponent.
|
protected |
effective intermittency at point i.
|
protected |
intermittency at point i.
|
protected |
Heat flux jacobian due to enthalpy diffusion for multicomponent.
|
protected |
Spectral radius at point i.
|
protected |
Spectral radius at point j.
|
protected |
Laminar viscosity at point i.
|
protected |
Laminar viscosity at point j.
|
protected |
LES sensor at point i for hybrid RANS-LES methods.
|
protected |
LES sensor at point j for hybrid RANS-LES methods.
|
protected |
Local grid length at point i.
|
protected |
Mass flux across edge.
|
staticconstexprprotected |
Max number of space dimensions, used in some static arrays.
|
protected |
Perturbed Reynolds stress tensor
|
protected |
Free stream Mach number .
|
protected |
|
protected |
Number of neighbors of the point i.
|
protected |
Number of neighbors of the point j.
|
protected |
Flag for NEMO problems
|
protected |
Normal vector, its norm is the area of the face.
|
protected |
Number of dimensions and variables.
|
protected |
Turbulent Prandtl's number.
|
protected |
Pressure at point i.
|
protected |
Pressure at point j.
|
protected |
Gradient of primitive variables at point i.
|
protected |
Gradient of primitive variables at point j.
|
protected |
Flux tensor projected in a direction.
|
protected |
Vector of adjoint variables at point i.
|
protected |
Vector of adjoint variables at point j.
|
protected |
Gradient of adjoint variables at point i.
|
protected |
Gradient of adjoint variables at point j.
|
protected |
Source term from the radiative heat transfer equation.
|
protected |
Roughness of the wall nearest to point i.
|
protected |
Roughness of the wall nearest to point j.
|
protected |
Vector of secondary variables at point i.
|
protected |
Vector of secondary variables at point j.
|
protected |
Sensor to assess if point i lies inside the box where the Stochastic Backscatter Model is active.
|
protected |
Gradient of scalar variables at point i.
|
protected |
Gradient of scalar variables at point j.
|
protected |
Vector of scalar variables at point i.
|
protected |
Vector of scalar variables at point j.
|
protected |
Pressure sensor at point i.
|
protected |
Pressure sensor at point j.
|
protected |
Sound speed at point i.
|
protected |
Sound speed at point j.
|
protected |
additional options for the SST turbulence model
|
protected |
Stochastic contribution to Reynolds stress tensor for Backscatter Model.
|
protected |
Source term for Langevin equations in Stochastic Backscatter Model.
|
protected |
Stochastic variables at point i for Stochastic Backscatter Model.
|
protected |
Stochastic variables at point j for Stochastic Backscatter Model.
|
protected |
|
protected |
Strain rate magnitude.
|
protected |
Viscous stress tensor.
|
protected |
Thermal conductivity at point i.
|
protected |
Thermal conductivity at point j.
|
protected |
vibrational-electronic Thermal conductivity at point i.
|
protected |
vibrational-electronic Thermal conductivity at point j.
|
protected |
Time step useful in dual time method.
|
protected |
Gradient of turbulent variables at point i.
|
protected |
Gradient of turbulent variables at point j.
|
protected |
Vector of turbulent variables at point i.
|
protected |
Vector of turbulent variables at point j.
|
protected |
Turbulent kinetic energy at point i.
|
protected |
Turbulent kinetic energy at point j.
|
protected |
Gradient of adjoint turbulent variables at point i.
|
protected |
Gradient of adjoint turbulent variables at point j.
|
protected |
Vector of adjoint turbulent variables at point i.
|
protected |
Vector of adjoint turbulent variables at point j.
|
protected |
Vector of conservative variables at point i.
|
protected |
Vector of conservative variables at point j.
|
protected |
Undivided laplacians at point i.
|
protected |
Undivided laplacians at point j.
|
protected |
Magnitude of perturbation.
|
protected |
Flag for eigenvector permutation.
|
protected |
Under-relaxation factor for numerical stability.
|
protected |
Vector of primitive variables at point i.
|
protected |
Vector of primitive variables at point j.
|
protected |
value of the square of freestream speed.
|
protected |
Volume of the control volume around point i.
|
protected |
|
protected |
Vorticity.
|
protected |
Wind gust at point i.
|
protected |
Wind gust at point j.