SU2
Public Member Functions | List of all members
CTemplateVariable Class Reference

Main class for defining the variables of the potential solver. More...

#include <variable_structure.hpp>

Inheritance diagram for CTemplateVariable:
CVariable

Public Member Functions

 CTemplateVariable (void)
 Constructor of the class.
 
 CTemplateVariable (su2double val_potential, unsigned short val_nDim, unsigned short val_nvar, CConfig *config)
 
 ~CTemplateVariable (void)
 Destructor of the class.
 
- Public Member Functions inherited from CVariable
 CVariable (void)
 Constructor of the class.
 
 CVariable (unsigned short val_nvar, CConfig *config)
 
 CVariable (unsigned short val_nDim, unsigned short val_nvar, CConfig *config)
 
virtual ~CVariable (void)
 Destructor of the class.
 
void SetSolution (su2double *val_solution)
 Set the value of the solution. More...
 
void SetSolution (unsigned short val_var, su2double val_solution)
 
void Add_DeltaSolution (unsigned short val_var, su2double val_solution)
 Add the value of the solution vector to the previous solution (incremental approach). More...
 
void SetNon_Physical (bool val_value)
 Set the value of the non-physical point. More...
 
su2double GetNon_Physical (void)
 Get the value of the non-physical point. More...
 
su2double GetSolution (unsigned short val_var)
 Get the solution. More...
 
su2double GetSolution_Old (unsigned short val_var)
 Get the old solution of the problem (Runge-Kutta method) More...
 
void SetSolution_Old (su2double *val_solution_old)
 Set the value of the old solution. More...
 
void SetSolution_Old (unsigned short val_var, su2double val_solution_old)
 
void Set_OldSolution (void)
 Set old variables to the value of the current variables.
 
void Set_Solution (void)
 Set variables to the value of the old variables.
 
void Set_Solution_time_n (void)
 Set the variable solution at time n.
 
void Set_Solution_time_n1 (void)
 Set the variable solution at time n-1.
 
void Set_Solution_time_n (su2double *val_sol)
 Set the variable solution at time n.
 
void Set_Solution_time_n1 (su2double *val_sol)
 Set the variable solution at time n-1.
 
void SetVelSolutionZero (void)
 Set to zero the velocity components of the solution.
 
void SetVelSolutionVector (su2double *val_vector)
 Specify a vector to set the velocity components of the solution. More...
 
void SetVelSolutionOldZero (void)
 Set to zero velocity components of the solution.
 
void SetVelSolutionOldVector (su2double *val_vector)
 Specify a vector to set the velocity components of the old solution. More...
 
void SetSolutionZero (void)
 Set to zero the solution.
 
void SetSolutionZero (unsigned short val_var)
 Set to zero a particular solution.
 
void AddSolution (unsigned short val_var, su2double val_solution)
 Add a value to the solution. More...
 
void AddClippedSolution (unsigned short val_var, su2double val_solution, su2double lowerlimit, su2double upperlimit)
 Add a value to the solution, clipping the values. More...
 
void AddConservativeSolution (unsigned short val_var, su2double val_solution, su2double val_density, su2double val_density_old, su2double lowerlimit, su2double upperlimit)
 Update the variables using a conservative format. More...
 
su2double * GetSolution (void)
 Get the solution of the problem. More...
 
su2double * GetSolution_Old (void)
 Get the old solution of the problem (Runge-Kutta method) More...
 
su2double * GetSolution_time_n (void)
 Get the solution at time n. More...
 
su2double * GetSolution_time_n1 (void)
 Get the solution at time n-1. More...
 
void SetResidual_Old (su2double *val_residual_old)
 Set the value of the old residual. More...
 
void AddResidual_Sum (su2double *val_residual)
 Add a value to the summed residual vector. More...
 
void SetResidualSumZero (void)
 Set summed residual vector to zero value.
 
virtual void SetVel_ResTruncError_Zero (unsigned short iSpecies)
 Set the velocity of the truncation error to zero.
 
su2double * GetResidual_Sum (void)
 Get the value of the summed residual. More...
 
su2double * GetResidual_Old (void)
 Get the value of the old residual. More...
 
void GetResidual_Sum (su2double *val_residual)
 Get the value of the summed residual. More...
 
void SetAuxVar (su2double val_auxvar)
 Set auxiliar variables, we are looking for the gradient of that variable. More...
 
su2double GetAuxVar (void)
 Get the value of the auxiliary variable. More...
 
void SetAuxVarGradientZero (void)
 Set the auxiliary variable gradient to zero value.
 
void SetAuxVarGradient (unsigned short val_dim, su2double val_gradient)
 Set the value of the auxiliary variable gradient. More...
 
void AddAuxVarGradient (unsigned short val_dim, su2double val_value)
 Add a value to the auxiliary variable gradient. More...
 
void SubtractAuxVarGradient (unsigned short val_dim, su2double val_value)
 Subtract a value to the auxiliary variable gradient. More...
 
su2double * GetAuxVarGradient (void)
 Get the gradient of the auxiliary variable. More...
 
su2double GetAuxVarGradient (unsigned short val_dim)
 Get the gradient of the auxiliary variable. More...
 
void AddRes_TruncError (su2double *val_truncation_error)
 Add a value to the truncation error. More...
 
void SubtractRes_TruncError (su2double *val_truncation_error)
 Subtract a value to the truncation error. More...
 
void SetRes_TruncErrorZero (void)
 Set the truncation error to zero.
 
void SetVal_ResTruncError_Zero (unsigned short val_var)
 Set the truncation error to zero.
 
void SetVel_ResTruncError_Zero (void)
 Set the velocity of the truncation error to zero.
 
void SetEnergy_ResTruncError_Zero (void)
 Set the velocity of the truncation error to zero.
 
su2double * GetResTruncError (void)
 Get the truncation error. More...
 
void GetResTruncError (su2double *val_trunc_error)
 Get the truncation error. More...
 
void SetGradient (su2double **val_gradient)
 Set the gradient of the solution. More...
 
void SetGradient (unsigned short val_var, unsigned short val_dim, su2double val_value)
 
void SetGradientZero (void)
 Set to zero the gradient of the solution.
 
void AddGradient (unsigned short val_var, unsigned short val_dim, su2double val_value)
 Add val_value to the solution gradient. More...
 
void SubtractGradient (unsigned short val_var, unsigned short val_dim, su2double val_value)
 Subtract val_value to the solution gradient. More...
 
su2double ** GetGradient (void)
 Get the value of the solution gradient. More...
 
su2double GetGradient (unsigned short val_var, unsigned short val_dim)
 Get the value of the solution gradient. More...
 
void SetLimiter (unsigned short val_var, su2double val_limiter)
 Set the value of the limiter. More...
 
virtual void SetLimiterPrimitive (unsigned short val_species, unsigned short val_var, su2double val_limiter)
 Set the value of the limiter. More...
 
virtual su2double GetLimiterPrimitive (unsigned short val_species, unsigned short val_var)
 Set the value of the limiter. More...
 
void SetSolution_Max (unsigned short val_var, su2double val_solution)
 Set the value of the max solution. More...
 
void SetSolution_Min (unsigned short val_var, su2double val_solution)
 Set the value of the min solution. More...
 
su2double * GetLimiter (void)
 Get the value of the slope limiter. More...
 
su2double GetLimiter (unsigned short val_var)
 Get the value of the slope limiter. More...
 
su2double GetSolution_Max (unsigned short val_var)
 Get the value of the min solution. More...
 
su2double GetSolution_Min (unsigned short val_var)
 Get the value of the min solution. More...
 
virtual su2double GetPreconditioner_Beta ()
 Get the value of the preconditioner Beta. More...
 
virtual void SetPreconditioner_Beta (su2double val_Beta)
 Set the value of the preconditioner Beta. More...
 
virtual su2double * GetWindGust ()
 Get the value of the wind gust. More...
 
virtual void SetWindGust (su2double *val_WindGust)
 Set the value of the wind gust. More...
 
virtual su2double * GetWindGustDer ()
 Get the value of the derivatives of the wind gust. More...
 
virtual void SetWindGustDer (su2double *val_WindGust)
 Set the value of the derivatives of the wind gust. More...
 
void SetDelta_Time (su2double val_delta_time)
 Set the value of the time step. More...
 
virtual void SetDelta_Time (su2double val_delta_time, unsigned short iSpecies)
 Set the value of the time step. More...
 
su2double GetDelta_Time (void)
 Get the value of the time step. More...
 
virtual su2double GetDelta_Time (unsigned short iSpecies)
 Get the value of the time step. More...
 
void SetMax_Lambda (su2double val_max_lambda)
 Set the value of the maximum eigenvalue. More...
 
void SetMax_Lambda_Inv (su2double val_max_lambda)
 Set the value of the maximum eigenvalue for the inviscid terms of the PDE. More...
 
virtual void SetMax_Lambda_Inv (su2double val_max_lambda, unsigned short val_species)
 Set the value of the maximum eigenvalue for the inviscid terms of the PDE. More...
 
void SetMax_Lambda_Visc (su2double val_max_lambda)
 Set the value of the maximum eigenvalue for the viscous terms of the PDE. More...
 
virtual void SetMax_Lambda_Visc (su2double val_max_lambda, unsigned short val_species)
 Set the value of the maximum eigenvalue for the viscous terms of the PDE. More...
 
void AddMax_Lambda (su2double val_max_lambda)
 Add a value to the maximum eigenvalue. More...
 
void AddMax_Lambda_Inv (su2double val_max_lambda)
 Add a value to the maximum eigenvalue for the inviscid terms of the PDE. More...
 
void AddMax_Lambda_Visc (su2double val_max_lambda)
 Add a value to the maximum eigenvalue for the viscous terms of the PDE. More...
 
su2double GetMax_Lambda (void)
 Get the value of the maximum eigenvalue. More...
 
su2double GetMax_Lambda_Inv (void)
 Get the value of the maximum eigenvalue for the inviscid terms of the PDE. More...
 
su2double GetMax_Lambda_Visc (void)
 Get the value of the maximum eigenvalue for the viscous terms of the PDE. More...
 
void SetLambda (su2double val_lambda)
 Set the value of the spectral radius. More...
 
virtual void SetLambda (su2double val_lambda, unsigned short val_iSpecies)
 Set the value of the spectral radius. More...
 
void AddLambda (su2double val_lambda)
 Add the value of the spectral radius. More...
 
virtual void AddLambda (su2double val_lambda, unsigned short val_iSpecies)
 Add the value of the spectral radius. More...
 
su2double GetLambda (void)
 Get the value of the spectral radius. More...
 
virtual su2double GetLambda (unsigned short val_iSpecies)
 Get the value of the spectral radius. More...
 
void SetSensor (su2double val_sensor)
 Set pressure sensor. More...
 
virtual void SetSensor (su2double val_sensor, unsigned short iSpecies)
 Set pressure sensor. More...
 
su2double GetSensor (void)
 Get the pressure sensor. More...
 
virtual su2double GetSensor (unsigned short iSpecies)
 Get the pressure sensor. More...
 
void SetUndivided_Laplacian (unsigned short val_var, su2double val_undivided_laplacian)
 Set the value of the undivided laplacian of the solution. More...
 
void AddUnd_Lapl (su2double *val_und_lapl)
 Add the value of the undivided laplacian of the solution. More...
 
void SubtractUnd_Lapl (su2double *val_und_lapl)
 Subtract the value of the undivided laplacian of the solution. More...
 
void SubtractUnd_Lapl (unsigned short val_var, su2double val_und_lapl)
 Subtract the value of the undivided laplacian of the solution. More...
 
void SetUnd_LaplZero (void)
 Set the undivided laplacian of the solution to zero.
 
void SetUnd_Lapl (unsigned short val_var, su2double val_und_lapl)
 Set a value to the undivided laplacian. More...
 
su2double * GetUndivided_Laplacian (void)
 Get the undivided laplacian of the solution. More...
 
su2double GetUndivided_Laplacian (unsigned short val_var)
 Get the undivided laplacian of the solution. More...
 
virtual su2double GetDensity (void)
 A virtual member. More...
 
virtual su2double GetDensity (unsigned short val_iSpecies)
 A virtual member. More...
 
virtual su2double GetMassFraction (unsigned short val_Species)
 A virtual member. More...
 
virtual su2double GetEnergy (void)
 A virtual member. More...
 
virtual su2double * GetForceProj_Vector (void)
 A virtual member. More...
 
virtual su2double * GetObjFuncSource (void)
 A virtual member. More...
 
virtual su2double * GetIntBoundary_Jump (void)
 A virtual member. More...
 
virtual su2double GetEddyViscosity (void)
 A virtual member. More...
 
virtual su2double GetEnthalpy (void)
 A virtual member. More...
 
virtual su2double GetPressure (void)
 A virtual member. More...
 
virtual su2double GetProjVel (su2double *val_vector)
 A virtual member. More...
 
virtual su2double GetProjVel (su2double *val_vector, unsigned short val_species)
 A virtual member. More...
 
virtual su2double GetSoundSpeed (void)
 A virtual member. More...
 
virtual su2double GetBetaInc2 (void)
 A virtual member. More...
 
virtual su2double GetTemperature (void)
 A virtual member. More...
 
virtual su2double GetTemperature_ve (void)
 A virtual member. More...
 
virtual su2double GetRhoCv_tr (void)
 A virtual member – Get the mixture specific heat at constant volume (trans.-rot.). More...
 
virtual su2double GetRhoCv_ve (void)
 A virtual member – Get the mixture specific heat at constant volume (vib.-el.). More...
 
virtual su2double GetVelocity (unsigned short val_dim)
 A virtual member. More...
 
virtual su2double GetVelocity2 (void)
 A virtual member. More...
 
virtual su2double GetVelocity2 (unsigned short val_species)
 A virtual member. More...
 
virtual su2double GetLaminarViscosity (void)
 A virtual member. More...
 
virtual su2double GetLaminarViscosity (unsigned short iSpecies)
 A virtual member. More...
 
virtual su2double * GetDiffusionCoeff (void)
 A virtual member. More...
 
virtual su2double GetThermalConductivity (void)
 A virtual member. More...
 
virtual su2double GetSpecificHeatCp (void)
 A virtual member. More...
 
virtual su2double GetThermalConductivity_ve (void)
 A virtual member. More...
 
virtual void SetGammaSep (su2double gamma_sep)
 A virtual member. More...
 
virtual void SetGammaEff (void)
 A virtual member. More...
 
virtual su2double GetIntermittency ()
 A virtual member. More...
 
virtual su2double * GetVorticity (void)
 A virtual member. More...
 
virtual su2double GetStrainMag (void)
 A virtual member. More...
 
virtual void SetForceProj_Vector (su2double *val_ForceProj_Vector)
 A virtual member. More...
 
virtual void SetObjFuncSource (su2double *val_SetObjFuncSource)
 A virtual member. More...
 
virtual void SetIntBoundary_Jump (su2double *val_IntBoundary_Jump)
 A virtual member. More...
 
virtual void SetEddyViscosity (su2double eddy_visc)
 A virtual member. More...
 
virtual void SetEnthalpy (void)
 A virtual member.
 
virtual bool SetPrimVar (CConfig *config)
 A virtual member.
 
virtual bool SetPrimVar (CFluidModel *FluidModel)
 A virtual member.
 
virtual void SetSecondaryVar (CFluidModel *FluidModel)
 A virtual member.
 
virtual bool Cons2PrimVar (CConfig *config, su2double *U, su2double *V, su2double *dPdU, su2double *dTdU, su2double *dTvedU)
 A virtual member.
 
virtual void Prim2ConsVar (CConfig *config, su2double *V, su2double *U)
 A virtual member.
 
virtual bool SetPrimVar (su2double SharpEdge_Distance, bool check, CConfig *config)
 A virtual member.
 
virtual bool SetPrimVar (su2double eddy_visc, su2double turb_ke, CConfig *config)
 A virtual member.
 
virtual bool SetPrimVar (su2double eddy_visc, su2double turb_ke, CFluidModel *FluidModel)
 A virtual member.
 
virtual bool SetPrimVar (su2double Density_Inf, CConfig *config)
 A virtual member.
 
virtual bool SetPrimVar (su2double Density_Inf, su2double Viscosity_Inf, su2double eddy_visc, su2double turb_ke, CConfig *config)
 A virtual member.
 
virtual su2double GetPrimitive (unsigned short val_var)
 A virtual member.
 
virtual void SetPrimitive (unsigned short val_var, su2double val_prim)
 A virtual member.
 
virtual void SetPrimitive (su2double *val_prim)
 A virtual member.
 
virtual su2double * GetPrimitive (void)
 A virtual member.
 
virtual su2double GetSecondary (unsigned short val_var)
 A virtual member.
 
virtual void SetSecondary (unsigned short val_var, su2double val_secondary)
 A virtual member.
 
virtual void SetSecondary (su2double *val_secondary)
 A virtual member.
 
virtual void SetdPdrho_e (su2double dPdrho_e)
 A virtual member.
 
virtual void SetdPde_rho (su2double dPde_rho)
 A virtual member.
 
virtual void SetdTdrho_e (su2double dTdrho_e)
 A virtual member.
 
virtual void SetdTde_rho (su2double dTde_rho)
 A virtual member.
 
virtual void Setdmudrho_T (su2double dmudrho_T)
 A virtual member.
 
virtual void SetdmudT_rho (su2double dmudT_rho)
 A virtual member.
 
virtual void Setdktdrho_T (su2double dktdrho_T)
 A virtual member.
 
virtual void SetdktdT_rho (su2double dktdT_rho)
 A virtual member.
 
virtual su2double * GetSecondary (void)
 A virtual member.
 
virtual void SetDensity (su2double val_density)
 A virtual member.
 
virtual void SetPressure (void)
 A virtual member.
 
virtual void SetVelocity (void)
 A virtual member.
 
virtual void SetBetaInc2 (su2double val_betainc2)
 A virtual member.
 
virtual void SetPhi_Old (su2double *val_phi)
 A virtual member. More...
 
virtual bool SetPressure (su2double Gamma)
 A virtual member. More...
 
virtual bool SetPressure (CConfig *config)
 A virtual member. More...
 
virtual bool SetPressure (su2double Gamma, su2double turb_ke)
 A virtual member.
 
virtual su2double CalcEve (su2double *V, CConfig *config, unsigned short val_Species)
 Calculates vib.-el. energy per mass, \(e^{vib-el}_s\), for input species (not including KE)
 
virtual su2double CalcHs (su2double *V, CConfig *config, unsigned short val_Species)
 Calculates enthalpy per mass, \(h_s\), for input species (not including KE)
 
virtual su2double CalcCvve (su2double val_Tve, CConfig *config, unsigned short val_Species)
 Calculates enthalpy per mass, \(Cv_s\), for input species (not including KE)
 
virtual void CalcdPdU (su2double *V, CConfig *config, su2double *dPdU)
 A virtual member. More...
 
virtual void CalcdTdU (su2double *V, CConfig *config, su2double *dTdU)
 Set partial derivative of temperature w.r.t. density \(\frac{\partial P}{\partial \rho_s}\). More...
 
virtual void CalcdTvedU (su2double *V, CConfig *config, su2double *dTdU)
 Set partial derivative of temperature w.r.t. density \(\frac{\partial P}{\partial \rho_s}\). More...
 
virtual su2double * GetdPdU (void)
 A virtual member.
 
virtual su2double * GetdTdU (void)
 A virtual member.
 
virtual su2double * GetdTvedU (void)
 A virtual member.
 
virtual bool SetDensity (void)
 A virtual member.
 
virtual void SetDeltaPressure (su2double *val_velocity, su2double Gamma)
 A virtual member. More...
 
virtual bool SetSoundSpeed (su2double Gamma)
 A virtual member. More...
 
virtual bool SetSoundSpeed (CConfig *config)
 A virtual member. More...
 
virtual bool SetSoundSpeed (void)
 A virtual member.
 
virtual bool SetTemperature (su2double Gas_Constant)
 A virtual member. More...
 
virtual bool SetTemperature_ve (su2double val_Tve)
 Sets the vibrational electronic temperature of the flow. More...
 
virtual bool SetTemperature (CConfig *config)
 A virtual member. More...
 
virtual void SetPrimitive (CConfig *config)
 A virtual member. More...
 
virtual void SetPrimitive (CConfig *config, su2double *Coord)
 A virtual member. More...
 
virtual void SetWallTemperature (su2double Temperature_Wall)
 A virtual member. More...
 
virtual void SetWallTemperature (su2double *Temperature_Wall)
 A virtual member. More...
 
virtual void SetThermalCoeff (CConfig *config)
 Set the thermal coefficient. More...
 
virtual void SetStress_FEM (unsigned short iVar, su2double val_stress)
 A virtual member.
 
virtual void AddStress_FEM (unsigned short iVar, su2double val_stress)
 A virtual member.
 
virtual su2double * GetStress_FEM (void)
 A virtual member.
 
virtual void SetVonMises_Stress (su2double val_stress)
 A virtual member.
 
virtual su2double GetVonMises_Stress (void)
 A virtual member.
 
virtual void SetTraction (unsigned short iVar, unsigned short jVar, su2double val_traction)
 A virtual member.
 
virtual void AddTraction (unsigned short iVar, unsigned short jVar, su2double val_traction)
 A virtual member.
 
virtual su2double ** GetTraction (void)
 A virtual member.
 
virtual void Add_SurfaceLoad_Res (su2double *val_surfForce)
 A virtual member.
 
virtual su2double * Get_SurfaceLoad_Res (void)
 A virtual member.
 
virtual su2double Get_SurfaceLoad_Res (unsigned short iVar)
 A virtual member.
 
virtual void Clear_SurfaceLoad_Res (void)
 A virtual member.
 
virtual void Set_SurfaceLoad_Res_n (void)
 A virtual member.
 
virtual su2double Get_SurfaceLoad_Res_n (unsigned short iVar)
 A virtual member.
 
virtual void Add_BodyForces_Res (su2double *val_bodyForce)
 A virtual member.
 
virtual su2double * Get_BodyForces_Res (void)
 A virtual member.
 
virtual su2double Get_BodyForces_Res (unsigned short iVar)
 A virtual member.
 
virtual void Clear_BodyForces_Res (void)
 A virtual member.
 
virtual void Set_FlowTraction (su2double *val_flowTraction)
 A virtual member.
 
virtual void Add_FlowTraction (su2double *val_flowTraction)
 A virtual member.
 
virtual su2double * Get_FlowTraction (void)
 A virtual member.
 
virtual su2double Get_FlowTraction (unsigned short iVar)
 A virtual member.
 
virtual void Set_FlowTraction_n (void)
 A virtual member.
 
virtual su2double Get_FlowTraction_n (unsigned short iVar)
 A virtual member.
 
virtual void Clear_FlowTraction (void)
 A virtual member.
 
virtual void SetVelocity2 (void)
 A virtual member.
 
virtual void SetVelocity_Old (su2double *val_velocity)
 A virtual member. More...
 
virtual void SetLaminarViscosity (su2double laminarViscosity)
 A virtual member. More...
 
virtual void SetLaminarViscosity (CConfig *config)
 A virtual member. More...
 
virtual void SetThermalConductivity (su2double thermalConductivity)
 A virtual member. More...
 
virtual void SetThermalConductivity (CConfig *config)
 A virtual member. More...
 
virtual void SetSpecificHeatCp (su2double Cp)
 A virtual member. More...
 
virtual bool SetVorticity (bool val_limiter)
 A virtual member.
 
virtual bool SetStrainMag (bool val_limiter)
 A virtual member.
 
virtual void SetVelSolutionOldDVector (void)
 A virtual member.
 
virtual void SetVelSolutionDVector (void)
 A virtual member.
 
virtual void SetGradient_PrimitiveZero (unsigned short val_primvar)
 A virtual member.
 
virtual void AddGradient_Primitive (unsigned short val_var, unsigned short val_dim, su2double val_value)
 A virtual member. More...
 
virtual void SubtractGradient_Primitive (unsigned short val_var, unsigned short val_dim, su2double val_value)
 A virtual member. More...
 
virtual su2double GetGradient_Primitive (unsigned short val_var, unsigned short val_dim)
 A virtual member. More...
 
virtual su2double GetLimiter_Primitive (unsigned short val_var)
 A virtual member. More...
 
virtual void SetGradient_Primitive (unsigned short val_var, unsigned short val_dim, su2double val_value)
 A virtual member. More...
 
virtual void SetLimiter_Primitive (unsigned short val_var, su2double val_value)
 A virtual member. More...
 
virtual su2double ** GetGradient_Primitive (void)
 A virtual member. More...
 
virtual su2double * GetLimiter_Primitive (void)
 A virtual member. More...
 
virtual void SetGradient_SecondaryZero (unsigned short val_secondaryvar)
 A virtual member.
 
virtual void AddGradient_Secondary (unsigned short val_var, unsigned short val_dim, su2double val_value)
 A virtual member. More...
 
virtual void SubtractGradient_Secondary (unsigned short val_var, unsigned short val_dim, su2double val_value)
 A virtual member. More...
 
virtual su2double GetGradient_Secondary (unsigned short val_var, unsigned short val_dim)
 A virtual member. More...
 
virtual su2double GetLimiter_Secondary (unsigned short val_var)
 A virtual member. More...
 
virtual void SetGradient_Secondary (unsigned short val_var, unsigned short val_dim, su2double val_value)
 A virtual member. More...
 
virtual void SetLimiter_Secondary (unsigned short val_var, su2double val_value)
 A virtual member. More...
 
virtual su2double ** GetGradient_Secondary (void)
 A virtual member. More...
 
virtual su2double * GetLimiter_Secondary (void)
 A virtual member. More...
 
virtual void SetBlendingFunc (su2double val_viscosity, su2double val_dist, su2double val_density)
 Set the blending function for the blending of k-w and k-eps. More...
 
virtual su2double GetF1blending (void)
 Get the first blending function of the SST model.
 
virtual su2double GetF2blending (void)
 Get the second blending function of the SST model.
 
virtual su2double GetCrossDiff (void)
 Get the value of the cross diffusion of tke and omega.
 
virtual su2double GetmuT (void)
 Get the value of the eddy viscosity. More...
 
virtual void SetmuT (su2double val_muT)
 Set the value of the eddy viscosity. More...
 
virtual void AddMax_Lambda_Inv (su2double val_max_lambda, unsigned short iSpecies)
 Add a value to the maximum eigenvalue for the inviscid terms of the PDE. More...
 
virtual void AddMax_Lambda_Visc (su2double val_max_lambda, unsigned short iSpecies)
 Add a value to the maximum eigenvalue for the viscous terms of the PDE. More...
 
virtual void SetHarmonicBalance_Source (unsigned short val_var, su2double val_source)
 A virtual member. More...
 
virtual su2double GetHarmonicBalance_Source (unsigned short val_var)
 A virtual member.
 
virtual void SetEddyViscSens (su2double *val_EddyViscSens, unsigned short numTotalVar)
 Set the Eddy Viscosity Sensitivity of the problem. More...
 
virtual su2double * GetEddyViscSens (void)
 Get the Eddy Viscosity Sensitivity of the problem. More...
 
virtual void SetSolution_Direct (su2double *val_solution_direct)
 A virtual member. Set the direct solution for the adjoint solver. More...
 
virtual su2double * GetSolution_Direct (void)
 A virtual member. Get the direct solution for the adjoint solver. More...
 
virtual void SetSolution_time_n (void)
 Set the value of the old solution. More...
 
virtual void SetSolution_time_n (unsigned short val_var, su2double val_solution)
 Set the value of the old solution. More...
 
virtual void SetSolution_time_n (su2double *val_solution_time_n)
 Set the value of the old solution. More...
 
virtual void SetSolution_Vel (su2double *val_solution)
 Set the value of the velocity (Structural Analysis). More...
 
virtual void SetSolution_Vel (unsigned short val_var, su2double val_solution_vel)
 
virtual void SetSolution_Vel_time_n (su2double *val_solution_vel_time_n)
 Set the value of the velocity (Structural Analysis) at time n. More...
 
virtual void SetSolution_Vel_time_n (void)
 Set the value of the velocity (Structural Analysis) at time n.
 
virtual void SetSolution_Vel_time_n (unsigned short val_var, su2double val_solution_vel_time_n)
 
virtual su2double GetSolution_time_n (unsigned short val_var)
 Get the solution at time n. More...
 
virtual su2double GetSolution_Vel (unsigned short val_var)
 Get the velocity (Structural Analysis). More...
 
virtual su2double * GetSolution_Vel (void)
 Get the solution of the problem. More...
 
virtual su2double GetSolution_Vel_time_n (unsigned short val_var)
 Get the velocity of the nodes (Structural Analysis) at time n. More...
 
virtual su2double * GetSolution_Vel_time_n (void)
 Get the solution at time n. More...
 
virtual void SetSolution_Accel (su2double *val_solution_accel)
 Set the value of the acceleration (Structural Analysis). More...
 
virtual void SetSolution_Accel (unsigned short val_var, su2double val_solution_accel)
 
virtual void SetSolution_Accel_time_n (su2double *val_solution_accel_time_n)
 Set the value of the acceleration (Structural Analysis) at time n. More...
 
virtual void SetSolution_Accel_time_n (void)
 Set the value of the acceleration (Structural Analysis) at time n.
 
virtual void SetSolution_Accel_time_n (unsigned short val_var, su2double val_solution_accel_time_n)
 
virtual su2double GetSolution_Accel (unsigned short val_var)
 Get the acceleration (Structural Analysis). More...
 
virtual su2double * GetSolution_Accel (void)
 Get the solution of the problem. More...
 
virtual su2double GetSolution_Accel_time_n (unsigned short val_var)
 Get the acceleration of the nodes (Structural Analysis) at time n. More...
 
virtual su2double * GetSolution_Accel_time_n (void)
 Get the solution at time n. More...
 
virtual void SetSolution_Pred (void)
 A virtual member. Set the value of the solution predictor.
 
virtual void SetSolution_Pred (su2double *val_solution_pred)
 A virtual member. Set the value of the old solution. More...
 
virtual void SetSolution_Pred (unsigned short val_var, su2double val_solution_pred)
 A virtual member. Set the value of the solution predicted. More...
 
virtual su2double GetSolution_Pred (unsigned short val_var)
 A virtual member. Get the value of the solution predictor. More...
 
virtual su2double * GetSolution_Pred (void)
 A virtual member. Get the solution at time n. More...
 
virtual void SetSolution_Pred_Old (void)
 A virtual member. Set the value of the solution predictor.
 
virtual void SetSolution_Pred_Old (su2double *val_solution_pred_Old)
 A virtual member. Set the value of the old solution. More...
 
virtual void SetSolution_Pred_Old (unsigned short val_var, su2double val_solution_pred_old)
 A virtual member. Set the value of the old solution predicted. More...
 
virtual su2double GetSolution_Pred_Old (unsigned short val_var)
 A virtual member. Get the value of the solution predictor. More...
 
virtual su2double * GetSolution_Pred_Old (void)
 A virtual member. Get the solution at time n. More...
 
virtual void SetPrestretch (unsigned short iVar, su2double val_prestretch)
 A virtual member.
 
virtual su2double * GetPrestretch (void)
 A virtual member.
 
virtual su2double GetPrestretch (unsigned short iVar)
 A virtual member.
 
void RegisterSolution (bool input)
 Register the variables in the solution array as input/output variable. More...
 
void RegisterSolution_time_n ()
 Register the variables in the solution_time_n array as input/output variable.
 
void RegisterSolution_time_n1 ()
 Register the variables in the solution_time_n1 array as input/output variable.
 
void SetAdjointSolution (su2double *adj_sol)
 Set the adjoint values of the solution. More...
 
void GetAdjointSolution (su2double *adj_sol)
 Get the adjoint values of the solution. More...
 
void SetAdjointSolution_time_n (su2double *adj_sol)
 Set the adjoint values of the solution at time n. More...
 
void GetAdjointSolution_time_n (su2double *adj_sol)
 Get the adjoint values of the solution at time n. More...
 
void SetAdjointSolution_time_n1 (su2double *adj_sol)
 Set the adjoint values of the solution at time n-1. More...
 
void GetAdjointSolution_time_n1 (su2double *adj_sol)
 Get the adjoint values of the solution at time n-1. More...
 
virtual void SetSensitivity (unsigned short iDim, su2double val)
 Set the sensitivity at the node. More...
 
virtual su2double GetSensitivity (unsigned short iDim)
 Get the Sensitivity at the node. More...
 
virtual void SetDual_Time_Derivative (unsigned short iVar, su2double der)
 
virtual void SetDual_Time_Derivative_n (unsigned short iVar, su2double der)
 
virtual su2double GetDual_Time_Derivative (unsigned short iVar)
 
virtual su2double GetDual_Time_Derivative_n (unsigned short iVar)
 

Additional Inherited Members

- Protected Attributes inherited from CVariable
su2double * Solution
 Solution of the problem.
 
su2double * Solution_Old
 Old solution of the problem R-K.
 
bool Non_Physical
 Non-physical points in the solution (force first order).
 
su2double * Solution_time_n
 Solution of the problem at time n for dual-time stepping technique.
 
su2double * Solution_time_n1
 Solution of the problem at time n-1 for dual-time stepping technique.
 
su2double ** Gradient
 Gradient of the solution of the problem.
 
su2double * Limiter
 Limiter of the solution of the problem.
 
su2double * Solution_Max
 Max solution for limiter computation.
 
su2double * Solution_Min
 Min solution for limiter computation.
 
su2double AuxVar
 Auxiliar variable for gradient computation.
 
su2double * Grad_AuxVar
 Gradient of the auxiliar variable.
 
su2double Delta_Time
 Time step.
 
su2double Max_Lambda
 Maximun eingenvalue.
 
su2double Max_Lambda_Inv
 Maximun inviscid eingenvalue.
 
su2double Max_Lambda_Visc
 Maximun viscous eingenvalue.
 
su2double Lambda
 Value of the eingenvalue.
 
su2double Sensor
 Pressure sensor for high order central scheme.
 
su2double * Undivided_Laplacian
 Undivided laplacian of the solution.
 
su2double * Res_TruncError
 Truncation error for multigrid cycle.
 
su2double * Residual_Old
 Auxiliar structure for residual smoothing.
 
su2double * Residual_Sum
 Auxiliar structure for residual smoothing.
 
unsigned short nVar
 Number of variables of the problem, note that this variable cannnot be static, it is possible to have different number of nVar in the same problem.
 
unsigned short nPrimVar
 
unsigned short nPrimVarGrad
 Number of variables of the problem, note that this variable cannnot be static, it is possible to have different number of nVar in the same problem.
 
unsigned short nSecondaryVar
 
unsigned short nSecondaryVarGrad
 Number of variables of the problem, note that this variable cannnot be static, it is possible to have different number of nVar in the same problem.
 
- Static Protected Attributes inherited from CVariable
static unsigned short nDim = 0
 Number of dimension of the problem.
 

Detailed Description

Main class for defining the variables of the potential solver.

Author
F. Palacios
Version
5.0.0 "Raven"

Constructor & Destructor Documentation

§ CTemplateVariable()

CTemplateVariable::CTemplateVariable ( su2double  val_potential,
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_potential- Value of the potential solution (initialization value).
[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.

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