SU2
Public Member Functions | Public Attributes | Protected Attributes | List of all members
CNumerics Class Reference

Class for defining the numerical methods. More...

#include <numerics_structure.hpp>

Inheritance diagram for CNumerics:
CAvgGrad_AdjFlow CAvgGrad_AdjTurb CAvgGrad_Flow CAvgGrad_TransLM CAvgGrad_TurbML CAvgGrad_TurbSA CAvgGrad_TurbSA_Neg CAvgGrad_TurbSST CAvgGradArtComp_AdjFlow CAvgGradArtComp_Flow CAvgGradCorrected_AdjFlow CAvgGradCorrected_AdjTurb CAvgGradCorrected_Flow CAvgGradCorrected_TransLM CAvgGradCorrected_TurbML CAvgGradCorrected_TurbSA CAvgGradCorrected_TurbSA_Neg CAvgGradCorrected_TurbSST CAvgGradCorrectedArtComp_AdjFlow CAvgGradCorrectedArtComp_Flow CCentJST_AdjFlow CCentJST_Flow CCentJST_KE_Flow CCentJSTArtComp_AdjFlow CCentJSTArtComp_Flow CCentLax_AdjFlow CCentLax_Flow CCentLaxArtComp_AdjFlow CCentLaxArtComp_Flow CConvective_Template CFEM_Elasticity CGalerkin_Flow CGeneralAvgGrad_Flow CGeneralAvgGradCorrected_Flow CSource_Template CSourceAxisymmetric_AdjFlow CSourceAxisymmetric_Flow CSourceConservative_AdjFlow CSourceConservative_AdjTurb CSourceGravity CSourceNothing CSourcePieceWise_AdjTurb CSourcePieceWise_TransLM CSourcePieceWise_TurbSA CSourcePieceWise_TurbSA_Neg CSourcePieceWise_TurbSST CSourceRotatingFrame_AdjFlow CSourceRotatingFrame_Flow CSourceViscous_AdjFlow CSourceWindGust CUpwArtComp_Flow CUpwAUSM_Flow CUpwCUSP_Flow CUpwGeneralHLLC_Flow CUpwGeneralRoe_Flow CUpwHLLC_Flow CUpwLin_AdjTurb CUpwLin_TransLM CUpwMSW_Flow CUpwRoe_AdjFlow CUpwRoe_Flow CUpwRoeArtComp_AdjFlow CUpwSca_AdjTurb CUpwSca_TransLM CUpwSca_TurbML CUpwSca_TurbSA CUpwSca_TurbSST CUpwTurkel_Flow CViscous_Template

Public Member Functions

 CNumerics (void)
 Constructor of the class.
 
 CNumerics (unsigned short val_nDim, unsigned short val_nVar, CConfig *config)
 
virtual ~CNumerics (void)
 Destructor of the class.
 
su2double Determinant_3x3 (su2double A00, su2double A01, su2double A02, su2double A10, su2double A11, su2double A12, su2double A20, su2double A21, su2double A22)
 Compute the determinant of a 3 by 3 matrix. More...
 
void SetPastSol (su2double *val_u_nM1, su2double *val_u_n, su2double *val_u_nP1)
 Set the solution at different times. More...
 
void SetPastVolume (su2double val_volume_nM1, su2double val_volume_n, su2double val_volume_nP1)
 Set the control volume at different times. More...
 
void SetTimeStep (su2double val_timestep)
 Set the time step. More...
 
virtual su2double GetPrecond_Beta ()
 Get the Preconditioning Beta. More...
 
void SetVelocity2_Inf (su2double val_velocity2)
 Set the freestream velocity square. More...
 
void SetVorticity (su2double *val_vorticity_i, su2double *val_vorticity_j)
 Set the value of the vorticity. More...
 
void SetStrainMag (su2double val_strainmag_i, su2double val_strainmag_j)
 Set the value of the rate of strain magnitude. More...
 
void SetConservative (su2double *val_u_i, su2double *val_u_j)
 Set the value of the conservative variables. More...
 
void SetConservative_ZeroOrder (su2double *val_u_i, su2double *val_u_j)
 Set the value of the conservative variables withour reconstruction. More...
 
void SetPrimitive (su2double *val_v_i, su2double *val_v_j)
 Set the value of the primitive variables. More...
 
void SetSecondary (su2double *val_s_i, su2double *val_s_j)
 Set the value of the primitive variables. More...
 
void SetConservative (su2double *val_u_0, su2double *val_u_1, su2double *val_u_2)
 Set the value of the conservative variables. More...
 
void SetConservative (su2double *val_u_0, su2double *val_u_1, su2double *val_u_2, su2double *val_u_3)
 Set the value of the conservative variables. More...
 
void SetConsVarGradient (su2double **val_consvar_grad_i, su2double **val_consvar_grad_j)
 Set the gradient of the conservative variables. More...
 
void SetConsVarGradient (su2double **val_consvar_grad_0, su2double **val_consvar_grad_1, su2double **val_consvar_grad_2)
 Set the gradient of the conservative variables. More...
 
void SetConsVarGradient (su2double **val_consvar_grad_0, su2double **val_consvar_grad_1, su2double **val_consvar_grad_2, su2double **val_consvar_grad_3)
 Set the gradient of the conservative variables. More...
 
void SetConsVarGradient (su2double **val_consvar_grad)
 Set the gradient of the conservative variables. More...
 
void SetPrimVarGradient (su2double **val_primvar_grad_i, su2double **val_primvar_grad_j)
 Set the gradient of the primitive variables. More...
 
void SetPrimVarLimiter (su2double *val_primvar_lim_i, su2double *val_primvar_lim_j)
 Set the Limiter of the primitive variables. More...
 
void SetAdjointVar (su2double *val_psi_i, su2double *val_psi_j)
 Set the value of the adjoint variable. More...
 
void SetAdjointVarGradient (su2double **val_psivar_grad_i, su2double **val_psivar_grad_j)
 Set the gradient of the adjoint variables. More...
 
void SetAdjointVarLimiter (su2double *val_psivar_lim_i, su2double *val_psivar_lim_j)
 Set the limiter of the adjoint variables. More...
 
void SetTurbVar (su2double *val_turbvar_i, su2double *val_turbvar_j)
 Set the value of the turbulent variable. More...
 
void SetTransVar (su2double *val_transvar_i, su2double *val_transvar_j)
 Set the value of the turbulent variable. More...
 
void SetTurbVarGradient (su2double **val_turbvar_grad_i, su2double **val_turbvar_grad_j)
 Set the gradient of the turbulent variables. More...
 
void SetTransVarGradient (su2double **val_transvar_grad_i, su2double **val_transvar_grad_j)
 Set the gradient of the turbulent variables. More...
 
void SetTurbAdjointVar (su2double *val_turbpsivar_i, su2double *val_turbpsivar_j)
 Set the value of the adjoint turbulent variable. More...
 
void SetTurbAdjointGradient (su2double **val_turbpsivar_grad_i, su2double **val_turbpsivar_grad_j)
 Set the gradient of the adjoint turbulent variables. More...
 
virtual void SetF1blending (su2double val_F1_i, su2double val_F1_j)
 Set the value of the first blending function. More...
 
virtual void SetF2blending (su2double val_F1_i, su2double val_F1_j)
 Set the value of the second blending function. More...
 
virtual void SetCrossDiff (su2double val_CDkw_i, su2double val_CDkw_j)
 Set the value of the cross diffusion for the SST model. More...
 
void SetAuxVarGrad (su2double *val_auxvargrad_i, su2double *val_auxvargrad_j)
 Set the gradient of the auxiliary variables. More...
 
void SetDiffusionCoeff (su2double *val_diffusioncoeff_i, su2double *val_diffusioncoeff_j)
 Set the diffusion coefficient. More...
 
void SetLaminarViscosity (su2double val_laminar_viscosity_i, su2double val_laminar_viscosity_j)
 Set the laminar viscosity. More...
 
void SetThermalConductivity (su2double val_thermal_conductivity_i, su2double val_thermal_conductivity_j)
 Set the thermal conductivity (translational/rotational) More...
 
void SetThermalConductivity_ve (su2double val_thermal_conductivity_ve_i, su2double val_thermal_conductivity_ve_j)
 Set the thermal conductivity (translational/rotational) More...
 
void SetEddyViscosity (su2double val_eddy_viscosity_i, su2double val_eddy_viscosity_j)
 Set the eddy viscosity. More...
 
void SetTurbKineticEnergy (su2double val_turb_ke_i, su2double val_turb_ke_j)
 Set the turbulent kinetic energy. More...
 
void SetDistance (su2double val_dist_i, su2double val_dist_j)
 Set the value of the distance from the nearest wall. More...
 
void SetCoord (su2double *val_coord_i, su2double *val_coord_j)
 Set coordinates of the points. More...
 
void SetCoord (su2double *val_coord_0, su2double *val_coord_1, su2double *val_coord_2)
 
void SetCoord (su2double *val_coord_0, su2double *val_coord_1, su2double *val_coord_2, su2double *val_coord_3)
 
void SetGridVel (su2double *val_gridvel_i, su2double *val_gridvel_j)
 Set the velocity of the computational grid. More...
 
void SetWindGust (su2double *val_windgust_i, su2double *val_windgust_j)
 Set the wind gust value. More...
 
void SetWindGustDer (su2double *val_windgustder_i, su2double *val_windgustder_j)
 Set the wind gust derivatives values. More...
 
void SetPressure (su2double val_pressure_i, su2double val_pressure_j)
 Set the value of the pressure. More...
 
void SetDensity (su2double val_densityinc_i, su2double val_densityinc_j)
 Set the value of the density for the incompressible solver. More...
 
void SetBetaInc2 (su2double val_betainc2_i, su2double val_betainc2_j)
 Set the value of the beta for incompressible flows. More...
 
void SetSoundSpeed (su2double val_soundspeed_i, su2double val_soundspeed_j)
 Set the value of the sound speed. More...
 
void SetTemperature (su2double val_temp_i, su2double val_temp_j)
 Set the value of the temperature. More...
 
void SetEnthalpy (su2double val_enthalpy_i, su2double val_enthalpy_j)
 Set the value of the enthalpy. More...
 
void SetLambda (su2double val_lambda_i, su2double val_lambda_j)
 Set the value of the spectral radius. More...
 
void SetUndivided_Laplacian (su2double *val_und_lapl_i, su2double *val_und_lapl_j)
 Set the value of undivided laplacian. More...
 
void SetSensor (su2double val_sensor_i, su2double val_sensor_j)
 Set the value of the pressure sensor. More...
 
void SetNeighbor (unsigned short val_neighbor_i, unsigned short val_neighbor_j)
 Set the number of neighbor to a point. More...
 
void SetNormal (su2double *val_normal)
 Set the value of the normal vector to the face between two points. More...
 
void SetVolume (su2double val_volume)
 Set the value of the volume of the control volume. More...
 
void SetRhosIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetRhoIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetPIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetTIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetTveIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetVelIndex (unsigned short val_Index)
 Retrieves the value of the velocity index in the primitive variable vector. More...
 
void SetHIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetAIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetRhoCvtrIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetRhoCvveIndex (unsigned short val_Index)
 Retrieves the value of the species density in the primitive variable vector. More...
 
void SetdPdU (su2double *val_dPdU_i, su2double *val_dPdU_j)
 Sets the value of the derivative of pressure w.r.t. species density. More...
 
void SetdTdU (su2double *val_dTdU_i, su2double *val_dTdU_j)
 Sets the value of the derivative of temperature w.r.t. species density. More...
 
void SetdTvedU (su2double *val_dTvedU_i, su2double *val_dTvedU_j)
 Sets the value of the derivative of vib-el. temperature w.r.t. species density. More...
 
void GetInviscidFlux (su2double val_density, su2double *val_velocity, su2double val_pressure, su2double val_enthalpy)
 Get the inviscid fluxes. More...
 
void GetViscousFlux (su2double *val_primvar, su2double **val_gradprimvar, su2double val_laminar_viscosity, su2double val_eddy_viscosity, su2double val_mach_inf)
 Get the viscous fluxes. More...
 
void GetInviscidProjFlux (su2double *val_density, su2double *val_velocity, su2double *val_pressure, su2double *val_enthalpy, su2double *val_normal, su2double *val_Proj_Flux)
 Compute the projected inviscid flux vector. More...
 
void GetInviscidArtCompProjFlux (su2double *val_density, su2double *val_velocity, su2double *val_pressure, su2double *val_betainc2, su2double *val_normal, su2double *val_Proj_Flux)
 Compute the projected inviscid flux vector for incompresible simulations. More...
 
void GetViscousProjFlux (su2double *val_primvar, su2double **val_gradprimvar, su2double val_turb_ke, su2double *val_normal, su2double val_laminar_viscosity, su2double val_eddy_viscosity)
 Compute the projection of the viscous fluxes into a direction. More...
 
void GetViscousProjFlux (su2double *val_primvar, su2double **val_gradprimvar, su2double val_turb_ke, su2double *val_normal, su2double val_laminar_viscosity, su2double val_eddy_viscosity, su2double val_thermal_conductivity, su2double val_heat_capacity_cp)
 Compute the projection of the viscous fluxes into a direction for general fluid model. More...
 
void GetViscousArtCompProjFlux (su2double **val_gradprimvar, su2double *val_normal, su2double val_laminar_viscosity, su2double val_eddy_viscosity)
 
void GetInviscidProjJac (su2double *val_velocity, su2double *val_energy, su2double *val_normal, su2double val_scale, su2double **val_Proj_Jac_tensor)
 Compute the projection of the inviscid Jacobian matrices. More...
 
void GetInviscidArtCompProjJac (su2double *val_density, su2double *val_velocity, su2double *val_betainc2, su2double *val_normal, su2double val_scale, su2double **val_Proj_Jac_tensor)
 Compute the projection of the inviscid Jacobian matrices (artificial compresibility). More...
 
void GetInviscidProjJac (su2double *val_velocity, su2double *val_enthalphy, su2double *val_chi, su2double *val_kappa, su2double *val_normal, su2double val_scale, su2double **val_Proj_Jac_tensor)
 Compute the projection of the inviscid Jacobian matrices for general fluid model. More...
 
void GetViscousProjJacs (su2double *val_Mean_PrimVar, su2double val_laminar_viscosity, su2double val_eddy_viscosity, su2double val_dist_ij, su2double *val_normal, su2double val_dS, su2double *val_Proj_Visc_Flux, su2double **val_Proj_Jac_Tensor_i, su2double **val_Proj_Jac_Tensor_j)
 TSL-Approximation of Viscous NS Jacobians. More...
 
void GetViscousProjJacs (su2double *val_Mean_PrimVar, su2double **val_gradprimvar, su2double *val_Mean_SecVar, su2double val_laminar_viscosity, su2double val_eddy_viscosity, su2double val_thermal_conductivity, su2double val_heat_capacity_cp, su2double val_dist_ij, su2double *val_normal, su2double val_dS, su2double *val_Proj_Visc_Flux, su2double **val_Proj_Jac_Tensor_i, su2double **val_Proj_Jac_Tensor_j)
 TSL-Approximation of Viscous NS Jacobians for arbitrary equations of state. More...
 
void GetPrimitive2Conservative (su2double *val_Mean_PrimVar, su2double *val_Mean_SecVar, su2double **val_Jac_PC)
 Mapping between primitives variables P and conservatives variables C. More...
 
void GetViscousArtCompProjJacs (su2double val_laminar_viscosity, su2double val_eddy_viscosity, su2double val_dist_ij, su2double *val_normal, su2double val_dS, su2double **val_Proj_Jac_Tensor_i, su2double **val_Proj_Jac_Tensor_j)
 Compute the projection of the viscous Jacobian matrices. More...
 
void GetPMatrix (su2double *val_density, su2double *val_velocity, su2double *val_soundspeed, su2double *val_enthalpy, su2double *val_chi, su2double *val_kappa, su2double *val_normal, su2double **val_p_tensor)
 Computation of the matrix P for a generic fluid model. More...
 
void GetPMatrix (su2double *val_density, su2double *val_velocity, su2double *val_soundspeed, su2double *val_normal, su2double **val_p_tensor)
 Computation of the matrix P, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$. More...
 
void GetinvRinvPe (su2double Beta2, su2double val_enthalpy, su2double val_soundspeed, su2double val_density, su2double *val_velocity, su2double **val_invR_invPe)
 Computation of the matrix Rinv*Pe. More...
 
void GetRMatrix (su2double val_pressure, su2double val_soundspeed, su2double val_density, su2double *val_velocity, su2double **val_invR_invPe)
 Computation of the matrix R. More...
 
void GetRMatrix (su2double val_soundspeed, su2double val_density, su2double *val_normal, su2double **R_Matrix)
 Computation of the matrix R. More...
 
void GetLMatrix (su2double val_soundspeed, su2double val_density, su2double *val_normal, su2double **L_Matrix)
 Computation of the matrix R. More...
 
void GetPrecondJacobian (su2double Beta2, su2double r_hat, su2double s_hat, su2double t_hat, su2double rB2a2, su2double *val_Lambda, su2double *val_normal, su2double **val_absPeJac)
 Computation of the matrix Td, this matrix diagonalize the preconditioned conservative Jacobians in the form $Tg |Lambda| Td = Pc{-1}|Pc (A.Normal)|$. More...
 
void GetPArtCompMatrix (su2double *val_density, su2double *val_velocity, su2double *val_betainv2, su2double *val_normal, su2double **val_p_tensor)
 Computation of the matrix P (artificial compresibility), this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$. More...
 
void GetPMatrix_inv (su2double **val_invp_tensor, su2double *val_density, su2double *val_velocity, su2double *val_soundspeed, su2double *val_chi, su2double *val_kappa, su2double *val_normal)
 Computation of the matrix P^{-1}, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$. More...
 
void GetPMatrix_inv (su2double *val_density, su2double *val_velocity, su2double *val_soundspeed, su2double *val_normal, su2double **val_invp_tensor)
 Computation of the matrix P^{-1}, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$. More...
 
void GetPArtCompMatrix_inv (su2double *val_density, su2double *val_velocity, su2double *val_betainv2, su2double *val_normal, su2double **val_invp_tensor)
 Computation of the matrix P^{-1} (artificial compresibility), this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$. More...
 
void GetAdjViscousFlux_Jac (su2double Pressure_i, su2double Pressure_j, su2double Density_i, su2double Density_j, su2double ViscDens_i, su2double ViscDens_j, su2double *Velocity_i, su2double *Velocity_j, su2double sq_vel_i, su2double sq_vel_j, su2double XiDens_i, su2double XiDens_j, su2double **Mean_GradPhi, su2double *Mean_GradPsiE, su2double dPhiE_dn, su2double *Normal, 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)
 Compute viscous residual and jacobian.
 
void GetJacInviscidLambda_fabs (su2double *val_velocity, su2double val_soundspeed, su2double *val_normal, su2double *val_Lambda_Vector)
 Computation of the projected inviscid lambda (eingenvalues). More...
 
virtual void ComputeResidual (su2double *val_residual, CConfig *config)
 Compute the numerical residual. More...
 
virtual void ComputeResidual (su2double *val_residual_i, su2double *val_residual_j)
 
virtual void ComputeResidual_TransLM (su2double *val_residual, su2double **val_Jacobian_i, su2double **val_Jacobian_j, CConfig *config, su2double &gamma_sep)
 
virtual void ComputeResidual (su2double *val_residual_i, su2double *val_residual_j, CConfig *config)
 
virtual void ComputeResidual (su2double *val_residual, su2double **val_Jacobian_i, su2double **val_Jacobian_j, CConfig *config)
 
virtual void ComputeResidual (su2double *val_residual, su2double **val_Jacobian_i, su2double **val_Jacobian_j, su2double **val_JacobianMeanFlow_i, su2double **val_JacobianMeanFlow_j, CConfig *config)
 
virtual void ComputeResidual (su2double **val_Jacobian_i, su2double **val_Jacobian_j, 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_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_stiffmatrix_elem, CConfig *config)
 
virtual void ComputeResidual (su2double *val_residual, su2double **val_Jacobian_i, CConfig *config)
 
virtual void GetEq_Rxn_Coefficients (su2double **EqnRxnConstants, CConfig *config)
 
virtual void ComputeResidual_Axisymmetric (su2double *val_residual, CConfig *config)
 Residual for source term integration. More...
 
virtual void ComputeResidual_Axisymmetric_ad (su2double *val_residual, su2double *val_residuald, CConfig *config)
 Residual for source term integration. More...
 
virtual void SetJacobian_Axisymmetric (su2double **val_Jacobian_i, CConfig *config)
 Calculation of axisymmetric source term Jacobian. More...
 
virtual void ComputeVibRelaxation (su2double *val_residual, su2double **val_Jacobian_i, CConfig *config)
 Calculation of the translational-vibrational energy exchange source term. More...
 
virtual void ComputeChemistry (su2double *val_residual, su2double **val_Jacobian_i, CConfig *config)
 Calculation of the chemistry source term. More...
 
virtual void GetKeqConstants (su2double *A, unsigned short val_reaction, CConfig *config)
 Calculates constants used for Keq correlation. More...
 
virtual void SetIntermittency (su2double intermittency_in)
 Set intermittency for numerics (used in SA with LM transition model)
 
virtual void SetProduction (su2double val_production)
 Residual for source term integration. More...
 
virtual void SetDestruction (su2double val_destruction)
 Residual for source term integration. More...
 
virtual void SetCrossProduction (su2double val_crossproduction)
 Residual for source term integration. More...
 
virtual su2double GetProduction (void)
 Residual for source term integration. More...
 
virtual su2double GetDestruction (void)
 Residual for source term integration. More...
 
virtual su2double GetCrossProduction (void)
 Residual for source term integration. More...
 
virtual void ComputeResidual (su2double **val_Jacobian_i, su2double *val_Jacobian_mui, su2double ***val_Jacobian_gradi, CConfig *config)
 
virtual void ComputeResidual (su2double **val_Jacobian_i, su2double *val_Jacobian_mui, su2double ***val_Jacobian_gradi, su2double **val_Jacobian_j, su2double *val_Jacobian_muj, su2double ***val_Jacobian_gradj, CConfig *config)
 
virtual void Compute_Tangent_Matrix (CElement *element_container, CConfig *config)
 A virtual member to compute the tangent matrix in structural problems. More...
 
virtual void Compute_MeanDilatation_Term (CElement *element_container, CConfig *config)
 A virtual member to compute the pressure term in incompressible or nearly-incompressible structural problems. More...
 
virtual void Compute_NodalStress_Term (CElement *element_container, CConfig *config)
 A virtual member to compute the nodal stress term in non-linear structural problems. More...
 
virtual void Compute_Plane_Stress_Term (CElement *element_container, CConfig *config)
 A virtual member to compute the plane stress term in an element for nonlinear structural problems. More...
 
virtual void Compute_Constitutive_Matrix (CElement *element_container, CConfig *config)
 A virtual member to compute the constitutive matrix in an element for structural problems. More...
 
virtual void Compute_Stress_Tensor (CElement *element_container, CConfig *config)
 A virtual member to compute the stress tensor in an element for structural problems. More...
 
virtual void Compute_Mass_Matrix (CElement *element_container, CConfig *config)
 A virtual member to compute the mass matrix. More...
 
virtual void Compute_Dead_Load (CElement *element_container, CConfig *config)
 A virtual member to compute the residual component due to dead loads. More...
 
virtual void Compute_Averaged_NodalStress (CElement *element_container, CConfig *config)
 A virtual member to compute the averaged nodal stresses. More...
 
void CreateBasis (su2double *val_Normal)
 Computes a basis of orthogonal vectors from a suppled vector. More...
 

Public Attributes

su2double ** Flux_Tensor
 Flux tensor (used for viscous and inviscid purposes.
 
su2double * Proj_Flux_Tensor
 Flux tensor projected in a direction.
 
su2double ** tau
 Viscous stress tensor.
 
su2double ** delta
 Identity matrix.
 
su2double * Diffusion_Coeff_i
 Species diffusion coefficients at point i.
 
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 Laminar_Viscosity_id
 Variation of laminar viscosity at point i.
 
su2double Laminar_Viscosity_jd
 Variation of 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
 Thermal conductivity at point i.
 
su2double Thermal_Conductivity_ve_j
 Thermal conductivity at point j.
 
su2double Cp_i
 Cp at point i.
 
su2double Cp_j
 Cp at point j.
 
su2double * Theta_v
 Characteristic vibrational temperature.
 
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 Pressure_i
 Pressure at point i.
 
su2double Pressure_j
 Pressure at point j.
 
su2double GravityForce_i
 Gravity force at point i.
 
su2double GravityForce_j
 Gravity force 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 LambdaComb_i
 Spectral radius at point i.
 
su2double LambdaComb_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.
 
su2double Temp_i
 Temperature at point i.
 
su2double Temp_j
 Temperature at point j.
 
su2double * Temp_tr_i
 Temperature transl-rot at point i.
 
su2double * Temp_tr_j
 Temperature transl-rot at point j.
 
su2double * Temp_vib_i
 Temperature vibrational at point i.
 
su2double * Temp_vib_j
 Temperature vibrational at point j.
 
su2double * Und_Lapl_i
 Undivided laplacians at point i.
 
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.
 
su2double * GridVel_i
 Grid velocity at point i.
 
su2double * GridVel_j
 Grid velocity at point j.
 
su2double * U_i
 Vector of conservative variables at point i.
 
su2double * U_id
 Vector of derivative of conservative variables at point i.
 
su2double * UZeroOrder_i
 Vector of conservative variables at point i without reconstruction.
 
su2double * U_j
 Vector of conservative variables at point j.
 
su2double * UZeroOrder_j
 Vector of conservative variables at point j without reconstruction.
 
su2double * U_jd
 Vector of derivative of conservative variables at point j.
 
su2double * U_0
 Vector of conservative variables at node 0.
 
su2double * U_1
 Vector of conservative variables at node 1.
 
su2double * U_2
 Vector of conservative variables at node 2.
 
su2double * U_3
 Vector of conservative variables at node 3.
 
su2double * V_i
 Vector of primitive variables at point i.
 
su2double * V_j
 Vector of primitive variables at point j.
 
su2double * S_i
 Vector of secondary variables at point i.
 
su2double * S_j
 Vector of secondary variables at point j.
 
su2double * Psi_i
 Vector of adjoint variables at point i.
 
su2double * Psi_j
 Vector of adjoint variables at point j.
 
su2double * DeltaU_i
 Vector of linearized variables at point i.
 
su2double * DeltaU_j
 Vector of linearized variables at point j.
 
su2double * TurbVar_i
 Vector of turbulent variables at point i.
 
su2double * TurbVar_id
 Vector of derivative of turbulent variables at point i.
 
su2double * TurbVar_j
 Vector of turbulent variables at point j.
 
su2double * TurbVar_jd
 Vector of derivative of turbulent variables at point j.
 
su2double * TransVar_i
 Vector of turbulent variables at point i.
 
su2double * TransVar_j
 Vector of turbulent variables at point j.
 
su2double * TurbPsi_i
 Vector of adjoint turbulent variables at point i.
 
su2double * TurbPsi_j
 Vector of adjoint turbulent variables at point j.
 
su2double ** ConsVar_Grad_i
 Gradient of conservative variables at point i.
 
su2double ** ConsVar_Grad_j
 Gradient of conservative variables at point j.
 
su2double ** ConsVar_Grad_0
 Gradient of conservative variables at point 0.
 
su2double ** ConsVar_Grad_1
 Gradient of conservative variables at point 1.
 
su2double ** ConsVar_Grad_2
 Gradient of conservative variables at point 2.
 
su2double ** ConsVar_Grad_3
 Gradient of conservative variables at point 3.
 
su2double ** ConsVar_Grad
 Gradient of conservative variables which is a scalar.
 
su2double ** PrimVar_Grad_i
 Gradient of primitive variables at point i.
 
su2double ** PrimVar_Grad_j
 Gradient of primitive variables at point j.
 
su2double * PrimVar_Lim_i
 Limiter of primitive variables at point i.
 
su2double * PrimVar_Lim_j
 Limiter of primitive variables at point j.
 
su2double * PsiVar_Lim_i
 Limiter of adjoint variables at point i.
 
su2double * PsiVar_Lim_j
 Limiter of adjoint variables at point j.
 
su2double ** PsiVar_Grad_i
 Gradient of adjoint variables at point i.
 
su2double ** PsiVar_Grad_j
 Gradient of adjoint variables at point j.
 
su2double ** TurbVar_Grad_i
 Gradient of turbulent variables at point i.
 
su2double ** TurbVar_Grad_j
 Gradient of turbulent variables at point j.
 
su2double ** TransVar_Grad_i
 Gradient of turbulent variables at point i.
 
su2double ** TransVar_Grad_j
 Gradient of turbulent variables at point j.
 
su2double ** TurbPsi_Grad_i
 Gradient of adjoint turbulent variables at point i.
 
su2double ** TurbPsi_Grad_j
 Gradient of adjoint turbulent variables at point j.
 
su2double * AuxVar_Grad_i
 Gradient of an auxiliary variable at point i.
 
su2double * AuxVar_Grad_j
 Gradient of an auxiliary variable at point i.
 
su2double * Coord_i
 Cartesians coordinates of point i.
 
su2double * Coord_j
 Cartesians coordinates of point j.
 
su2double * Coord_0
 Cartesians coordinates of point 0 (Galerkin method, triangle).
 
su2double * Coord_1
 Cartesians coordinates of point 1 (Galerkin method, tetrahedra).
 
su2double * Coord_2
 Cartesians coordinates of point 2 (Galerkin method, triangle).
 
su2double * Coord_3
 Cartesians coordinates of point 3 (Galerkin method, tetrahedra).
 
unsigned short Neighbor_i
 Number of neighbors of the point i.
 
unsigned short Neighbor_j
 Number of neighbors of the point j.
 
su2double * Normal
 Normal vector, it norm is the area of the face.
 
su2double * UnitNormal
 Unitary normal vector.
 
su2double * UnitNormald
 derivatve of 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 Volume_n
 Volume of the control volume at time n.
 
su2double Volume_nM1
 Volume of the control volume at time n-1.
 
su2double Volume_nP1
 Volume of the control volume at time n+1.
 
su2double * U_n
 Vector of conservative variables at time n.
 
su2double * U_nM1
 Vector of conservative variables at time n-1.
 
su2double * U_nP1
 Vector of conservative variables at time n+1.
 
su2double vel2_inf
 value of the square of freestream speed.
 
su2double * WindGust_i
 Wind gust at point i.
 
su2double * WindGust_j
 Wind gust at point j.
 
su2double * WindGustDer_i
 Wind gust derivatives at point i.
 
su2double * WindGustDer_j
 Wind gust derivatives at point j.
 
su2double * Vorticity_i
 
su2double * Vorticity_j
 Vorticity.
 
su2double StrainMag_i
 
su2double StrainMag_j
 Strain rate magnitude.
 
su2double * l
 
su2double * m
 

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 Gas_Constant
 Gas constant.
 
su2double * Vector
 Auxiliary vector.
 
su2double * Enthalpy_formation
 
su2double Prandtl_Lam
 Laminar Prandtl's number.
 
su2double Prandtl_Turb
 Turbulent Prandtl's number.
 

Detailed Description

Class for defining the numerical methods.

Author
F. Palacios, T. Economon
Version
5.0.0 "Raven"

Constructor & Destructor Documentation

§ CNumerics()

CNumerics::CNumerics ( unsigned short  val_nDim,
unsigned short  val_nVar,
CConfig config 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[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.

Member Function Documentation

§ Compute_Averaged_NodalStress()

void CNumerics::Compute_Averaged_NodalStress ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the averaged nodal stresses.

Parameters
[in]element_container- Element structure for the particular element integrated.

Reimplemented in CFEM_NonlinearElasticity, CFEM_LinearElasticity, and CFEM_Elasticity.

§ Compute_Constitutive_Matrix()

void CNumerics::Compute_Constitutive_Matrix ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the constitutive matrix in an element for structural problems.

Parameters
[in]element_container- Element structure for the particular element integrated.

Reimplemented in CFEM_NeoHookean_Incomp, CFEM_NeoHookean_Comp, CFEM_NonlinearElasticity, and CFEM_Elasticity.

§ Compute_Dead_Load()

void CNumerics::Compute_Dead_Load ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the residual component due to dead loads.

Parameters
[in]element_container- Element structure for the particular element integrated.

Reimplemented in CFEM_Elasticity.

§ Compute_Mass_Matrix()

void CNumerics::Compute_Mass_Matrix ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the mass matrix.

Parameters
[in]element_container- Element structure for the particular element integrated.

Reimplemented in CFEM_Elasticity.

§ Compute_MeanDilatation_Term()

void CNumerics::Compute_MeanDilatation_Term ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the pressure term in incompressible or nearly-incompressible structural problems.

Parameters
[in]element_container- Definition of the particular element integrated.

Reimplemented in CFEM_NonlinearElasticity, and CFEM_Elasticity.

§ Compute_NodalStress_Term()

void CNumerics::Compute_NodalStress_Term ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the nodal stress term in non-linear structural problems.

Parameters
[in]element_container- Definition of the particular element integrated.

Reimplemented in CFEM_NonlinearElasticity, and CFEM_Elasticity.

§ Compute_Plane_Stress_Term()

void CNumerics::Compute_Plane_Stress_Term ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the plane stress term in an element for nonlinear structural problems.

Parameters
[in]element_container- Element structure for the particular element integrated.

Reimplemented in CFEM_NeoHookean_Incomp, CFEM_NeoHookean_Comp, CFEM_NonlinearElasticity, and CFEM_Elasticity.

§ Compute_Stress_Tensor()

void CNumerics::Compute_Stress_Tensor ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the stress tensor in an element for structural problems.

Parameters
[in]element_container- Element structure for the particular element integrated.

Reimplemented in CFEM_NeoHookean_Incomp, CFEM_NeoHookean_Comp, CFEM_NonlinearElasticity, and CFEM_Elasticity.

§ Compute_Tangent_Matrix()

void CNumerics::Compute_Tangent_Matrix ( CElement element_container,
CConfig config 
)
inlinevirtual

A virtual member to compute the tangent matrix in structural problems.

Parameters
[in]element_container- Element structure for the particular element integrated.

Reimplemented in CFEM_NonlinearElasticity, CFEM_LinearElasticity, and CFEM_Elasticity.

§ ComputeChemistry()

void CNumerics::ComputeChemistry ( su2double *  val_residual,
su2double **  val_Jacobian_i,
CConfig config 
)
inlinevirtual

Calculation of the chemistry source term.

Parameters
[in]config- Definition of the particular problem.
[out]val_residual- residual of the source terms
[out]val_Jacobian_i- Jacobian of the source terms

§ ComputeResidual() [1/13]

void CNumerics::ComputeResidual ( su2double *  val_residual,
CConfig config 
)
inlinevirtual

Compute the numerical residual.

Parameters
[out]val_residual- Pointer to the total residual.
[in]config- Definition of the particular problem.

Reimplemented in CSourceConservative_AdjFlow, CSourceViscous_AdjFlow, and CSourceGravity.

§ ComputeResidual() [2/13]

void CNumerics::ComputeResidual ( su2double *  val_residual_i,
su2double *  val_residual_j 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[out]val_residual_i- Pointer to the total residual at point i.
[out]val_residual_j- Pointer to the total residual at point j.

§ ComputeResidual() [3/13]

void CNumerics::ComputeResidual ( su2double *  val_residual_i,
su2double *  val_residual_j,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[out]val_residual_i- Pointer to the total residual at point i.
[out]val_residual_j- Pointer to the total residual at point j.
[in]config- Definition of the particular problem.

§ ComputeResidual() [4/13]

void CNumerics::ComputeResidual ( su2double *  val_residual,
su2double **  val_Jacobian_i,
su2double **  val_Jacobian_j,
CConfig config 
)
inlinevirtual

§ ComputeResidual() [5/13]

void CNumerics::ComputeResidual ( su2double *  val_residual,
su2double **  val_Jacobian_i,
su2double **  val_Jacobian_j,
su2double **  val_JacobianMeanFlow_i,
su2double **  val_JacobianMeanFlow_j,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[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).
[out]val_JacobianMeanFlow_i- Jacobian of the numerical method at node i (implicit computation).
[out]val_JacobianMeanFlow_j- Jacobian of the numerical method at node j (implicit computation).
[in]config- Definition of the particular problem.

§ ComputeResidual() [6/13]

void CNumerics::ComputeResidual ( su2double **  val_Jacobian_i,
su2double **  val_Jacobian_j,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[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.

§ ComputeResidual() [7/13]

void CNumerics::ComputeResidual ( su2double *  val_resconv,
su2double *  val_resvisc,
su2double **  val_Jacobian_i,
su2double **  val_Jacobian_j,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[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.

§ ComputeResidual() [8/13]

void CNumerics::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 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[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 CAvgGrad_AdjTurb, CAvgGradCorrected_AdjTurb, CAvgGradCorrectedArtComp_AdjFlow, CAvgGradCorrected_AdjFlow, CAvgGradArtComp_AdjFlow, CAvgGrad_AdjFlow, CUpwSca_AdjTurb, CUpwRoeArtComp_AdjFlow, and CUpwRoe_AdjFlow.

§ ComputeResidual() [9/13]

void CNumerics::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 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[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 CCentLaxArtComp_AdjFlow, CCentLax_AdjFlow, CCentJSTArtComp_AdjFlow, and CCentJST_AdjFlow.

§ ComputeResidual() [10/13]

void CNumerics::ComputeResidual ( su2double **  val_stiffmatrix_elem,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[out]val_stiffmatrix_elem- Stiffness matrix for Galerkin computation.
[in]config- Definition of the particular problem.

Reimplemented in CGalerkin_Flow.

§ ComputeResidual() [11/13]

void CNumerics::ComputeResidual ( su2double *  val_residual,
su2double **  val_Jacobian_i,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[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_Template, CSourceWindGust, CSourceAxisymmetric_AdjFlow, CSourceAxisymmetric_Flow, CSourceRotatingFrame_AdjFlow, and CSourceRotatingFrame_Flow.

§ ComputeResidual() [12/13]

void CNumerics::ComputeResidual ( su2double **  val_Jacobian_i,
su2double *  val_Jacobian_mui,
su2double ***  val_Jacobian_gradi,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[out]val_Jacobian_i- Jacobian of the numerical method at node i
[in]config- Definition of the particular problem.

§ ComputeResidual() [13/13]

void CNumerics::ComputeResidual ( su2double **  val_Jacobian_i,
su2double *  val_Jacobian_mui,
su2double ***  val_Jacobian_gradi,
su2double **  val_Jacobian_j,
su2double *  val_Jacobian_muj,
su2double ***  val_Jacobian_gradj,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[out]val_Jacobian_i- Jacobian of the numerical method at node i
[in]config- Definition of the particular problem.

§ ComputeResidual_Axisymmetric()

void CNumerics::ComputeResidual_Axisymmetric ( su2double *  val_residual,
CConfig config 
)
inlinevirtual

Residual for source term integration.

Parameters
[out]val_residual- Pointer to the source residual containing chemistry terms.
[in]config- Definition of the particular problem.

§ ComputeResidual_Axisymmetric_ad()

void CNumerics::ComputeResidual_Axisymmetric_ad ( su2double *  val_residual,
su2double *  val_residuald,
CConfig config 
)
inlinevirtual

Residual for source term integration.

Parameters
[out]val_residual- Pointer to the source residual containing chemistry terms.
[in]config- Definition of the particular problem.

§ ComputeVibRelaxation()

void CNumerics::ComputeVibRelaxation ( su2double *  val_residual,
su2double **  val_Jacobian_i,
CConfig config 
)
inlinevirtual

Calculation of the translational-vibrational energy exchange source term.

Parameters
[in]config- Definition of the particular problem.
[out]val_residual- residual of the source terms
[out]val_Jacobian_i- Jacobian of the source terms

§ CreateBasis()

void CNumerics::CreateBasis ( su2double *  val_Normal)

Computes a basis of orthogonal vectors from a suppled vector.

Parameters
[in]config- Normal vector

§ Determinant_3x3()

su2double CNumerics::Determinant_3x3 ( su2double  A00,
su2double  A01,
su2double  A02,
su2double  A10,
su2double  A11,
su2double  A12,
su2double  A20,
su2double  A21,
su2double  A22 
)
inline

Compute the determinant of a 3 by 3 matrix.

Parameters
[in]val_matrix3 by 3 matrix.
Returns
Determinant of the matrix

§ GetCrossProduction()

su2double CNumerics::GetCrossProduction ( void  )
inlinevirtual

Residual for source term integration.

Parameters
[in]val_crossproduction- Value of the CrossProduction.

Reimplemented in CSourcePieceWise_TurbSA_Neg, and CSourcePieceWise_TurbSA.

§ GetDestruction()

su2double CNumerics::GetDestruction ( void  )
inlinevirtual

Residual for source term integration.

Parameters
[in]val_destruction- Value of the Destruction.

Reimplemented in CSourcePieceWise_TurbSA_Neg, and CSourcePieceWise_TurbSA.

§ GetEq_Rxn_Coefficients()

void CNumerics::GetEq_Rxn_Coefficients ( su2double **  EqnRxnConstants,
CConfig config 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[out]-Matrix for storing the constants to be used in the calculation of the equilibrium extent of reaction Keq.
[in]config- Definition of the particular problem.

§ GetInviscidArtCompProjFlux()

void CNumerics::GetInviscidArtCompProjFlux ( su2double *  val_density,
su2double *  val_velocity,
su2double *  val_pressure,
su2double *  val_betainc2,
su2double *  val_normal,
su2double *  val_Proj_Flux 
)

Compute the projected inviscid flux vector for incompresible simulations.

Parameters
[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.

§ GetInviscidArtCompProjJac()

void CNumerics::GetInviscidArtCompProjJac ( su2double *  val_density,
su2double *  val_velocity,
su2double *  val_betainc2,
su2double *  val_normal,
su2double  val_scale,
su2double **  val_Proj_Jac_tensor 
)

Compute the projection of the inviscid Jacobian matrices (artificial compresibility).

Parameters
[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.

§ GetInviscidFlux()

void CNumerics::GetInviscidFlux ( su2double  val_density,
su2double *  val_velocity,
su2double  val_pressure,
su2double  val_enthalpy 
)

Get the inviscid fluxes.

Parameters
[in]val_density- Value of the density.
[in]val_velocity- Value of the velocity.
[in]val_pressure- Value of the pressure.
[in]val_enthalpy- Value of the enthalpy.

§ GetInviscidProjFlux()

void CNumerics::GetInviscidProjFlux ( su2double *  val_density,
su2double *  val_velocity,
su2double *  val_pressure,
su2double *  val_enthalpy,
su2double *  val_normal,
su2double *  val_Proj_Flux 
)

Compute the projected inviscid flux vector.

Parameters
[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.

§ GetInviscidProjJac() [1/2]

void CNumerics::GetInviscidProjJac ( su2double *  val_velocity,
su2double *  val_energy,
su2double *  val_normal,
su2double  val_scale,
su2double **  val_Proj_Jac_tensor 
)

Compute the projection of the inviscid Jacobian matrices.

Parameters
[in]val_velocityPointer to the velocity.
[in]val_energyValue 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.

§ GetInviscidProjJac() [2/2]

void CNumerics::GetInviscidProjJac ( su2double *  val_velocity,
su2double *  val_enthalphy,
su2double *  val_chi,
su2double *  val_kappa,
su2double *  val_normal,
su2double  val_scale,
su2double **  val_Proj_Jac_tensor 
)

Compute the projection of the inviscid Jacobian matrices for general fluid model.

Parameters
[in]val_velocityPointer to the velocity.
[in]val_energyValue 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.

§ GetinvRinvPe()

void CNumerics::GetinvRinvPe ( su2double  Beta2,
su2double  val_enthalpy,
su2double  val_soundspeed,
su2double  val_density,
su2double *  val_velocity,
su2double **  val_invR_invPe 
)

Computation of the matrix Rinv*Pe.

Parameters
[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.

§ GetJacInviscidLambda_fabs()

void CNumerics::GetJacInviscidLambda_fabs ( su2double *  val_velocity,
su2double  val_soundspeed,
su2double *  val_normal,
su2double *  val_Lambda_Vector 
)

Computation of the projected inviscid lambda (eingenvalues).

Parameters
[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.

§ GetKeqConstants()

void CNumerics::GetKeqConstants ( su2double *  A,
unsigned short  val_reaction,
CConfig config 
)
inlinevirtual

Calculates constants used for Keq correlation.

Parameters
[out]A- Pointer to coefficient array.
[in]val_reaction- Reaction number indicator.
[in]config- Definition of the particular problem.

§ GetLMatrix()

void CNumerics::GetLMatrix ( su2double  val_soundspeed,
su2double  val_density,
su2double *  val_normal,
su2double **  L_Matrix 
)

Computation of the matrix R.

Parameters
[in]val_soundspeed- value of the sound speed.
[in]val_density- value of the density.
[in]val_normal- value of the unit normal.
[out]L_Matrix- Pointer to the matrix of conversion from conserved to entropic variables.

§ GetPArtCompMatrix()

void CNumerics::GetPArtCompMatrix ( su2double *  val_density,
su2double *  val_velocity,
su2double *  val_betainv2,
su2double *  val_normal,
su2double **  val_p_tensor 
)

Computation of the matrix P (artificial compresibility), this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$.

Parameters
[in]val_density- Value of the density.
[in]val_velocity- Value of the velocity.
[in]val_betainv2- Value of the compresibility factor.
[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.

§ GetPArtCompMatrix_inv()

void CNumerics::GetPArtCompMatrix_inv ( su2double *  val_density,
su2double *  val_velocity,
su2double *  val_betainv2,
su2double *  val_normal,
su2double **  val_invp_tensor 
)

Computation of the matrix P^{-1} (artificial compresibility), this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$.

Parameters
[in]val_density- Value of the density.
[in]val_velocity- Value of the velocity.
[in]val_betainv2- Value of the compresibility factor.
[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.

§ GetPMatrix() [1/2]

void CNumerics::GetPMatrix ( su2double *  val_density,
su2double *  val_velocity,
su2double *  val_soundspeed,
su2double *  val_enthalpy,
su2double *  val_chi,
su2double *  val_kappa,
su2double *  val_normal,
su2double **  val_p_tensor 
)

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.

Parameters
[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.

§ GetPMatrix() [2/2]

void CNumerics::GetPMatrix ( su2double *  val_density,
su2double *  val_velocity,
su2double *  val_soundspeed,
su2double *  val_normal,
su2double **  val_p_tensor 
)

Computation of the matrix P, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$.

Parameters
[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_p_tensor- Pointer to the P matrix.

§ GetPMatrix_inv() [1/2]

void CNumerics::GetPMatrix_inv ( su2double **  val_invp_tensor,
su2double *  val_density,
su2double *  val_velocity,
su2double *  val_soundspeed,
su2double *  val_chi,
su2double *  val_kappa,
su2double *  val_normal 
)

Computation of the matrix P^{-1}, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$.

Parameters
[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.

§ GetPMatrix_inv() [2/2]

void CNumerics::GetPMatrix_inv ( su2double *  val_density,
su2double *  val_velocity,
su2double *  val_soundspeed,
su2double *  val_normal,
su2double **  val_invp_tensor 
)

Computation of the matrix P^{-1}, this matrix diagonalize the conservative Jacobians in the form $P^{-1}(A.Normal)P=Lambda$.

Parameters
[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.

§ GetPrecond_Beta()

su2double CNumerics::GetPrecond_Beta ( )
inlinevirtual

Get the Preconditioning Beta.

Returns
val_Beta - Value of the low Mach Preconditioner.

Reimplemented in CUpwTurkel_Flow.

§ GetPrecondJacobian()

void CNumerics::GetPrecondJacobian ( su2double  Beta2,
su2double  r_hat,
su2double  s_hat,
su2double  t_hat,
su2double  rB2a2,
su2double *  val_Lambda,
su2double *  val_normal,
su2double **  val_absPeJac 
)

Computation of the matrix Td, this matrix diagonalize the preconditioned conservative Jacobians in the form $Tg |Lambda| Td = Pc{-1}|Pc (A.Normal)|$.

Parameters
[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.

§ GetPrimitive2Conservative()

void CNumerics::GetPrimitive2Conservative ( su2double *  val_Mean_PrimVar,
su2double *  val_Mean_SecVar,
su2double **  val_Jac_PC 
)

Mapping between primitives variables P and conservatives variables C.

Parameters
[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.

§ GetProduction()

su2double CNumerics::GetProduction ( void  )
inlinevirtual

Residual for source term integration.

Parameters
[in]val_production- Value of the Production.

Reimplemented in CSourcePieceWise_TurbSA_Neg, and CSourcePieceWise_TurbSA.

§ GetRMatrix() [1/2]

void CNumerics::GetRMatrix ( su2double  val_pressure,
su2double  val_soundspeed,
su2double  val_density,
su2double *  val_velocity,
su2double **  val_invR_invPe 
)

Computation of the matrix R.

Parameters
[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.

§ GetRMatrix() [2/2]

void CNumerics::GetRMatrix ( su2double  val_soundspeed,
su2double  val_density,
su2double *  val_normal,
su2double **  R_Matrix 
)

Computation of the matrix R.

Parameters
[in]val_soundspeed- value of the sound speed.
[in]val_density- value of the density.
[in]val_normal- value of the unit normal.
[out]R_Matrix- Pointer to the matrix of conversion from entropic to conserved variables.

§ GetViscousArtCompProjJacs()

void CNumerics::GetViscousArtCompProjJacs ( su2double  val_laminar_viscosity,
su2double  val_eddy_viscosity,
su2double  val_dist_ij,
su2double *  val_normal,
su2double  val_dS,
su2double **  val_Proj_Jac_Tensor_i,
su2double **  val_Proj_Jac_Tensor_j 
)

Compute the projection of the viscous Jacobian matrices.

Parameters
[in]val_laminar_viscosity- Value of the laminar viscosity.
[in]val_eddy_viscosity- Value of the eddy viscosity.
[in]val_dist_ij- Distance between the points.
[in]val_normal- Normal vector, the norm of the vector is the area of the face.
[in]val_dS- Area of the face between two nodes.
[out]val_Proj_Jac_Tensor_i- Pointer to the projected viscous Jacobian at point i.
[out]val_Proj_Jac_Tensor_j- Pointer to the projected viscous Jacobian at point j.

§ GetViscousFlux()

void CNumerics::GetViscousFlux ( su2double *  val_primvar,
su2double **  val_gradprimvar,
su2double  val_laminar_viscosity,
su2double  val_eddy_viscosity,
su2double  val_mach_inf 
)

Get the viscous fluxes.

Parameters
[in]val_primvar- Value of the primitive variables.
[in]val_gradprimvar- Gradient of the primitive variables.
[in]val_laminar_viscosity- Value of the laminar viscosity.
[in]val_eddy_viscosity- Value of the eddy viscosity.
[in]val_mach_inf- Value of the Mach number at the infinity.

§ GetViscousProjFlux() [1/2]

void CNumerics::GetViscousProjFlux ( su2double *  val_primvar,
su2double **  val_gradprimvar,
su2double  val_turb_ke,
su2double *  val_normal,
su2double  val_laminar_viscosity,
su2double  val_eddy_viscosity 
)

Compute the projection of the viscous fluxes into a direction.

Parameters
[in]val_primvar- Primitive variables.
[in]val_gradprimvar- Gradient of the primitive variables.
[in]val_turb_ke- Turbulent kinetic energy
[in]val_normal- Normal vector, the norm of the vector is the area of the face.
[in]val_laminar_viscosity- Laminar viscosity.
[in]val_eddy_viscosity- Eddy viscosity.
[in]val_thermal_conductivity- Thermal Conductivity.
[in]val_eddy_conductivity- Eddy Conductivity.

§ GetViscousProjFlux() [2/2]

void CNumerics::GetViscousProjFlux ( su2double *  val_primvar,
su2double **  val_gradprimvar,
su2double  val_turb_ke,
su2double *  val_normal,
su2double  val_laminar_viscosity,
su2double  val_eddy_viscosity,
su2double  val_thermal_conductivity,
su2double  val_heat_capacity_cp 
)

Compute the projection of the viscous fluxes into a direction for general fluid model.

Parameters
[in]val_primvar- Primitive variables.
[in]val_gradprimvar- Gradient of the primitive variables.
[in]val_turb_ke- Turbulent kinetic energy
[in]val_normal- Normal vector, the norm of the vector is the area of the face.
[in]val_laminar_viscosity- Laminar viscosity.
[in]val_eddy_viscosity- Eddy viscosity.
[in]val_thermal_conductivity- Thermal Conductivity.
[in]val_heat_capacity_cp- Heat Capacity at constant pressure.

§ GetViscousProjJacs() [1/2]

void CNumerics::GetViscousProjJacs ( su2double *  val_Mean_PrimVar,
su2double  val_laminar_viscosity,
su2double  val_eddy_viscosity,
su2double  val_dist_ij,
su2double *  val_normal,
su2double  val_dS,
su2double *  val_Proj_Visc_Flux,
su2double **  val_Proj_Jac_Tensor_i,
su2double **  val_Proj_Jac_Tensor_j 
)

TSL-Approximation of Viscous NS Jacobians.

Parameters
[in]val_Mean_PrimVar- Mean value of the primitive variables.
[in]val_laminar_viscosity- Value of the laminar viscosity.
[in]val_eddy_viscosity- Value of the eddy viscosity.
[in]val_dist_ij- Distance between the points.
[in]val_normal- Normal vector, the norm of the vector is the area of the face.
[in]val_dS- Area of the face between two nodes.
[in]val_Proj_Visc_Flux- Pointer to the projected viscous flux.
[out]val_Proj_Jac_Tensor_i- Pointer to the projected viscous Jacobian at point i.
[out]val_Proj_Jac_Tensor_j- Pointer to the projected viscous Jacobian at point j.

§ GetViscousProjJacs() [2/2]

void CNumerics::GetViscousProjJacs ( su2double *  val_Mean_PrimVar,
su2double **  val_gradprimvar,
su2double *  val_Mean_SecVar,
su2double  val_laminar_viscosity,
su2double  val_eddy_viscosity,
su2double  val_thermal_conductivity,
su2double  val_heat_capacity_cp,
su2double  val_dist_ij,
su2double *  val_normal,
su2double  val_dS,
su2double *  val_Proj_Visc_Flux,
su2double **  val_Proj_Jac_Tensor_i,
su2double **  val_Proj_Jac_Tensor_j 
)

TSL-Approximation of Viscous NS Jacobians for arbitrary equations of state.

Parameters
[in]val_Mean_PrimVar- Mean value of the primitive variables.
[in]val_gradprimvar- Mean value of the gradient of the primitive variables.
[in]val_Mean_SecVar- Mean value of the secondary variables.
[in]val_laminar_viscosity- Value of the laminar viscosity.
[in]val_eddy_viscosity- Value of the eddy viscosity.
[in]val_thermal_conductivity- Value of the thermal conductivity.
[in]val_heat_capacity_cp- Value of the specific heat at constant pressure.
[in]val_dist_ij- Distance between the points.
[in]val_normal- Normal vector, the norm of the vector is the area of the face.
[in]val_dS- Area of the face between two nodes.
[in]val_Proj_Visc_Flux- Pointer to the projected viscous flux.
[out]val_Proj_Jac_Tensor_i- Pointer to the projected viscous Jacobian at point i.
[out]val_Proj_Jac_Tensor_j- Pointer to the projected viscous Jacobian at point j.

§ SetAdjointVar()

void CNumerics::SetAdjointVar ( su2double *  val_psi_i,
su2double *  val_psi_j 
)
inline

Set the value of the adjoint variable.

Parameters
[in]val_psi_i- Value of the adjoint variable at point i.
[in]val_psi_j- Value of the adjoint variable at point j.

§ SetAdjointVarGradient()

void CNumerics::SetAdjointVarGradient ( su2double **  val_psivar_grad_i,
su2double **  val_psivar_grad_j 
)
inline

Set the gradient of the adjoint variables.

Parameters
[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.

§ SetAdjointVarLimiter()

void CNumerics::SetAdjointVarLimiter ( su2double *  val_psivar_lim_i,
su2double *  val_psivar_lim_j 
)
inline

Set the limiter of the adjoint variables.

Parameters
[in]val_psivar_lim_i- Gradient of the adjoint variable at point i.
[in]val_psivar_lim_j- Gradient of the adjoint variable at point j.

§ SetAIndex()

void CNumerics::SetAIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetAuxVarGrad()

void CNumerics::SetAuxVarGrad ( su2double *  val_auxvargrad_i,
su2double *  val_auxvargrad_j 
)
inline

Set the gradient of the auxiliary variables.

Parameters
[in]val_auxvargrad_i- Gradient of the auxiliary variable at point i.
[in]val_auxvargrad_j- Gradient of the auxiliary variable at point j.

§ SetBetaInc2()

void CNumerics::SetBetaInc2 ( su2double  val_betainc2_i,
su2double  val_betainc2_j 
)
inline

Set the value of the beta for incompressible flows.

Parameters
[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.

§ SetConservative() [1/3]

void CNumerics::SetConservative ( su2double *  val_u_i,
su2double *  val_u_j 
)
inline

Set the value of the conservative variables.

Parameters
[in]val_u_i- Value of the conservative variable at point i.
[in]val_u_j- Value of the conservative variable at point j.

§ SetConservative() [2/3]

void CNumerics::SetConservative ( su2double *  val_u_0,
su2double *  val_u_1,
su2double *  val_u_2 
)
inline

Set the value of the conservative variables.

Parameters
[in]val_u_0- Value of the conservative variable at point 0.
[in]val_u_1- Value of the conservative variable at point 1.
[in]val_u_2- Value of the conservative variable at point 2.

§ SetConservative() [3/3]

void CNumerics::SetConservative ( su2double *  val_u_0,
su2double *  val_u_1,
su2double *  val_u_2,
su2double *  val_u_3 
)
inline

Set the value of the conservative variables.

Parameters
[in]val_u_0- Value of the conservative variable at point 0.
[in]val_u_1- Value of the conservative variable at point 1.
[in]val_u_2- Value of the conservative variable at point 2.
[in]val_u_3- Value of the conservative variable at point 3.

§ SetConservative_ZeroOrder()

void CNumerics::SetConservative_ZeroOrder ( su2double *  val_u_i,
su2double *  val_u_j 
)
inline

Set the value of the conservative variables withour reconstruction.

Parameters
[in]val_u_i- Value of the conservative variable at point i.
[in]val_u_j- Value of the conservative variable at point j.

§ SetConsVarGradient() [1/4]

void CNumerics::SetConsVarGradient ( su2double **  val_consvar_grad_i,
su2double **  val_consvar_grad_j 
)
inline

Set the gradient of the conservative variables.

Parameters
[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.

§ SetConsVarGradient() [2/4]

void CNumerics::SetConsVarGradient ( su2double **  val_consvar_grad_0,
su2double **  val_consvar_grad_1,
su2double **  val_consvar_grad_2 
)
inline

Set the gradient of the conservative variables.

Parameters
[in]val_consvar_grad_0- Gradient of the conservative variable at point 0.
[in]val_consvar_grad_1- Gradient of the conservative variable at point 1.
[in]val_consvar_grad_2- Gradient of the conservative variable at point 2.

§ SetConsVarGradient() [3/4]

void CNumerics::SetConsVarGradient ( su2double **  val_consvar_grad_0,
su2double **  val_consvar_grad_1,
su2double **  val_consvar_grad_2,
su2double **  val_consvar_grad_3 
)
inline

Set the gradient of the conservative variables.

Parameters
[in]val_consvar_grad_0- Gradient of the conservative variable at point 0.
[in]val_consvar_grad_1- Gradient of the conservative variable at point 1.
[in]val_consvar_grad_2- Gradient of the conservative variable at point 2.
[in]val_consvar_grad_3- Gradient of the conservative variable at point 3.

§ SetConsVarGradient() [4/4]

void CNumerics::SetConsVarGradient ( su2double **  val_consvar_grad)
inline

Set the gradient of the conservative variables.

Parameters
[in]val_consvar_grad- Gradient of the conservative variable which is a scalar.

§ SetCoord() [1/3]

void CNumerics::SetCoord ( su2double *  val_coord_i,
su2double *  val_coord_j 
)
inline

Set coordinates of the points.

Parameters
[in]val_coord_i- Coordinates of the point i.
[in]val_coord_j- Coordinates of the point j.

§ SetCoord() [2/3]

void CNumerics::SetCoord ( su2double *  val_coord_0,
su2double *  val_coord_1,
su2double *  val_coord_2 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[in]val_coord_0- Coordinates of the point 0.
[in]val_coord_1- Coordinates of the point 1.
[in]val_coord_2- Coordinates of the point 2.

§ SetCoord() [3/3]

void CNumerics::SetCoord ( su2double *  val_coord_0,
su2double *  val_coord_1,
su2double *  val_coord_2,
su2double *  val_coord_3 
)
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
[in]val_coord_0- Coordinates of the point 0.
[in]val_coord_1- Coordinates of the point 1.
[in]val_coord_2- Coordinates of the point 2.
[in]val_coord_3- Coordinates of the point 3.

§ SetCrossDiff()

virtual void CNumerics::SetCrossDiff ( su2double  val_CDkw_i,
su2double  val_CDkw_j 
)
inlinevirtual

Set the value of the cross diffusion for the SST model.

Parameters
[in]val_CDkw_i- Value of the cross diffusion at point i.
[in]val_CDkw_j- Value of the cross diffusion at point j.

Reimplemented in CSourcePieceWise_TurbSST.

§ SetCrossProduction()

void CNumerics::SetCrossProduction ( su2double  val_crossproduction)
inlinevirtual

Residual for source term integration.

Parameters
[in]val_crossproduction- Value of the CrossProduction.

Reimplemented in CSourcePieceWise_TurbSA_Neg, and CSourcePieceWise_TurbSA.

§ SetDensity()

void CNumerics::SetDensity ( su2double  val_densityinc_i,
su2double  val_densityinc_j 
)
inline

Set the value of the density for the incompressible solver.

Parameters
[in]val_densityinc_i- Value of the pressure at point i.
[in]val_densityinc_j- Value of the pressure at point j.

§ SetDestruction()

void CNumerics::SetDestruction ( su2double  val_destruction)
inlinevirtual

Residual for source term integration.

Parameters
[in]val_destruction- Value of the Destruction.

Reimplemented in CSourcePieceWise_TurbSA_Neg, and CSourcePieceWise_TurbSA.

§ SetDiffusionCoeff()

void CNumerics::SetDiffusionCoeff ( su2double *  val_diffusioncoeff_i,
su2double *  val_diffusioncoeff_j 
)
inline

Set the diffusion coefficient.

Parameters
[in]val_diffusioncoeff_i- Value of the diffusion coefficients at i.
[in]val_diffusioncoeff_j- Value of the diffusion coefficients at j

§ SetDistance()

void CNumerics::SetDistance ( su2double  val_dist_i,
su2double  val_dist_j 
)
inline

Set the value of the distance from the nearest wall.

Parameters
[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.

§ SetdPdU()

void CNumerics::SetdPdU ( su2double *  val_dPdU_i,
su2double *  val_dPdU_j 
)

Sets the value of the derivative of pressure w.r.t. species density.

Parameters
[in]iRho_s

§ SetdTdU()

void CNumerics::SetdTdU ( su2double *  val_dTdU_i,
su2double *  val_dTdU_j 
)

Sets the value of the derivative of temperature w.r.t. species density.

Parameters
[in]iRho_s

§ SetdTvedU()

void CNumerics::SetdTvedU ( su2double *  val_dTvedU_i,
su2double *  val_dTvedU_j 
)

Sets the value of the derivative of vib-el. temperature w.r.t. species density.

Parameters
[in]iRho_s

§ SetEddyViscosity()

void CNumerics::SetEddyViscosity ( su2double  val_eddy_viscosity_i,
su2double  val_eddy_viscosity_j 
)
inline

Set the eddy viscosity.

Parameters
[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.

§ SetEnthalpy()

void CNumerics::SetEnthalpy ( su2double  val_enthalpy_i,
su2double  val_enthalpy_j 
)
inline

Set the value of the enthalpy.

Parameters
[in]val_enthalpy_i- Value of the enthalpy at point i.
[in]val_enthalpy_j- Value of the enthalpy at point j.

§ SetF1blending()

virtual void CNumerics::SetF1blending ( su2double  val_F1_i,
su2double  val_F1_j 
)
inlinevirtual

Set the value of the first blending function.

Parameters
[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, CAvgGradCorrected_TurbSST, and CAvgGrad_TurbSST.

§ SetF2blending()

virtual void CNumerics::SetF2blending ( su2double  val_F1_i,
su2double  val_F1_j 
)
inlinevirtual

Set the value of the second blending function.

Parameters
[in]val_F1_i- Value of the second Menter blending function at point i.
[in]val_F1_j- Value of the second Menter blending function at point j.

Reimplemented in CSourcePieceWise_TurbSST.

§ SetGridVel()

void CNumerics::SetGridVel ( su2double *  val_gridvel_i,
su2double *  val_gridvel_j 
)
inline

Set the velocity of the computational grid.

Parameters
[in]val_gridvel_i- Grid velocity of the point i.
[in]val_gridvel_j- Grid velocity of the point j.

§ SetHIndex()

void CNumerics::SetHIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetJacobian_Axisymmetric()

void CNumerics::SetJacobian_Axisymmetric ( su2double **  val_Jacobian_i,
CConfig config 
)
inlinevirtual

Calculation of axisymmetric source term Jacobian.

Parameters
[out]val_Jacobian_i- Jacobian of the numerical method at node i (implicit computation).
[in]config- Definition of the particular problem.

§ SetLambda()

void CNumerics::SetLambda ( su2double  val_lambda_i,
su2double  val_lambda_j 
)
inline

Set the value of the spectral radius.

Parameters
[in]val_lambda_i- Value of the spectral radius at point i.
[in]val_lambda_j- Value of the spectral radius at point j.

§ SetLaminarViscosity()

void CNumerics::SetLaminarViscosity ( su2double  val_laminar_viscosity_i,
su2double  val_laminar_viscosity_j 
)
inline

Set the laminar viscosity.

Parameters
[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.

§ SetNeighbor()

void CNumerics::SetNeighbor ( unsigned short  val_neighbor_i,
unsigned short  val_neighbor_j 
)
inline

Set the number of neighbor to a point.

Parameters
[in]val_neighbor_i- Number of neighbor to point i.
[in]val_neighbor_j- Number of neighbor to point j.

§ SetNormal()

void CNumerics::SetNormal ( su2double *  val_normal)
inline

Set the value of the normal vector to the face between two points.

Parameters
[in]val_normal- Normal vector, the norm of the vector is the area of the face.

§ SetPastSol()

void CNumerics::SetPastSol ( su2double *  val_u_nM1,
su2double *  val_u_n,
su2double *  val_u_nP1 
)

Set the solution at different times.

Parameters
[in]val_u_nM1Conservative solution at time n-1.
[in]val_u_nConservative solution at time n.
[in]val_u_nP1Conservative solution at time n+1.

§ SetPastVolume()

void CNumerics::SetPastVolume ( su2double  val_volume_nM1,
su2double  val_volume_n,
su2double  val_volume_nP1 
)

Set the control volume at different times.

Parameters
[in]val_volume_nM1- Control volume at time n-1.
[in]val_volume_n- Control volume at time n.
[in]val_volume_nP1- Control volume at time n+1.

§ SetPIndex()

void CNumerics::SetPIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetPressure()

void CNumerics::SetPressure ( su2double  val_pressure_i,
su2double  val_pressure_j 
)
inline

Set the value of the pressure.

Parameters
[in]val_pressure_i- Value of the pressure at point i.
[in]val_pressure_j- Value of the pressure at point j.

§ SetPrimitive()

void CNumerics::SetPrimitive ( su2double *  val_v_i,
su2double *  val_v_j 
)
inline

Set the value of the primitive variables.

Parameters
[in]val_v_i- Value of the primitive variable at point i.
[in]val_v_j- Value of the primitive variable at point j.

§ SetPrimVarGradient()

void CNumerics::SetPrimVarGradient ( su2double **  val_primvar_grad_i,
su2double **  val_primvar_grad_j 
)
inline

Set the gradient of the primitive variables.

Parameters
[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.

§ SetPrimVarLimiter()

void CNumerics::SetPrimVarLimiter ( su2double *  val_primvar_lim_i,
su2double *  val_primvar_lim_j 
)
inline

Set the Limiter of the primitive variables.

Parameters
[in]val_primvar_lim_i- Limiter of the primitive variable at point i.
[in]val_primvar_lim_j- Limiter of the primitive variable at point j.

§ SetProduction()

void CNumerics::SetProduction ( su2double  val_production)
inlinevirtual

Residual for source term integration.

Parameters
[in]val_production- Value of the Production.

Reimplemented in CSourcePieceWise_TurbSA_Neg, and CSourcePieceWise_TurbSA.

§ SetRhoCvtrIndex()

void CNumerics::SetRhoCvtrIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetRhoCvveIndex()

void CNumerics::SetRhoCvveIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetRhoIndex()

void CNumerics::SetRhoIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetRhosIndex()

void CNumerics::SetRhosIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetSecondary()

void CNumerics::SetSecondary ( su2double *  val_s_i,
su2double *  val_s_j 
)
inline

Set the value of the primitive variables.

Parameters
[in]val_v_i- Value of the primitive variable at point i.
[in]val_v_j- Value of the primitive variable at point j.

§ SetSensor()

void CNumerics::SetSensor ( su2double  val_sensor_i,
su2double  val_sensor_j 
)
inline

Set the value of the pressure sensor.

Parameters
[in]val_sensor_iPressure sensor at point i.
[in]val_sensor_jPressure sensor at point j.

§ SetSoundSpeed()

void CNumerics::SetSoundSpeed ( su2double  val_soundspeed_i,
su2double  val_soundspeed_j 
)
inline

Set the value of the sound speed.

Parameters
[in]val_soundspeed_i- Value of the sound speed at point i.
[in]val_soundspeed_j- Value of the sound speed at point j.

§ SetStrainMag()

void CNumerics::SetStrainMag ( su2double  val_strainmag_i,
su2double  val_strainmag_j 
)
inline

Set the value of the rate of strain magnitude.

Parameters
[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.

§ SetTemperature()

void CNumerics::SetTemperature ( su2double  val_temp_i,
su2double  val_temp_j 
)
inline

Set the value of the temperature.

Parameters
[in]val_temp_i- Value of the temperature at point i.
[in]val_temp_j- Value of the temperature at point j.

§ SetThermalConductivity()

void CNumerics::SetThermalConductivity ( su2double  val_thermal_conductivity_i,
su2double  val_thermal_conductivity_j 
)
inline

Set the thermal conductivity (translational/rotational)

Parameters
[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.

§ SetThermalConductivity_ve()

void CNumerics::SetThermalConductivity_ve ( su2double  val_thermal_conductivity_ve_i,
su2double  val_thermal_conductivity_ve_j 
)
inline

Set the thermal conductivity (translational/rotational)

Parameters
[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.

§ SetTimeStep()

void CNumerics::SetTimeStep ( su2double  val_timestep)
inline

Set the time step.

Parameters
[in]val_timestep- Value of the time step.

§ SetTIndex()

void CNumerics::SetTIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetTransVar()

void CNumerics::SetTransVar ( su2double *  val_transvar_i,
su2double *  val_transvar_j 
)
inline

Set the value of the turbulent variable.

Parameters
[in]val_transvar_i- Value of the turbulent variable at point i.
[in]val_transvar_j- Value of the turbulent variable at point j.

§ SetTransVarGradient()

void CNumerics::SetTransVarGradient ( su2double **  val_transvar_grad_i,
su2double **  val_transvar_grad_j 
)
inline

Set the gradient of the turbulent variables.

Parameters
[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.

§ SetTurbAdjointGradient()

void CNumerics::SetTurbAdjointGradient ( su2double **  val_turbpsivar_grad_i,
su2double **  val_turbpsivar_grad_j 
)
inline

Set the gradient of the adjoint turbulent variables.

Parameters
[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.

§ SetTurbAdjointVar()

void CNumerics::SetTurbAdjointVar ( su2double *  val_turbpsivar_i,
su2double *  val_turbpsivar_j 
)
inline

Set the value of the adjoint turbulent variable.

Parameters
[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.

§ SetTurbKineticEnergy()

void CNumerics::SetTurbKineticEnergy ( su2double  val_turb_ke_i,
su2double  val_turb_ke_j 
)
inline

Set the turbulent kinetic energy.

Parameters
[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.

§ SetTurbVar()

void CNumerics::SetTurbVar ( su2double *  val_turbvar_i,
su2double *  val_turbvar_j 
)
inline

Set the value of the turbulent variable.

Parameters
[in]val_turbvar_i- Value of the turbulent variable at point i.
[in]val_turbvar_j- Value of the turbulent variable at point j.

§ SetTurbVarGradient()

void CNumerics::SetTurbVarGradient ( su2double **  val_turbvar_grad_i,
su2double **  val_turbvar_grad_j 
)
inline

Set the gradient of the turbulent variables.

Parameters
[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.

§ SetTveIndex()

void CNumerics::SetTveIndex ( unsigned short  val_Index)

Retrieves the value of the species density in the primitive variable vector.

Parameters
[in]iRho_s

§ SetUndivided_Laplacian()

void CNumerics::SetUndivided_Laplacian ( su2double *  val_und_lapl_i,
su2double *  val_und_lapl_j 
)
inline

Set the value of undivided laplacian.

Parameters
[in]val_und_lapl_iUndivided laplacian at point i.
[in]val_und_lapl_jUndivided laplacian at point j.

§ SetVelIndex()

void CNumerics::SetVelIndex ( unsigned short  val_Index)

Retrieves the value of the velocity index in the primitive variable vector.

Parameters
[in]i(rho*u)

§ SetVelocity2_Inf()

void CNumerics::SetVelocity2_Inf ( su2double  val_velocity2)
inline

Set the freestream velocity square.

Parameters
[in]SetVelocity2_Inf- Value of the square of the freestream velocity.

§ SetVolume()

void CNumerics::SetVolume ( su2double  val_volume)
inline

Set the value of the volume of the control volume.

Parameters
[in]val_volumeVolume of the control volume.

§ SetVorticity()

void CNumerics::SetVorticity ( su2double *  val_vorticity_i,
su2double *  val_vorticity_j 
)
inline

Set the value of the vorticity.

Parameters
[in]val_vorticity- Value of the vorticity.

§ SetWindGust()

void CNumerics::SetWindGust ( su2double *  val_windgust_i,
su2double *  val_windgust_j 
)
inline

Set the wind gust value.

Parameters
[in]val_windgust_i- Wind gust of the point i.
[in]val_windgust_j- Wind gust of the point j.

§ SetWindGustDer()

void CNumerics::SetWindGustDer ( su2double *  val_windgustder_i,
su2double *  val_windgustder_j 
)
inline

Set the wind gust derivatives values.

Parameters
[in]val_windgust_i- Wind gust derivatives of the point i.
[in]val_windgust_j- Wind gust derivatives of the point j.

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