MEASUR-Tools-Suite v1.0.11
The MEASUR Tools Suite is a collection of industrial efficiency calculations written in C++ and with bindings for compilation to WebAssembly.
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
FlashTank Class Reference

#include <FlashTank.h>

Public Member Functions

 FlashTank (double inletWaterPressure, SteamProperties::ThermodynamicQuantity quantityType, double quantityValue, double inletWaterMassFlow, double tankPressure)
 
SteamSystemModelerTool::FluidProperties const & getInletWaterProperties () const
 
SteamSystemModelerTool::FluidProperties const & getOutletGasSaturatedProperties () const
 
SteamSystemModelerTool::FluidProperties const & getOutletLiquidSaturatedProperties () const
 
double getInletWaterPressure () const
 
double getQuantityValue () const
 
double getInletWaterMassFlow () const
 
double getTankPressure () const
 
SteamProperties::ThermodynamicQuantity getQuantityType () const
 
void setInletWaterPressure (double inletWaterPressure)
 
void setQuantityValue (double quantityValue)
 
void setInletWaterMassFlow (double inletWaterMassFlow)
 
void setTankPressure (double tankPressure)
 
void setQuantityType (SteamProperties::ThermodynamicQuantity quantityType)
 

Private Member Functions

void calculateProperties ()
 

Private Attributes

double inletWaterPressure
 
double quantityValue
 
double inletWaterMassFlow
 
double tankPressure
 
SteamProperties::ThermodynamicQuantity quantityType
 
SteamSystemModelerTool::FluidProperties inletWaterProperties
 
SteamSystemModelerTool::FluidProperties outletLiquidSaturatedProperties
 
SteamSystemModelerTool::FluidProperties outletGasSaturatedProperties
 

Friends

std::ostream & operator<< (std::ostream &stream, const FlashTank &flashTank)
 
std::ostream & operator<< (std::ostream &stream, const std::shared_ptr< FlashTank > &flashTank)
 

Detailed Description

Heat Loss calculator class Used to calculateThermalResistance the heat energy loss and outlet steam properties

Definition at line 23 of file FlashTank.h.

Constructor & Destructor Documentation

◆ FlashTank()

FlashTank::FlashTank ( double  inletWaterPressure,
SteamProperties::ThermodynamicQuantity  quantityType,
double  quantityValue,
double  inletWaterMassFlow,
double  tankPressure 
)

Constructor for the flash tank calculator

Parameters
inletWaterPressuredouble, inlet water pressure in MPa
quantityTypeSteamProperties::ThermodynamicQuantity, type of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)
quantityValuedouble, value of the quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)
inletWaterMassFlowdouble, inlet water mass flow in kg/hr
tankPressuredouble, pressure of the tank in MPa

Member Function Documentation

◆ getInletWaterMassFlow()

double FlashTank::getInletWaterMassFlow ( ) const

Gets the inlet water mass flow

Returns
double, mass flow of the inlet water in kg/hr

◆ getInletWaterPressure()

double FlashTank::getInletWaterPressure ( ) const

Gets the inlet water pressure

Returns
double, pressure of the inlet water in MPa

◆ getInletWaterProperties()

SteamSystemModelerTool::FluidProperties const & FlashTank::getInletWaterProperties ( ) const
inline

Gets all of the properties of the inlet water

Returns
SteamSystemModelerTool::FluidProperties, inlet water properties

Definition at line 47 of file FlashTank.h.

◆ getOutletGasSaturatedProperties()

SteamSystemModelerTool::FluidProperties const & FlashTank::getOutletGasSaturatedProperties ( ) const
inline

Gets all of the saturated properties of the outlet gas and liquid

Returns
SteamSystemModelerTool::FluidProperties, outlet gas and liquid saturated properties

Definition at line 53 of file FlashTank.h.

◆ getOutletLiquidSaturatedProperties()

SteamSystemModelerTool::FluidProperties const & FlashTank::getOutletLiquidSaturatedProperties ( ) const
inline

Definition at line 56 of file FlashTank.h.

◆ getQuantityType()

SteamProperties::ThermodynamicQuantity FlashTank::getQuantityType ( ) const

Gets the quantity type

Returns
SteamProperties::ThermodynamicQuantity, type of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)

◆ getQuantityValue()

double FlashTank::getQuantityValue ( ) const

Gets the quantity value

Returns
double, value of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)

◆ getTankPressure()

double FlashTank::getTankPressure ( ) const

Gets the pressure of the tank

Returns
double, tank pressure in MPa

◆ setInletWaterMassFlow()

void FlashTank::setInletWaterMassFlow ( double  inletWaterMassFlow)

Sets the inlet water mass flow

Parameters
inletWaterMassFlowdouble, mass flow of the inlet water in kg/hr

◆ setInletWaterPressure()

void FlashTank::setInletWaterPressure ( double  inletWaterPressure)

Sets the inlet water pressure

Parameters
inletWaterPressuredouble, pressure of the inlet water in MPa

◆ setQuantityType()

void FlashTank::setQuantityType ( SteamProperties::ThermodynamicQuantity  quantityType)

Sets the quantity type

Parameters
quantityTypeSteamProperties::ThermodynamicQuantity, type of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)

◆ setQuantityValue()

void FlashTank::setQuantityValue ( double  quantityValue)

Sets the quantity value

Parameters
quantityValuedouble, value of quantity (either temperature in K, enthalpy in kJ/kg, entropy in kJ/kg/K, or quality - unitless)

◆ setTankPressure()

void FlashTank::setTankPressure ( double  tankPressure)

Sets the pressure of the tank

Parameters
tankPressuredouble, tank pressure in MPa

Member Data Documentation

◆ inletWaterMassFlow

double FlashTank::inletWaterMassFlow
private

Definition at line 127 of file FlashTank.h.

◆ inletWaterPressure

double FlashTank::inletWaterPressure
private

Definition at line 127 of file FlashTank.h.

◆ inletWaterProperties

SteamSystemModelerTool::FluidProperties FlashTank::inletWaterProperties
private

Definition at line 130 of file FlashTank.h.

◆ outletGasSaturatedProperties

SteamSystemModelerTool::FluidProperties FlashTank::outletGasSaturatedProperties
private

Definition at line 131 of file FlashTank.h.

◆ outletLiquidSaturatedProperties

SteamSystemModelerTool::FluidProperties FlashTank::outletLiquidSaturatedProperties
private

Definition at line 130 of file FlashTank.h.

◆ quantityType

SteamProperties::ThermodynamicQuantity FlashTank::quantityType
private

Definition at line 128 of file FlashTank.h.

◆ quantityValue

double FlashTank::quantityValue
private

Definition at line 127 of file FlashTank.h.

◆ tankPressure

double FlashTank::tankPressure
private

Definition at line 127 of file FlashTank.h.


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