Phase::Generic::Interface Class Referenceabstract

#include <Generic.h>

Public Member Functions

 Interface ()
 
virtual ~Interface ()=default
 
Libpf::Utility::PhaseType phaseType (void) const
 
void setPhaseType (Libpf::Utility::PhaseType ptype)
 
virtual void initializeNonPersistents (const Vector &x, const Value &rho, const Value &AMW)=0
 
virtual void prepare (const Value &Temp, const Vector &x)=0
 
virtual void preparefugacity (const Value &Pres, const Value &Temp, const Vector &x, const Value &sumx) const =0
 
virtual const Valuecalculate_P_ (const Value &rho, const Value &Temp, const Vector &x, const Value &sum) const =0
 
virtual const Valuecalculate_rho_ (const Value &Pres, const Value &Temp, const Vector &x) const =0
 
virtual const Valuecalculate_H_ (const Value &Pres, const Value &Temp, const Vector &x) const =0
 
virtual const Valuecalculate_S_ (const Value &Pres, const Value &Temp, const Vector &x) const =0
 
virtual const Valuecalculate_Cp_ (const Value &Pres, const Value &Temp, const Vector &x) const =0
 
virtual const Valuefugacity (int i) const =0
 
virtual Value mu_ (const Value &T, const Value &P, const Vector &x) const =0
 
virtual Value kappa_ (const Value &T, const Value &P, const Vector &x) const =0
 
virtual Value sigma_ (const Value &T, const Value &P, const Vector &x) const =0
 Surface tension, N/m. More...
 

Constructor & Destructor Documentation

◆ Interface()

Phase::Generic::Interface::Interface ( )
inline

◆ ~Interface()

virtual Phase::Generic::Interface::~Interface ( )
virtualdefault

Member Function Documentation

◆ calculate_Cp_()

virtual const Value & Phase::Generic::Interface::calculate_Cp_ ( const Value Pres,
const Value Temp,
const Vector x 
) const
pure virtual

Molar constant pressure heat capacity, J/kmol/K

Parameters
Prespressure, Pa
Temptemperature, K
xmolar fractions

◆ calculate_H_()

virtual const Value & Phase::Generic::Interface::calculate_H_ ( const Value Pres,
const Value Temp,
const Vector x 
) const
pure virtual

Molar enthalpy, J/kmol

Parameters
Prespressure, Pa
Temptemperature, K
xmolar fractions

◆ calculate_P_()

virtual const Value & Phase::Generic::Interface::calculate_P_ ( const Value rho,
const Value Temp,
const Vector x,
const Value sum 
) const
pure virtual
Returns
total pressure, Pa
Parameters
rhomolar density kmol/m3
Temptemperature, K
xmolar fractions
sumsum of molar fractions

◆ calculate_rho_()

virtual const Value & Phase::Generic::Interface::calculate_rho_ ( const Value Pres,
const Value Temp,
const Vector x 
) const
pure virtual

Molar density, kmol/m3

Parameters
Prespressure, Pa
Temptemperature, K
xmolar fractions

◆ calculate_S_()

virtual const Value & Phase::Generic::Interface::calculate_S_ ( const Value Pres,
const Value Temp,
const Vector x 
) const
pure virtual

Molar entropy, J/kmol/K

Parameters
Prespressure, Pa
Temptemperature, K
xmolar fractions

◆ fugacity()

virtual const Value & Phase::Generic::Interface::fugacity ( int  i) const
pure virtual
Returns
natural logarithm of fugacity coefficient of a specific component (call preparefugacity first !)
Parameters
iindex of the component

◆ initializeNonPersistents()

virtual void Phase::Generic::Interface::initializeNonPersistents ( const Vector x,
const Value rho,
const Value AMW 
)
pure virtual

◆ kappa_()

virtual Value Phase::Generic::Interface::kappa_ ( const Value T,
const Value P,
const Vector x 
) const
pure virtual

Thermal conductivity, W/(m*K)

Parameters
Ttemperature, K
Ppressure, Pa
xphase mole numbers or unnormalized molar fractions

◆ mu_()

virtual Value Phase::Generic::Interface::mu_ ( const Value T,
const Value P,
const Vector x 
) const
pure virtual

Dynamic viscosity, Pa*m

Parameters
Ttemperature, K
Ppressure, Pa
xphase mole numbers or unnormalized molar fractions

◆ phaseType()

Libpf::Utility::PhaseType Phase::Generic::Interface::phaseType ( void  ) const
inline

◆ prepare()

virtual void Phase::Generic::Interface::prepare ( const Value Temp,
const Vector x 
)
pure virtual

perform initializations required to compute P, rho, fugacity, H and S

Parameters
Temptemperature, K
xphase mole numbers or unnormalized molar fractions

◆ preparefugacity()

virtual void Phase::Generic::Interface::preparefugacity ( const Value Pres,
const Value Temp,
const Vector x,
const Value sumx 
) const
pure virtual

perform component-independent initializations required to compute the fugacity

Parameters
Prespressure, Pa
Temptemperature, K
xmolar fractions
sumxsum of molar fractions

◆ setPhaseType()

void Phase::Generic::Interface::setPhaseType ( Libpf::Utility::PhaseType  ptype)
inline

◆ sigma_()

virtual Value Phase::Generic::Interface::sigma_ ( const Value T,
const Value P,
const Vector x 
) const
pure virtual

Surface tension, N/m.


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