#include <ComponentDippr.h>
Inherits ComponentGeneric, ComponentBase, RouteHeatSolidDummy, RouteVolumeSolidDummy, dippr, and RouteTransportDippr.
Inherited by purecomps::BuOH, purecomps::CO, purecomps::CO2, purecomps::DiethyleneGlycol, purecomps::EthyleneGlycol, purecomps::Ethylhexanol, purecomps::H2, purecomps::MA, purecomps::N2, purecomps::NO2, purecomps::O2, purecomps::Octamethyltrisiloxane, purecomps::OctylPalmitate, purecomps::PalmiticAcid, purecomps::TriethyleneGlycol, purecomps::aacid, purecomps::acetone, purecomps::ammonia, purecomps::argon, purecomps::benzene, purecomps::butane, purecomps::ciclohexane, purecomps::eicosane, purecomps::ethane, purecomps::ethanol, purecomps::ethylene, purecomps::etylacetate, purecomps::heavy, purecomps::helium, purecomps::hexene, purecomps::hydrogensulfide, purecomps::ibutane, purecomps::ipentane, purecomps::methane, purecomps::methanol, purecomps::mxylene, purecomps::naphthalene, purecomps::nbutylene, purecomps::ndecane, purecomps::nheptane, purecomps::nhexadecane, purecomps::nhexane, purecomps::nnonane, purecomps::noctane, purecomps::oxylene, purecomps::pentane, purecomps::phenol, purecomps::propane, purecomps::propylene, purecomps::pxylene, and purecomps::squalane.
Public Member Functions | |
ComponentDippr (std::string name, 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 &dhvl, const Value &zc, const Value &omega, ParameterAntoine antoine, cpig_parameter cpig, dnldip_parameter dnldip, kldip_parameter kldip, kvdip_parameter kvdip, muldip_parameter muldip, muvdip_parameter muvdip, sigdip_parameter sigdip, ParameterHenry henry=0) | |
~ComponentDippr (void) | |
Value | kvli (const Value &T, const Value &P) override |
bool | isSolid (void) override |
bool | isGas (void) override |
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... | |
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 RouteHeatSolidDummy | |
RouteHeatSolidDummy (void) | |
Value | hs (const Value &T, const Value &) override |
Dummy solid enthalpy. More... | |
Value | ss (const Value &, const Value &) override |
Dummy solid entropy. More... | |
Value | cps (const Value &, const Value &) override |
Dummy solid cp. More... | |
Public Member Functions inherited from RouteVolumeSolidDummy | |
RouteVolumeSolidDummy (void) | |
Value | rhos (const Value &, const Value &, double *=nullptr) override |
Molar solid density, kmol/m3. More... | |
Public Member Functions inherited from dippr | |
dippr (const Value &dhvldp1, ParameterAntoine antoine, cpig_parameter cpig, dnldip_parameter dnldip) | |
Value | psat (const Value &T, double *derT=nullptr, double *der2T=nullptr) override |
Vapour pressure of saturation. More... | |
Value | dhvl (const Value &TT, double *derT=nullptr) override |
Vapour-Liquid enthalpy difference. More... | |
Value | hl (const Value &TT, const Value &P) override |
Molar liquid enthalpy, J/kmol. More... | |
Value | sl (const Value &TT, const Value &PP) override |
Molar liquid entropy, J/kmol/K. More... | |
Value | cpl (const Value &TT, const Value &P) override |
Molar liquid cp, J/kmol/K. More... | |
Public Member Functions inherited from RouteHeatVaporDippr | |
RouteHeatVaporDippr (ComponentInterface *, cpig_parameter cpig) | |
void | sethost (ComponentInterface *host) |
Value | hv (const Value &TT, const Value &PP) override |
Molar vapor enthalpy, J/kmol. More... | |
Value | sv (const Value &TT, const Value &PP) override |
Molar vapor entropy, J/kmol/K. More... | |
Value | cpv (const Value &TT, const Value &P) override |
Molar vapor cp, J/kmol/K. More... | |
Public Member Functions inherited from RouteVolumeLiquidDippr | |
void | sethost (ComponentInterface *host) |
RouteVolumeLiquidDippr (ComponentInterface *, dnldip_parameter dnldip) | |
Value | rhol (const Value &T, const Value &P, double *derT=nullptr) override |
Molar liquid density, kmol/m3. 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... | |
Public Member Functions inherited from RouteTransportDippr | |
RouteTransportDippr (kldip_parameter kldip, kvdip_parameter kvdip, muldip_parameter muldip, muvdip_parameter muvdip, sigdip_parameter sigdip) | |
Value | muv (const Value &TT, const Value &P) override |
Vapour viscosity. More... | |
Value | mul (const Value &TT) override |
Liquid viscosity. More... | |
Value | kv (const Value &TT, const Value &P) override |
Vapour thermal conductivity. More... | |
Value | kl (const Value &TT) override |
Liquid thermal conductivity. More... | |
Value | sigma (const Value &TT) override |
Liquid surface tension. More... | |
Additional Inherited Members | |
Public Attributes inherited from RouteVolumeSolidDummy | |
double | rhos_ |
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 Member Functions inherited from RouteVolumeSolidDummy | |
virtual | ~RouteVolumeSolidDummy ()=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 dippr | |
ParameterAntoine | antoine_ |
double | dhvldp1_ |
Detailed Description
Liquid and vapor component model based on the proprietary Dippr database (http://www.aiche.org/dippr/)
#include <libpf/components/ComponentDippr.h>
- Remarks
- Warning
- Not for solid component. Only for liquid and vapor
- Thread safe:
- Extendable:
- Platform dependencies:
Constructor & Destructor Documentation
◆ ComponentDippr()
ComponentDippr::ComponentDippr | ( | std::string | name, |
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 & | dhvl, | ||
const Value & | zc, | ||
const Value & | omega, | ||
ParameterAntoine | antoine, | ||
cpig_parameter | cpig, | ||
dnldip_parameter | dnldip, | ||
kldip_parameter | kldip, | ||
kvdip_parameter | kvdip, | ||
muldip_parameter | muldip, | ||
muvdip_parameter | muvdip, | ||
sigdip_parameter | sigdip, | ||
ParameterHenry | henry = 0 |
||
) |
Constructor
- Parameters
-
name component name mw molecular weight Pc critical pressure Tc critical temperature rhoc critical density diffvol diffusion volume vb volume at boiling point dh0 enthalpy of formation dg0 Gibbs free energy of formation dhvl heat of vaporization zc critical compressibility omega acentric factor antoine vapor pressure parameters cpig ideal gas specific heat parameters dnldip kldip liquid thermal conductivity parameters kvdip vapor thermal conductivity parameters muldip liquid viscosity parameters muvdip vapor viscosity parameters sigdip surface tension parameters henry heanry parameters
◆ ~ComponentDippr()
|
inline |
Member Function Documentation
◆ isGas()
|
overridevirtual |
Check function for incondensable component (i.e. with activity reference state based on the asymmetric convention)
- Returns
- true if a component is gas
- false otherwise
Reimplemented from ComponentGeneric.
◆ isSolid()
|
inlineoverridevirtual |
Check function for solid component
- Returns
- true if a component is solid
- false otherwise
Implements ComponentGeneric.
◆ kvli()
Vapor-liquid equilibrium constant
- Parameters
-
T temperature K P pressure Pa
- Returns
- Vapor-liquid equilibrium constant
Reimplemented from ComponentGeneric.
The documentation for this class was generated from the following file: