![]() |
Documentation 6b54b78464
|
Class for defining the 2T (trans-rotational and vibro-electronic) nonequilibrium gas model. More...
#include <CNEMOGas.hpp>
Public Member Functions | |
| CNEMOGas (const CConfig *config, unsigned short val_nDim) | |
| Constructor of the class. | |
| virtual void | SetTDStateRhosTTv (vector< su2double > &val_rhos, su2double val_temperature, su2double val_temperature_ve) |
| Set mixture thermodynamic state. | |
| void | SetTDStatePTTv (su2double P, const su2double *val_massfrac, su2double val_temperature, su2double val_temperature_ve) |
| Set mixture thermodynamic state. | |
| virtual const vector< su2double > & | GetSpeciesCvTraRot ()=0 |
| Get species T-R specific heats at constant volume. | |
| virtual vector< su2double > & | ComputeSpeciesCvVibEle (su2double val_T)=0 |
| Compute species V-E specific heats at constant volume. | |
| virtual vector< su2double > & | ComputeMixtureEnergies ()=0 |
| Compute mixture energies (total internal energy and vibrational energy). | |
| virtual vector< su2double > & | ComputeNetProductionRates (bool implicit, const su2double *V, const su2double *eve, const su2double *cvve, const su2double *dTdU, const su2double *dTvedU, su2double **val_jacobian)=0 |
| Compute species net production rates. | |
| virtual void | ChemistryJacobian (unsigned short iReaction, const su2double *V, const su2double *eve, const su2double *cvve, const su2double *dTdU, const su2double *dTvedU, su2double **val_jacobian) |
| Populate chemical source term jacobian. | |
| virtual su2double | ComputeEveSourceTerm () |
| Compute vibrational energy source term. | |
| virtual void | GetEveSourceTermJacobian (const su2double *V, const su2double *eve, const su2double *cvve, const su2double *dTdU, const su2double *dTvedU, su2double **val_jacobian) |
| Compute vibration enery source term jacobian. | |
| virtual vector< su2double > & | ComputeSpeciesEve (su2double val_T, bool vibe_only=false)=0 |
| Compute vector of species V-E energy. | |
| virtual vector< su2double > & | ComputeSpeciesEnthalpy (su2double val_T, su2double val_Tve, su2double *val_eves)=0 |
| Compute species enthalpies. | |
| virtual vector< su2double > & | GetDiffusionCoeff ()=0 |
| Get species diffusion coefficients. | |
| virtual su2double | GetViscosity () |
| Get viscosity. | |
| virtual vector< su2double > & | GetThermalConductivities ()=0 |
| Get T-R and V-E thermal conductivities vector. | |
| virtual vector< su2double > & | ComputeTemperatures (vector< su2double > &val_rhos, su2double rhoEmix, su2double rhoEve, su2double rhoEvel, su2double Tve_old)=0 |
| Compute translational and vibrational temperatures vector. | |
| su2double | ComputeSoundSpeed () |
| Compute speed of sound. | |
| su2double | ComputePressure () |
| Compute pressure. | |
| su2double | ComputeGasConstant () |
| Compute gas constant. | |
| su2double | ComputeGamma () |
| Compute ratio of specific heats (Gamma). | |
| void | ComputedPdU (const su2double *V, const vector< su2double > &val_eves, su2double *val_dPdU) |
| Compute derivative of pressure w.r.t. conservative variables. | |
| void | ComputedTdU (const su2double *V, su2double *val_dTdU) |
| Compute derivative of temperature w.r.t. conservative variables. | |
| void | ComputedTvedU (const su2double *V, const vector< su2double > &val_eves, su2double *val_dTvedU) |
| Compute derivative of vibrational temperature w.r.t. conservative variables. | |
| void | SetT (su2double val_temperature) |
| Set the translational temperature. | |
| void | SetTve (su2double val_temperature_ve) |
| Set the vibrational temperature. | |
| void | SetEves (vector< su2double > &val_eves) |
| Set species vibrational energies. | |
| su2double | ComputerhoCvtr () |
| Compute rhoCvtr. | |
| su2double | ComputerhoCvve () |
| Compute rhoCvve. | |
| virtual const vector< su2double > & | GetSpeciesMolarMass ()=0 |
| Get species molar mass. | |
| virtual const vector< su2double > & | GetRefTemperature ()=0 |
| Get reference temperature. | |
| virtual const vector< su2double > & | GetSpeciesFormationEnthalpy ()=0 |
| Get species formation enthalpy. | |
| const su2matrix< int > & | GetCatalyticRecombination () const |
| Get catalytic wall recombination indices and constants. | |
Public Member Functions inherited from CFluidModel | |
| virtual | ~CFluidModel () |
| su2double | GetPressure () const |
| Get fluid pressure. | |
| su2double | GetTemperature () const |
| Get fluid temperature. | |
| su2double | GetEntropy () const |
| Get fluid entropy. | |
| su2double | GetStaticEnergy () const |
| Get fluid internal energy. | |
| su2double | GetEnthalpy () const |
| Get fluid enthalpy. | |
| su2double | GetDensity () const |
| Get fluid density. | |
| su2double | GetSoundSpeed () const |
| Get fluid speed of sound. | |
| su2double | GetSoundSpeed2 () const |
| Get fluid speed of sound squared. | |
| su2double | GetCp () const |
| Get fluid specific heat at constant pressure. | |
| su2double | GetCv () const |
| Get fluid specific heat at constant volume. | |
| virtual unsigned short | GetNScalars () const |
| Flamelet LUT - Get the number of transported scalars. | |
| virtual unsigned long | EvaluateDataSet (const vector< su2double > &input_scalar, unsigned short lookup_type, vector< su2double > &output_refs) |
| Evaluate data-set for flamelet or data-driven fluid simulations. | |
| virtual su2double | GetLaminarViscosity () |
| Get fluid dynamic viscosity. | |
| virtual su2double | GetThermalConductivity () |
| Get fluid thermal conductivity. | |
| virtual su2double | GetMassDiffusivity (int iVar) |
| Get fluid mass diffusivity. | |
| virtual void | GetEnthalpyDiffusivity (su2double *enthalpy_diffusions=nullptr) const |
| Get the enthalpy diffusivity terms for all species being solved. | |
| virtual void | GetGradEnthalpyDiffusivity (su2double *grad_enthalpy_diffusions=nullptr) const |
| Get the gradient of enthalpy diffusivity terms for all species being solved. | |
| su2double | GetdPdrho_e () const |
| Get fluid pressure partial derivative. | |
| su2double | GetdPde_rho () const |
| Get fluid pressure partial derivative. | |
| su2double | GetdTdrho_e () const |
| Get fluid temperature partial derivative. | |
| su2double | GetdTde_rho () const |
| Get fluid temperature partial derivative. | |
| su2double | Getdhdrho_P () const |
| Get fluid enthalpy partial derivative. | |
| su2double | GetdhdP_rho () const |
| Get fluid enthalpy partial derivative. | |
| su2double | Getdsdrho_P () const |
| Get fluid entropy partial derivative. | |
| su2double | GetdsdP_rho () const |
| Get fluid entropy partial derivative. | |
| su2double | Getdmudrho_T () |
| Get fluid dynamic viscosity partial derivative. | |
| su2double | GetdmudT_rho () |
| Get fluid dynamic viscosity partial derivative. | |
| su2double | Getdktdrho_T () const |
| Get fluid thermal conductivity partial derivative. | |
| su2double | GetdktdT_rho () const |
| Get fluid thermal conductivity partial derivative. | |
| virtual void | SetCpModel (const CConfig *config, su2double val_Temperature_Ref) |
| Set specific heat Cp model. | |
| virtual void | SetLaminarViscosityModel (const CConfig *config) |
| Set viscosity model. | |
| virtual void | SetThermalConductivityModel (const CConfig *config) |
| Set thermal conductivity model. | |
| virtual void | SetMassDiffusivityModel (const CConfig *config) |
| Set mass diffusivity model. | |
| virtual void | SetTDState_rhoe (su2double rho, su2double e) |
| virtual member that would be different for each gas model implemented | |
| virtual void | SetTDState_PT (su2double P, su2double T) |
| virtual member that would be different for each gas model implemented | |
| virtual void | SetTDState_Prho (su2double P, su2double rho) |
| virtual member that would be different for each gas model implemented | |
| virtual void | SetEnergy_Prho (su2double P, su2double rho) |
| virtual member that would be different for each gas model implemented | |
| virtual void | SetTDState_hs (su2double h, su2double s) |
| virtual member that would be different for each gas model implemented | |
| virtual void | SetTDState_rhoT (su2double rho, su2double T) |
| virtual member that would be different for each gas model implemented | |
| virtual void | SetTDState_Ps (su2double P, su2double s) |
| virtual member that would be different for each gas model implemented | |
| virtual void | ComputeDerivativeNRBC_Prho (su2double P, su2double rho) |
| virtual member that would be different for each gas model implemented | |
| virtual void | SetTDState_T (su2double val_Temperature, const su2double *val_scalars=nullptr) |
| Virtual member. | |
| virtual void | SetTDState_h (su2double val_enthalpy, const su2double *val_scalars=nullptr) |
| Virtual member. | |
| void | SetEddyViscosity (su2double val_Mu_Turb) |
| Set fluid eddy viscosity provided by a turbulence model needed for computing effective thermal conductivity. | |
| void | SetPressure (su2double val_pressure) |
| Set the thermodynamic pressure of the incompressible fluid models. | |
| virtual unsigned long | GetExtrapolation () const |
| Get fluid model extrapolation instance. | |
| virtual bool | GetPreferentialDiffusion () const |
| Get the state of the Preferential diffusion model for flamelet simulations. | |
| virtual unsigned long | GetnIter_Newton () |
| Get number of Newton solver iterations. | |
Protected Attributes | |
| bool | frozen |
| Indicates if mixture is frozen. | |
| bool | ionization |
| Presence of charged species in gas mixture. | |
| string | gas_model |
| String gas model. | |
| unsigned short | nSpecies |
| Number of species in the gas mixture. | |
| unsigned short | nHeavy |
| Number of heavy particles in gas. | |
| unsigned short | nEl |
| Number of electrons in gas. | |
| unsigned short | nDim |
| Number of dimensions. | |
| unsigned short | nEnergyEq = 2 |
| Number of energy equations for the 2T model. | |
| TRANSCOEFFMODEL | Kind_TransCoeffModel |
| Transport coefficients model for NEMO solver. | |
| unsigned | iSpecies |
| Common iteration counter for species. | |
| unsigned | jSpecies |
| Common iteration counter for species. | |
| unsigned | iDim |
| Common iteration counter for dimensions. | |
| su2double | gamma {0.0} |
| Specific heat ratio. | |
| su2double | omega {0.0} |
| Vibrational energy source term. | |
| su2double | T {0.0} |
| Translational temperature. | |
| su2double | Tve {0.0} |
| Vibrational temperature. | |
| su2double | ThermalCond_tr {0.0} |
| T-R thermal conductivity of the gas mixture. | |
| su2double | ThermalCond_ve {0.0} |
| V-E thermal conductivity of the gas mixture. | |
| su2double | RuSI {UNIVERSAL_GAS_CONSTANT} |
| Universal gas constant [J/(mol*K)]. | |
| su2double | Ru {1000.0*RuSI} |
| Universal gas constant [J/(kmol*K)]. | |
| su2double | GasConstant {0.0} |
| Universal gas constant [J/(kmol*K)]. | |
| su2double | rhoCvtr {0.0} |
| density times T-R specific heat | |
| su2double | rhoCvve {0.0} |
| density times V-E specific heat | |
| vector< su2double > | MolarMass |
| Species molar mass. | |
| vector< su2double > | MassFrac |
| Species mass fractions. | |
| vector< su2double > | rhos |
| Species partial densities. | |
| vector< su2double > | Cvtrs |
| Species T-R specific heats at constant volume. | |
| vector< su2double > | Cvves |
| Species V-E specific heats at constant volume. | |
| vector< su2double > | energies |
| Mixture energies (total internal energy and vibrational energy) | |
| vector< su2double > | eves |
| Vector of species total internal and V-E energies (dimension 2 * nSpecies) | |
| vector< su2double > | temperatures |
| translational and vibrational temperatures vector | |
| vector< su2double > | ThermalConductivities |
| T-R and V-E Thermal conductivities vector. | |
| vector< su2double > | hs |
| Species enthalpies. | |
| vector< su2double > | MolarFractions |
| Species molar fractions. | |
| vector< su2double > | ws |
| Species net production rates. | |
| vector< su2double > | taus |
| Relaxtion time scales. | |
| vector< su2double > | DiffusionCoeff |
| Species diffusion coefficients. | |
| vector< su2double > | Enthalpy_Formation |
| Enthalpy of formation. | |
| vector< su2double > | Ref_Temperature |
| Reference temperature for thermodynamic relations. | |
| su2matrix< int > | CatRecombTable |
| Table for catalytic wall recombination pairs. | |
Protected Attributes inherited from CFluidModel | |
| su2double | StaticEnergy {0.0} |
| Internal Energy. | |
| su2double | Enthalpy {0.0} |
| Enthalpy. | |
| su2double | Entropy {0.0} |
| Entropy. | |
| su2double | Density {0.0} |
| Density. | |
| su2double | Pressure {0.0} |
| Pressure. | |
| su2double | SoundSpeed2 {0.0} |
| SpeedSound. | |
| su2double | Temperature {0.0} |
| Temperature. | |
| su2double | dPdrho_e {0.0} |
| DpDd_e. | |
| su2double | dPde_rho {0.0} |
| DpDe_d. | |
| su2double | dTdrho_e {0.0} |
| DTDd_e. | |
| su2double | dTde_rho {0.0} |
| DTDe_d. | |
| su2double | dhdrho_P {0.0} |
| DhDrho_p. | |
| su2double | dhdP_rho {0.0} |
| DhDp_rho. | |
| su2double | dsdrho_P {0.0} |
| DsDrho_p. | |
| su2double | dsdP_rho {0.0} |
| DsDp_rho. | |
| su2double | Cp {0.0} |
| Specific Heat Capacity at constant pressure. | |
| su2double | Cv {0.0} |
| Specific Heat Capacity at constant volume. | |
| su2double | Mu {0.0} |
| Laminar viscosity. | |
| su2double | Mu_Turb {0.0} |
| Eddy viscosity provided by a turbulence model. | |
| su2double | dmudrho_T {0.0} |
| Partial derivative of viscosity w.r.t. density. | |
| su2double | dmudT_rho {0.0} |
| Partial derivative of viscosity w.r.t. temperature. | |
| su2double | Kt {0.0} |
| Thermal conductivity. | |
| su2double | dktdrho_T {0.0} |
| Partial derivative of conductivity w.r.t. density. | |
| su2double | dktdT_rho {0.0} |
| Partial derivative of conductivity w.r.t. temperature. | |
| su2double | mass_diffusivity {0.0} |
| Mass Diffusivity. | |
| unique_ptr< CViscosityModel > | LaminarViscosity |
| Laminar Viscosity Model. | |
| unique_ptr< CConductivityModel > | ThermalConductivity |
| Thermal Conductivity Model. | |
| unique_ptr< CDiffusivityModel > | MassDiffusivity |
| Mass Diffusivity Model. | |
Additional Inherited Members | |
Static Protected Member Functions inherited from CFluidModel | |
| static unique_ptr< CViscosityModel > | MakeLaminarViscosityModel (const CConfig *config, unsigned short iSpecies) |
| Instantiate the right type of viscosity model based on config. | |
| static unique_ptr< CConductivityModel > | MakeThermalConductivityModel (const CConfig *config, unsigned short iSpecies) |
| Instantiate the right type of conductivity model based on config. | |
| static unique_ptr< CDiffusivityModel > | MakeMassDiffusivityModel (const CConfig *config, unsigned short iSpecies) |
| Instantiate the right type of mass diffusivity model based on config. | |
Class for defining the 2T (trans-rotational and vibro-electronic) nonequilibrium gas model.
| CNEMOGas::CNEMOGas | ( | const CConfig * | config, |
| unsigned short | val_nDim | ||
| ) |
Constructor of the class.
|
inlinevirtual |
Populate chemical source term jacobian.
Reimplemented in CSU2TCLib.
| void CNEMOGas::ComputedPdU | ( | const su2double * | V, |
| const vector< su2double > & | val_eves, | ||
| su2double * | val_dPdU | ||
| ) |
Compute derivative of pressure w.r.t. conservative variables.
Compute derivative of temperature w.r.t. conservative variables.
| void CNEMOGas::ComputedTvedU | ( | const su2double * | V, |
| const vector< su2double > & | val_eves, | ||
| su2double * | val_dTvedU | ||
| ) |
Compute derivative of vibrational temperature w.r.t. conservative variables.
|
inlinevirtual |
Compute vibrational energy source term.
Reimplemented in CSU2TCLib.
| su2double CNEMOGas::ComputeGamma | ( | ) |
Compute ratio of specific heats (Gamma).
| su2double CNEMOGas::ComputeGasConstant | ( | ) |
Compute gas constant.
|
pure virtual |
Compute mixture energies (total internal energy and vibrational energy).
Implemented in CSU2TCLib.
|
pure virtual |
Compute species net production rates.
Implemented in CSU2TCLib.
| su2double CNEMOGas::ComputePressure | ( | ) |
Compute pressure.
|
inline |
Compute rhoCvtr.
| su2double CNEMOGas::ComputerhoCvve | ( | ) |
Compute rhoCvve.
| su2double CNEMOGas::ComputeSoundSpeed | ( | ) |
Compute speed of sound.
Compute species V-E specific heats at constant volume.
Implemented in CSU2TCLib.
|
pure virtual |
Compute species enthalpies.
Implemented in CSU2TCLib.
|
pure virtual |
Compute vector of species V-E energy.
Implemented in CSU2TCLib.
|
pure virtual |
Compute translational and vibrational temperatures vector.
Implemented in CSU2TCLib.
|
inline |
Get catalytic wall recombination indices and constants.
|
pure virtual |
Get species diffusion coefficients.
Implemented in CSU2TCLib.
|
inlinevirtual |
Compute vibration enery source term jacobian.
Reimplemented in CSU2TCLib.
|
pure virtual |
Get reference temperature.
|
pure virtual |
Get species T-R specific heats at constant volume.
Implemented in CSU2TCLib.
|
pure virtual |
Get species formation enthalpy.
|
pure virtual |
Get species molar mass.
Implemented in CSU2TCLib.
|
pure virtual |
Get T-R and V-E thermal conductivities vector.
Implemented in CSU2TCLib.
|
inlinevirtual |
Get viscosity.
Reimplemented in CSU2TCLib.
|
inline |
Set species vibrational energies.
|
inline |
Set the translational temperature.
| void CNEMOGas::SetTDStatePTTv | ( | su2double | P, |
| const su2double * | val_massfrac, | ||
| su2double | val_temperature, | ||
| su2double | val_temperature_ve | ||
| ) |
Set mixture thermodynamic state.
| [in] | P | - Pressure. |
| [in] | Ms | - Mass fractions of the gas. |
| [in] | T | - Translational/Rotational temperature. |
| [in] | Tve | - Vibrational/Electronic temperature. |
|
inlinevirtual |
Set mixture thermodynamic state.
| [in] | rhos | - Species partial densities. |
| [in] | T | - Translational/Rotational temperature. |
| [in] | Tve | - Vibrational/Electronic temperature. |
Reimplemented in CSU2TCLib.
|
inline |
Set the vibrational temperature.
|
protected |
Table for catalytic wall recombination pairs.
|
protected |
Species T-R specific heats at constant volume.
|
protected |
Species V-E specific heats at constant volume.
|
protected |
Species diffusion coefficients.
|
protected |
Mixture energies (total internal energy and vibrational energy)
|
protected |
Enthalpy of formation.
|
protected |
Vector of species total internal and V-E energies (dimension 2 * nSpecies)
|
protected |
Indicates if mixture is frozen.
|
protected |
Specific heat ratio.
|
protected |
String gas model.
|
protected |
Universal gas constant [J/(kmol*K)].
|
protected |
Species enthalpies.
|
protected |
Common iteration counter for dimensions.
|
protected |
Presence of charged species in gas mixture.
|
protected |
Common iteration counter for species.
|
protected |
Common iteration counter for species.
|
protected |
Transport coefficients model for NEMO solver.
|
protected |
Species mass fractions.
|
protected |
Species molar fractions.
|
protected |
Species molar mass.
|
protected |
Number of dimensions.
|
protected |
Number of electrons in gas.
|
protected |
Number of energy equations for the 2T model.
|
protected |
Number of heavy particles in gas.
|
protected |
Number of species in the gas mixture.
|
protected |
Vibrational energy source term.
|
protected |
Reference temperature for thermodynamic relations.
|
protected |
density times T-R specific heat
|
protected |
density times V-E specific heat
|
protected |
Species partial densities.
|
protected |
Universal gas constant [J/(mol*K)].
|
protected |
Translational temperature.
|
protected |
Relaxtion time scales.
|
protected |
translational and vibrational temperatures vector
|
protected |
T-R thermal conductivity of the gas mixture.
|
protected |
V-E thermal conductivity of the gas mixture.
|
protected |
T-R and V-E Thermal conductivities vector.
|
protected |
Vibrational temperature.
|
protected |
Species net production rates.