ComponentBkk Class Reference

#include <ComponentBkk.h>

Inheritance diagram for ComponentBkk:

Public Member Functions

 ComponentBkk (std::string n, const Value &mw, const std::vector< ParameterBkk > bpl, const std::vector< ParameterBkk > bps)
 
 ~ComponentBkk (void)
 
Value kvli (const Value &T, const Value &P) override
 
bool isSolid (void) override
 
Value rhol (const Value &T, const Value &P, double *derT=nullptr) 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 ValueMW (void) const =0
 
virtual const ValuePc (void) const =0
 
virtual const ValueTc (void) const =0
 
virtual const Value Vc (void) const =0
 
virtual const ValueZc (void) const =0
 
virtual const Valueomega (void) const =0
 
virtual const Valuediffvol (void) const =0
 
virtual const Valuevb (void) const =0
 
virtual const Valuedh0 (void) const =0
 
virtual const Valuedg0 (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 ValueMW (void) const override
 
const ValuePc (void) const override
 
const ValueTc (void) const override
 
const ValueZc (void) const override
 
const Value Vc (void) const override
 
const Valueomega (void) const override
 
const Valuediffvol (void) const override
 
const Valuevb (void) const override
 
const Valuedh0 (void) const override
 
const Valuedg0 (void) const override
 
- Public Member Functions inherited from RouteSaturationDummy
Value psat (const Value &T, double *derT=nullptr, double *der2T=nullptr) override
 Vapour pressure of saturation. More...
 
Value dhvl (const Value &T, double *derT=nullptr) override
 Vapour-Liquid enthalpy difference. More...
 
- Public Member Functions inherited from RouteHeatVaporDummy
Value hv (const Value &T, const Value &P) override
 Molar vapor enthalpy, J/kmol. More...
 
Value sv (const Value &T, const Value &P) override
 Molar vapor entropy, J/kmol/K. More...
 
Value cpv (const Value &T, const Value &P) override
 Molar vapor cp, J/kmol/K. More...
 
- Public Member Functions inherited from RouteTransportDummy
Value muv (const Value &T, const Value &P) override
 Vapour viscosity. More...
 
Value mul (const Value &T) 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 RouteVolumeVaporDummy
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 RouteVolumeSolidDummy
 RouteVolumeSolidDummy (void)
 
Value rhos (const Value &, const Value &, double *=nullptr) override
 Molar solid density, kmol/m3. More...
 
- Public Member Functions inherited from RouteHeatLiquidBkk
 RouteHeatLiquidBkk (const std::vector< ParameterBkk > &bp)
 
Value hl (const Value &T, const Value &P) override
 Molar liquid enthalpy, J/kmol. More...
 
Value sl (const Value &T, const Value &P) override
 Molar liquid entropy, J/kmol/K. More...
 
Value cpl (const Value &T, const Value &P) override
 Molar liquid cp, J/kmol/K. More...
 
- Public Member Functions inherited from RouteHeatSolidBkk
 RouteHeatSolidBkk (const std::vector< ParameterBkk > &bp)
 
Value hs (const Value &T, const Value &) override
 Molar solid enthalpy, J/kmol. More...
 
Value ss (const Value &, const Value &) override
 Molar solid entropy, J/kmol/K. More...
 
Value cps (const Value &, const Value &) override
 Molar solid cp, J/kmol/K. 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...
 
RouteTransportoperator= (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...
 

Detailed Description

Bkk component model class for thermal properties of condensed phase components (liquids and solids)

#include <libpf/components/ComponentBkk.h>

Remarks
Warning
This class calculates only thermal properties of liquids and solids
Thread safe:
Extendable:
Platform dependencies:

Constructor & Destructor Documentation

◆ ComponentBkk()

ComponentBkk::ComponentBkk ( std::string  n,
const Value mw,
const std::vector< ParameterBkk bpl,
const std::vector< ParameterBkk bps 
)

◆ ~ComponentBkk()

ComponentBkk::~ComponentBkk ( void  )
inline

Member Function Documentation

◆ isSolid()

bool ComponentBkk::isSolid ( void  )
inlineoverridevirtual

Check function for solid component

Returns
true if a component is solid
false otherwise

Implements ComponentGeneric.

◆ kvli()

Value ComponentBkk::kvli ( const Value T,
const Value P 
)
overridevirtual

Vapor-liquid equilibrium constant

Parameters
Ttemperature K
Ppressure Pa
Returns
Vapor-liquid equilibrium constant

Reimplemented from ComponentGeneric.

◆ rhol()

Value ComponentBkk::rhol ( const Value T,
const Value P,
double *  derT = nullptr 
)
inlineoverridevirtual

Dummy implementation for liquid density

Implements RouteVolumeLiquid.


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