ComponentCmu Class Reference
#include <ComponentCmu.h>
Inheritance diagram for ComponentCmu:
Public Member Functions | |
ComponentCmu (std::string n, const Value &mw, const Value &Pc, const Value &Tc, const Value &rhoc, const Value &diffvol, const Value &vb, const Value &dh0, const Value &dg0, const Value &zc, const Value &omega, double aa, double bb, double cc, double tmx, double tmn, double cpa, double cpb, double cpc, double cpd, double mub, double muc) | |
~ComponentCmu (void) | |
Value | cpl (const Value &TT, const Value &PP) override |
Molar liquid cp, J/kmol/K. More... | |
Value | hl (const Value &TT, const Value &) override |
Molar liquid enthalpy, J/kmol. More... | |
Value | sl (const Value &T, const Value &P) override |
Molar liquid entropy, J/kmol/K. More... | |
Value | rhol (const Value &T, const Value &P, double *derT=nullptr) override |
Molar liquid density, kmol/m3. More... | |
Value | dhvl (const Value &TT, double *derT=nullptr) override |
Vapour-Liquid enthalpy difference. More... | |
Public Member Functions inherited from ComponentGeneric | |
ComponentGeneric (std::string name) | |
virtual | ~ComponentGeneric (void) |
const std::string & | name (void) const |
int | id (void) const |
void | setid (int idd) |
virtual Value | kvli (const Value &T, const Value &P) |
virtual bool | isSolid (void)=0 |
virtual bool | isGas (void) |
Public Member Functions inherited from Diagnostic | |
Diagnostic (void) | |
void | setVerbosity (int verbosity) |
sets the verbosity level for this instance More... | |
int | verbosity (void) const |
virtual const Value & | MW (void) const =0 |
virtual const Value & | Pc (void) const =0 |
virtual const Value & | Tc (void) const =0 |
virtual const Value | Vc (void) const =0 |
virtual const Value & | Zc (void) const =0 |
virtual const Value & | omega (void) const =0 |
virtual const Value & | diffvol (void) const =0 |
virtual const Value & | vb (void) const =0 |
virtual const Value & | dh0 (void) const =0 |
virtual const Value & | dg0 (void) const =0 |
Public Member Functions inherited from RouteSaturation | |
RouteSaturation (void) | |
virtual | ~RouteSaturation (void) |
virtual Value | psat (const Value &T, double *derT=nullptr, double *der2T=nullptr)=0 |
Vapour pressure of saturation. More... | |
virtual Value | dhvl (const Value &T, double *derT=nullptr)=0 |
Vapour-Liquid enthalpy difference. More... | |
Public Member Functions inherited from RouteHeatVapor | |
RouteHeatVapor (void) | |
virtual | ~RouteHeatVapor (void) |
virtual Value | hv (const Value &T, const Value &P)=0 |
Molar vapor enthalpy, J/kmol. More... | |
virtual Value | sv (const Value &T, const Value &P)=0 |
Molar vapor entropy, J/kmol/K. More... | |
Value | gv (const Value &T, const Value &P) |
Molar vapor Gibbs free energy, J/kmol. More... | |
virtual Value | cpv (const Value &T, const Value &P)=0 |
Molar vapor cp, J/kmol/K. More... | |
Public Member Functions inherited from RouteHeatLiquid | |
RouteHeatLiquid (void) | |
virtual | ~RouteHeatLiquid (void) |
virtual Value | hl (const Value &T, const Value &P)=0 |
Molar liquid enthalpy, J/kmol. More... | |
virtual Value | sl (const Value &T, const Value &P)=0 |
Molar liquid entropy, J/kmol/K. More... | |
Value | gl (const Value &T, const Value &P) |
Molar liquid Gibbs free energy, J/kmol. More... | |
virtual Value | cpl (const Value &T, const Value &P)=0 |
Molar liquid cp, J/kmol/K. More... | |
Public Member Functions inherited from RouteHeatSolid | |
RouteHeatSolid (void) | |
virtual | ~RouteHeatSolid (void) |
virtual Value | hs (const Value &T, const Value &P)=0 |
Molar solid enthalpy, J/kmol. More... | |
virtual Value | ss (const Value &T, const Value &P)=0 |
Molar solid entropy, J/kmol/K. More... | |
Value | gs (const Value &T, const Value &P) |
Molar solid Gibbs free energy, J/kmol. More... | |
virtual Value | cps (const Value &T, const Value &P)=0 |
Molar solid cp, J/kmol/K. More... | |
Public Member Functions inherited from RouteTransport | |
RouteTransport (void) | |
virtual | ~RouteTransport (void) |
virtual Value | muv (const Value &T, const Value &P)=0 |
Vapour viscosity. More... | |
virtual Value | mul (const Value &T)=0 |
Liquid viscosity. More... | |
virtual Value | kv (const Value &T, const Value &P)=0 |
Vapour thermal conductivity. More... | |
virtual Value | kl (const Value &T)=0 |
Liquid thermal conductivity. More... | |
virtual Value | sigma (const Value &T)=0 |
Liquid surface tension. More... | |
Value | DG (const Value &T, const Value &P, const Value &mixMW, const Value &mixDiffvol) |
Gas diffusivity. More... | |
Value | DL (const Value &T) |
Liquid diffusivity. More... | |
Public Member Functions inherited from RouteVolumeVapor | |
RouteVolumeVapor (void) | |
virtual | ~RouteVolumeVapor (void) |
virtual double | p (const double rho, const double T, double *derRho=nullptr, double *derT=nullptr)=0 |
Vapor pressure, Pa. Requires the actual implementation of the volumetric properties. More... | |
Value | p (const Value &rrho, const Value &TT) |
Vapor pressure, Pa. More... | |
virtual Value | rhov (const Value &T, const Value &P, double *derT=nullptr, double *derP=nullptr)=0 |
Molar vapor density, kmol/m3. More... | |
Public Member Functions inherited from RouteVolumeLiquid | |
RouteVolumeLiquid (void) | |
virtual | ~RouteVolumeLiquid (void) |
virtual Value | rhol (const Value &T, const Value &P, double *derT=nullptr)=0 |
Molar liquid density, kmol/m3. More... | |
Public Member Functions inherited from RouteVolumeSolid | |
virtual Value | rhos (const Value &T, const Value &P, double *derT=nullptr)=0 |
Molar solid density, kmol/m3. More... | |
Public Member Functions inherited from ComponentBase | |
ComponentBase (const Value &mw, const Value &Pc, const Value &Tc, const Value &rhoc, const Value &diffvol, const Value &vb, const Value &dh0, const Value &dg0, const Value &zc, const Value &omega) | |
preferred constructor More... | |
ComponentBase (const Value &mw) | |
dummy constructor will set remaining parameters to dummy values More... | |
virtual | ~ComponentBase (void) |
const Value & | MW (void) const override |
const Value & | Pc (void) const override |
const Value & | Tc (void) const override |
const Value & | Zc (void) const override |
const Value | Vc (void) const override |
const Value & | omega (void) const override |
const Value & | diffvol (void) const override |
const Value & | vb (void) const override |
const Value & | dh0 (void) const override |
const Value & | dg0 (void) const override |
Public Member Functions inherited from RouteSaturationCmu | |
RouteSaturationCmu (double aa, double bb, double cc, double tmx, double tmn) | |
Value | psat (const Value &T, double *derT=nullptr, double *der2T=nullptr) override |
Vapour pressure of saturation. More... | |
Public Member Functions inherited from RouteHeatVaporCmu | |
RouteHeatVaporCmu (double aa, double bb, double cc, double dd) | |
Value | cpv (const Value &TT, const Value &) override |
Molar vapor cp, J/kmol/K. More... | |
Value | hv (const Value &TT, const Value &) override |
Molar vapor enthalpy, J/kmol. More... | |
Value | sv (const Value &TT, const Value &) override |
Molar vapor entropy, J/kmol/K. More... | |
Public Member Functions inherited from RouteTransportCmu | |
RouteTransportCmu (double bb, double cc) | |
Value | muv (const Value &T, const Value &P) override |
Vapour viscosity. More... | |
Value | mul (const Value &TT) override |
Liquid viscosity. More... | |
Value | kv (const Value &T, const Value &P) override |
Vapour thermal conductivity. More... | |
Value | kl (const Value &T) override |
Liquid thermal conductivity. More... | |
Value | sigma (const Value &T) override |
Liquid surface tension. More... | |
Public Member Functions inherited from RouteVolumeVaporIdeal | |
RouteVolumeVaporIdeal (void) | |
double | p (const double rho, const double T, double *derRho=nullptr, double *derT=nullptr) override |
Vapor pressure, Pa. Requires the actual implementation of the volumetric properties. More... | |
Value | rhov (const Value &T, const Value &P, double *derT=nullptr, double *derP=nullptr) override |
Molar vapor density, kmol/m3. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Diagnostic | |
virtual | ~Diagnostic ()=default |
Protected Member Functions inherited from ComponentInterface | |
virtual | ~ComponentInterface ()=default |
Protected Member Functions inherited from RouteTransport | |
RouteTransport (const RouteTransport &) | |
not implemented, making class non copyable More... | |
RouteTransport & | operator= (const RouteTransport &) |
not implemented, making class non copyable More... | |
Protected Member Functions inherited from RouteVolumeSolid | |
virtual | ~RouteVolumeSolid ()=default |
Protected Attributes inherited from Diagnostic | |
int | verbosityInstance |
Protected Attributes inherited from ComponentBase | |
Value | MW_ |
molecular weight More... | |
Value | Pc_ |
critical pressure, Pa More... | |
Value | Tc_ |
critical temperature, K More... | |
Value | rhoc_ |
molar density at the critical point, kmol/m3 More... | |
Value | diffvol_ |
molar diffusivity parameter More... | |
Value | vb_ |
molar volume at boiling point, m3/kmol More... | |
Value | zc_ |
critical compressibility factor More... | |
Value | dh0_ |
enthalpy of formation in the isIdeal gas phase at 1 atm 298.15 K, J/kmol More... | |
Value | dg0_ |
Gibbs free energy of formation in the isIdeal gas phase at 1 atm 298.15 K, J/kmol. More... | |
Value | omega_ |
acentric factor More... | |
Protected Attributes inherited from RouteSaturationCmu | |
double | a_ |
double | b_ |
double | c_ |
double | tmx_ |
double | tmn_ |
Detailed Description
Liquid and vapor component model based on the CMU (Carnegie Mellon University) database
#include <libpf/components/ComponentCmu.h>
- Remarks
- Warning
- Only for vapor and liquid component
- Thread safe:
- Extendable:
- Platform dependencies:
Constructor & Destructor Documentation
◆ ComponentCmu()
ComponentCmu::ComponentCmu | ( | std::string | n, |
const Value & | mw, | ||
const Value & | Pc, | ||
const Value & | Tc, | ||
const Value & | rhoc, | ||
const Value & | diffvol, | ||
const Value & | vb, | ||
const Value & | dh0, | ||
const Value & | dg0, | ||
const Value & | zc, | ||
const Value & | omega, | ||
double | aa, | ||
double | bb, | ||
double | cc, | ||
double | tmx, | ||
double | tmn, | ||
double | cpa, | ||
double | cpb, | ||
double | cpc, | ||
double | cpd, | ||
double | mub, | ||
double | muc | ||
) |
◆ ~ComponentCmu()
|
inline |
Member Function Documentation
◆ cpl()
Molar liquid cp, J/kmol/K.
Implements RouteHeatLiquid.
◆ dhvl()
Vapour-Liquid enthalpy difference.
Implements RouteSaturation.
◆ hl()
Molar liquid enthalpy, J/kmol.
Implements RouteHeatLiquid.
◆ rhol()
|
overridevirtual |
Molar liquid density, kmol/m3.
Implements RouteVolumeLiquid.
◆ sl()
Molar liquid entropy, J/kmol/K.
Implements RouteHeatLiquid.
The documentation for this class was generated from the following file: