![]() |
Documentation 6b54b78464
|
Main class for defining the Thermo-Physical Model. More...
#include <CFluidModel.hpp>
Public Member Functions | |
| 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. | |
Static Protected Member Functions | |
| 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. | |
Protected Attributes | |
| 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. | |
Main class for defining the Thermo-Physical Model.
|
inlinevirtual |
virtual member that would be different for each gas model implemented
| [in] | InputSpec | - Input pair for FLP calls ("Pv"). |
| [in] | th1 | - first thermodynamic variable (P). |
| [in] | th2 | - second thermodynamic variable (v). |
Reimplemented in CDataDrivenFluid, CIdealGas, CPengRobinson, and CVanDerWaalsGas.
|
inlinevirtual |
Evaluate data-set for flamelet or data-driven fluid simulations.
| [in] | input_scalar | - data manifold query data. |
| [in] | lookup_type | - look-up operation to be performed. |
| [in] | output_refs | - output variables where interpolated results are stored. |
| [out] | Extrapolation | - query data is within manifold bounds (0) or out of bounds (1). |
Reimplemented in CFluidFlamelet.
|
inline |
Get fluid specific heat at constant pressure.
|
inline |
Get fluid specific heat at constant volume.
|
inline |
Get fluid density.
|
inline |
Get fluid enthalpy partial derivative.
|
inline |
Get fluid enthalpy partial derivative.
|
inline |
Get fluid thermal conductivity partial derivative.
|
inline |
Get fluid thermal conductivity partial derivative.
|
inline |
Get fluid dynamic viscosity partial derivative.
|
inline |
Get fluid dynamic viscosity partial derivative.
|
inline |
Get fluid pressure partial derivative.
|
inline |
Get fluid pressure partial derivative.
|
inline |
Get fluid entropy partial derivative.
|
inline |
Get fluid entropy partial derivative.
|
inline |
Get fluid temperature partial derivative.
|
inline |
Get fluid temperature partial derivative.
|
inline |
Get fluid enthalpy.
|
inlinevirtual |
Get the enthalpy diffusivity terms for all species being solved.
This function computes and retrieves the enthalpy diffusion terms required in the energy equation for multicomponent flows.
| [in,out] | enthalpy_diffusions | - Array containing the enthalpy diffusion terms for all species to be solved. The size of enthalpy_diffusions must be at least (n_species_mixture - 1), corresponding to the number of species transport equations in the system. |
Reimplemented in CFluidScalar.
|
inline |
Get fluid entropy.
|
inlinevirtual |
Get fluid model extrapolation instance.
Reimplemented in CDataDrivenFluid, and CFluidFlamelet.
|
inlinevirtual |
Get the gradient of enthalpy diffusivity terms for all species being solved.
This function computes and retrieves the gradient of the enthalpy diffusion terms with respect to temperature. These terms are required for implicit computations when solving the energy equation for multicomponent flows.
| [in,out] | grad_enthalpy_diffusions | - Array containing the gradient of enthalpy diffusion terms for all species to be solved. The size of grad_enthalpy_diffusions must be at least (n_species_mixture - 1), corresponding to the number of species transport equations in the system. |
Reimplemented in CFluidScalar.
|
inlinevirtual |
Get fluid dynamic viscosity.
Reimplemented in CFluidFlamelet, and CFluidScalar.
|
inlinevirtual |
Get fluid mass diffusivity.
Reimplemented in CFluidFlamelet, and CFluidScalar.
|
inlinevirtual |
Get number of Newton solver iterations.
Reimplemented in CDataDrivenFluid.
|
inlinevirtual |
Flamelet LUT - Get the number of transported scalars.
|
inlinevirtual |
Get the state of the Preferential diffusion model for flamelet simulations.
Reimplemented in CFluidFlamelet.
|
inline |
Get fluid pressure.
|
inline |
Get fluid speed of sound.
|
inline |
Get fluid speed of sound squared.
|
inline |
Get fluid internal energy.
|
inline |
Get fluid temperature.
|
inlinevirtual |
Get fluid thermal conductivity.
Reimplemented in CFluidFlamelet, and CFluidScalar.
|
staticprotected |
Instantiate the right type of viscosity model based on config.
|
staticprotected |
Instantiate the right type of mass diffusivity model based on config.
|
staticprotected |
Instantiate the right type of conductivity model based on config.
|
inlinevirtual |
Set specific heat Cp model.
Reimplemented in CIncIdealGasPolynomial< N >.
|
inline |
Set fluid eddy viscosity provided by a turbulence model needed for computing effective thermal conductivity.
virtual member that would be different for each gas model implemented
| [in] | InputSpec | - Input pair for FLP calls ("Pv"). |
| [in] | th1 | - first thermodynamic variable (P). |
| [in] | th2 | - second thermodynamic variable (v). |
Reimplemented in CDataDrivenFluid, CIdealGas, CPengRobinson, and CVanDerWaalsGas.
|
virtual |
Set viscosity model.
Reimplemented in CFluidScalar.
|
virtual |
Set mass diffusivity model.
Reimplemented in CFluidScalar.
|
inline |
Set the thermodynamic pressure of the incompressible fluid models.
|
inlinevirtual |
Virtual member.
| [in] | val_enthalpy | - Enthalpy value at the point. |
| [in] | val_scalars | - Scalar mass fractions. |
Reimplemented in CConstantDensity, CFluidFlamelet, CFluidScalar, CIncIdealGas, and CIncIdealGasPolynomial< N >.
virtual member that would be different for each gas model implemented
| [in] | InputSpec | - Input pair for FLP calls ("hs"). |
| [in] | th1 | - first thermodynamic variable (h). |
| [in] | th2 | - second thermodynamic variable (s). |
Reimplemented in CDataDrivenFluid, CIdealGas, CPengRobinson, and CVanDerWaalsGas.
virtual member that would be different for each gas model implemented
| [in] | InputSpec | - Input pair for FLP calls ("Pv"). |
| [in] | th1 | - first thermodynamic variable (P). |
| [in] | th2 | - second thermodynamic variable (v). |
Reimplemented in CDataDrivenFluid, CIdealGas, CPengRobinson, and CVanDerWaalsGas.
virtual member that would be different for each gas model implemented
| [in] | InputSpec | - Input pair for FLP calls ("Pv"). |
| [in] | th1 | - first thermodynamic variable (P). |
| [in] | th2 | - second thermodynamic variable (s). |
Reimplemented in CDataDrivenFluid, CIdealGas, CPengRobinson, and CVanDerWaalsGas.
virtual member that would be different for each gas model implemented
| [in] | InputSpec | - Input pair for FLP calls ("PT"). |
| [in] | th1 | - first thermodynamic variable (P). |
| [in] | th2 | - second thermodynamic variable (T). |
Reimplemented in CDataDrivenFluid, CIdealGas, CPengRobinson, and CVanDerWaalsGas.
virtual member that would be different for each gas model implemented
| [in] | InputSpec | - Input pair for FLP calls ("e, rho"). |
| [in] | rho | - first thermodynamic variable. |
| [in] | e | - second thermodynamic variable. |
Reimplemented in CDataDrivenFluid, CIdealGas, CPengRobinson, and CVanDerWaalsGas.
virtual member that would be different for each gas model implemented
| [in] | InputSpec | - Input pair for FLP calls ("rhoT"). |
| [in] | th1 | - first thermodynamic variable (rho). |
| [in] | th2 | - second thermodynamic variable (T). |
Reimplemented in CDataDrivenFluid, CIdealGas, CPengRobinson, and CVanDerWaalsGas.
|
inlinevirtual |
Virtual member.
| [in] | T | - Temperature value at the point. |
Reimplemented in CConstantDensity, CIncIdealGas, CIncIdealGasPolynomial< N >, CFluidScalar, and CFluidFlamelet.
|
virtual |
Set thermal conductivity model.
Reimplemented in CFluidScalar.
|
protected |
Specific Heat Capacity at constant pressure.
|
protected |
Specific Heat Capacity at constant volume.
|
protected |
Density.
|
protected |
DhDp_rho.
|
protected |
DhDrho_p.
|
protected |
Partial derivative of conductivity w.r.t. density.
|
protected |
Partial derivative of conductivity w.r.t. temperature.
|
protected |
Partial derivative of viscosity w.r.t. density.
|
protected |
Partial derivative of viscosity w.r.t. temperature.
|
protected |
DpDe_d.
|
protected |
DpDd_e.
|
protected |
DsDp_rho.
|
protected |
DsDrho_p.
|
protected |
DTDe_d.
|
protected |
DTDd_e.
|
protected |
Enthalpy.
|
protected |
Entropy.
|
protected |
Thermal conductivity.
|
protected |
Laminar Viscosity Model.
|
protected |
Mass Diffusivity.
|
protected |
Mass Diffusivity Model.
|
protected |
Laminar viscosity.
|
protected |
Eddy viscosity provided by a turbulence model.
|
protected |
Pressure.
|
protected |
SpeedSound.
|
protected |
Internal Energy.
|
protected |
Temperature.
|
protected |
Thermal Conductivity Model.