Class TurboExpanderCompressor
- All Implemented Interfaces:
Serializable, Runnable, CompressorInterface, ExpanderInterface, ProcessEquipmentInterface, TwoPortInterface, StateVectorProvider, SimulationInterface, NamedInterface
This class provides configuration for impeller, speed, efficiency, and curve fit parameters, and exposes all relevant design and result values via getters/setters. The main run() method matches expander and compressor power using a robust Newton-Raphson approach, updating all result fields and output streams.
- Author:
- esol
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classNested classes/interfaces inherited from class Compressor
Compressor.Builder -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleMechanical bearing loss power [W].private doubleCompressor polytropic efficiency (design/actual).private doubleCompressor design polytropic head [kJ/kg].(package private) StreamInterface(package private) StreamInterfaceprivate doubleprivate doubleCompressor actual polytropic head [kJ/kg].private doubleprivate doubleCurrent effective IGV area [mm^2].private doubleDesign Q/N for the expander (flow/speed ratio).private doubleDesign Q/N (flow/speed ratio).private doubleDesign speed [rpm].private doubleDesign UC (velocity ratio, expander).private double(package private) StreamInterfaceprivate doubleExpander isentropic efficiency (actual, result).(package private) StreamInterfaceprivate doubleExpander outlet pressure [bar abs].private doubleMatched expander speed [rpm].private doubleprivate doubleAllowable IGV area increase factor (e.g. 1.14 for +14%).private doubleIGV opening (1.0 = 100% open, fraction of max area).private doubleImpeller diameter [m].private doubleLast calculated stage isentropic enthalpy drop [J/kg].private doubleMaximum IGV area [mm^2] for the installed hardware.private doubleCompressor shaft power [W].private doubleExpander shaft power [W].private doubleActual Q/N (flow/speed ratio).private doubleQN/efficiency curve fit parameter.private doubleprivate doubleprivate double[]private double[]private doubleQN/head curve fit parameter.private doubleprivate double[]private doubleprivate double[]private doubleQN ratio for compressor (actual/ideal).private doubleQN ratio for expander (actual/ideal).private static final longprivate doubleUC/efficiency curve fit parameter.private doubleprivate doubleprivate doubleUC ratio for compressor (actual/ideal).private doubleUC ratio for expander (actual/ideal).private booleanFlag indicating whether the enlarged IGV area is being used.Fields inherited from class Compressor
calcPressureOut, dH, inletEnthalpy, isentropicEfficiency, polytropicEfficiency, powerSet, pressure, thermoSystem, usePolytropicCalcFields inherited from class TwoPortEquipment
inStream, outStreamFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionTurboExpanderCompressor(String name, StreamInterface inletStream) Construct a TurboExpanderCompressor with the specified name and inlet stream. -
Method Summary
Modifier and TypeMethodDescriptiondoubleCalculate the current IGV (Inlet Guide Vane) open area.doubleCalculate the IGV opening based on the current IGV opening fraction.doubleCalculate the IGV (Inlet Guide Vane) opening using the current flow conditions and last computed stage enthalpy drop.evaluateIGV(double stageDrop, double massFlow, double volumetricFlow) doubleGetter for the fieldbearingLossPower.doubleGetter for the fieldcompressorDesignPolytropicEfficiency.doubleGetter for the fieldcompressorDesignPolytropicHead.doublegetCompressorDesingPolytropicHead.Getter for the fieldcompressorFeedStream.Get the compressor outlet stream after calculation.doubleGetter for the fieldcompressorPolytropicEfficiency.doublegetCompressorPolytropicEfficieny.doubleGetter for the fieldcompressorPolytropicHead.doubleGetter for the fieldcompressorSpeed.doubledoublegetDesignCompressorPolytropicEfficiency.doubledoubleGetter for the fielddesignQn.doubleGetter for the fielddesignSpeed.doubleGetter for the fielddesignUC.doublegetEfficiencyFromQN(double qn) Evaluate the fitted Q/N efficiency curve at a given qn value using cubic spline interpolation.doublegetEfficiencyFromUC(double uc) Evaluate the fitted UC curve at a given uc value.doubleGetter for the fieldexpanderDesignIsentropicEfficiency.Getter for the fieldexpanderFeedStream.doubleGetter for the fieldexpanderIsentropicEfficiency.Getter for the fieldexpanderOutletStream.doubleGetter for the fieldexpanderOutPressure.doubleGetter for the fieldexpanderSpeed.doubleGetter for the fieldgearRatio.doublegetHeadFromQN(double qn) Evaluate the fitted Q/N head curve at a given qn value using cubic spline interpolation.doubledoublegetIGVopening.doubleGetter for the fieldimpellerDiameter.doublegetMassBalance(String unit) getMassBalance.doubleGetter for the fieldmaximumIGVArea.Get outlet Stream of twoport.doubleGetter for the fieldpowerCompressor.doublegetPowerCompressor(String unit) Getter for the fieldpowerCompressorwith unit conversion.doubleGetter for the fieldpowerExpander.doublegetPowerExpander(String unit) Getter for the fieldpowerExpanderwith unit conversion.doublegetQn()getQn.doubleGetter for the fieldqnCurveA.doubleGetter for the fieldqnCurveH.doubleGetter for the fieldqnCurveK.doubleGetter for the fieldqnHeadCurveA.doubleGetter for the fieldqnHeadCurveH.doubleGetter for the fieldqnHeadCurveK.doubleGet the QN ratio for the compressor after calculation.doubleGet the QN ratio for the expander after calculation.static longgetSerialversionuid.doublegetSpeed()Getter for the fieldspeed.doubleGetter for the fielducCurveA.doubleGetter for the fielducCurveH.doubleGetter for the fielducCurveK.doubleGet the UC ratio for the compressor after calculation.doubleGet the UC ratio for the expander after calculation.booleanvoidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidsetCompressorDesignPolytropicEfficiency(double compressorPolytropicEfficiency) Setter for the fieldcompressorDesignPolytropicEfficiency.voidsetCompressorDesignPolytropicHead(double compressorDesignPolytropicHead) Setter for the fieldcompressorDesignPolytropicHead.voidsetCompressorFeedStream(StreamInterface compressorFeedStream) Set the compressor feed stream for the turbo expander-compressor system.voidsetDesignExpanderQn(double designExpanderQn) voidsetDesignQn(double designQn) Setter for the fielddesignQn.voidsetDesignSpeed(double designSpeed) Setter for the fielddesignSpeed.voidsetDesignUC(double designUC) Setter for the fielddesignUC.voidsetExpanderDesignIsentropicEfficiency(double expanderDesignIsentropicEfficiency) Setter for the fieldexpanderDesignIsentropicEfficiency.voidsetExpanderIsentropicEfficiency(double expanderIsentropicEfficiency) Setter for the fieldexpanderIsentropicEfficiency.voidsetExpanderOutPressure(double expanderOutPressure) Set the expander outlet pressure (absolute, bar).voidsetIgvAreaIncreaseFactor(double igvAreaIncreaseFactor) voidsetIGVopening(double iGVopening) setIGVopening.voidsetImpellerDiameter(double impellerDiameter) Setter for the fieldimpellerDiameter.voidsetMaximumIGVArea(double maximumIGVArea) Setter for the fieldmaximumIGVArea.voidsetQn(double qn) setQn.voidsetQNEfficiencycurve(double[] qnValues, double[] efficiencyValues) Fit a Q/N efficiency curve using cubic spline interpolation.voidsetQNHeadcurve(double[] qnValues, double[] headValues) Fit a Q/N head curve using cubic spline interpolation.voidsetQNratiocompressor(double QNratiocompressor) setQNratiocompressor.voidsetQNratioexpander(double QNratioexpander) setQNratioexpander.voidsetUCcurve(double[] ucValues, double[] efficiencyValues) Fit a constrained parabola: efficiency = a*(uc - h)^2 + k, with vertex at (h, k) = (1, 1).voidsetUCratiocompressor(double UCratiocompressor) setUCratiocompressor.voidsetUCratioexpander(double UCratioexpander) setUCratioexpander.toJson()Serializes the Process Equipment along with its state to a JSON string.toJson(ReportConfig cfg) Serializes the Process Equipment with configurable level of detail.private voidupdateIGVState(double stageDrop, double massFlow, double volumetricFlow) Methods inherited from class Expander
getExpanderMechanicalDesignMethods inherited from class Compressor
acknowledgeTrip, addEventListener, addOperatingHours, builder, checkPowerLimits, checkSpeedLimits, checkStoneWallMargin, checkSurgeMargin, copy, disableOperatingHistory, displayResult, emergencyShutdown, enableOperatingHistory, equals, findOutPressure, generateCompressorChart, generateCompressorChart, generateCompressorChart, generateCompressorChart, generateCompressorChart, generateCompressorChartFromTemplate, generateCompressorCurves, getActualCompressionRatio, getAntiSurge, getBearingLoss, getCapacityDuty, getCapacityMax, getCompressionRatio, getCompressorChart, getCompressorChartType, getDegradationFactor, getDistanceToStoneWall, getDistanceToSurge, getDriver, getEffectivePolytropicEfficiency, getEffectivePolytropicHead, getEnergy, getEntropyProduction, getExergyChange, getExergyChange, getFoulingFactor, getIsentropicEfficiency, getMaxAccelerationRate, getMaxDecelerationRate, getMaximumSpeed, getMaxOutletPressure, getMechanicalDesign, getMechanicalEfficiency, getMechanicalLosses, getMinimumSpeed, getNumberOfCompressorCalcSteps, getOperatingHistory, getOperatingHours, getOperatingState, getOutletPressure, getOutTemperature, getPolytropicEfficiency, getPolytropicExponent, getPolytropicFluidHead, getPolytropicHead, getPolytropicHead, getPolytropicHeadMeter, getPolytropicMethod, getPower, getPower, getPropertyProfile, getRatioToMaxSpeed, getRatioToMaxSpeed, getRatioToMinSpeed, getRatioToMinSpeed, getResultTable, getRotationalInertia, getSafetyFactorCorrectedFlowHeadAtCurrentSpeed, getSealGasConsumption, getShutdownProfile, getStartupProfile, getStateVector, getStoneWallWarningThreshold, getSurgeCriticalThreshold, getSurgeFlowRate, getSurgeFlowRateMargin, getSurgeFlowRateStd, getSurgeWarningThreshold, getTargetSpeed, getThermoSystem, getTotalWork, hashCode, initMechanicalDesign, initMechanicalLosses, initMechanicalLosses, isAutoSpeedMode, isCalcPressureOut, isHigherThanMaxSpeed, isHigherThanMaxSpeed, isLimitSpeed, isLowerThanMinSpeed, isLowerThanMinSpeed, isSetMaxOutletPressure, isSolveSpeed, isSpeedWithinRange, isSpeedWithinRange, isStoneWall, isStoneWall, isSurge, isUseGERG2008, isUseLeachman, isUseRigorousPolytropicMethod, isUseVega, recordOperatingPoint, removeEventListener, resetDynamicState, runController, runTransient, setAntiSurge, setAutoSpeedMode, setCalcPressureOut, setCompressionRatio, setCompressorChart, setCompressorChartType, setDegradationFactor, setDriver, setDriver, setFoulingFactor, setInletStream, setIsentropicEfficiency, setIsSetMaxOutletPressure, setLimitSpeed, setMaxAccelerationRate, setMaxDecelerationRate, setMaximumSpeed, setMaxOutletPressure, setMechanicalLosses, setMinimumSpeed, setNumberOfCompressorCalcSteps, setOperatingHours, setOperatingState, setOutletPressure, setOutletPressure, setOutTemperature, setPolytropicEfficiency, setPolytropicHeadMeter, setPolytropicMethod, setPower, setPressure, setPressure, setPropertyProfile, setRotationalInertia, setShutdownProfile, setSolveSpeed, setSpeed, setStartupProfile, setStoneWallWarningThreshold, setSurgeCriticalThreshold, setSurgeWarningThreshold, setTargetSpeed, setUseEnergyEfficiencyChart, setUseGERG2008, setUseLeachman, setUsePolytropicCalc, setUseRigorousPolytropicMethod, setUseVega, solveAntiSurge, solveEfficiency, startCompressor, stopCompressor, stopCompressor, updateDynamicState, updateMechanicalLosses, useOutTemperature, usePolytropicCalcMethods inherited from class TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getOutletTemperature, setInletPressure, setInletTemperature, setOutletStream, setOutletTemperature, validateSetupMethods inherited from class ProcessEquipmentBaseClass
getConditionAnalysisMessage, getController, getEnergyStream, getMassBalance, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getSpecification, getTemperature, getTemperature, isActive, isActive, isSetEnergyStream, reportResults, run_step, runConditionAnalysis, setController, setEnergyStream, setEnergyStream, setFlowValveController, setMinimumFlow, setRegulatorOutSignal, setSpecification, setTemperature, solvedMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagName, setName, setTagNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CompressorInterface
isSurgeMethods inherited from interface ExpanderInterface
getEnergyMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface ProcessEquipmentInterface
displayResult, equals, getCapacityDuty, getCapacityMax, getConditionAnalysisMessage, getController, getEntropyProduction, getExergyChange, getExergyChange, getFluid, getMassBalance, getMechanicalDesign, getPressure, getPressure, getReport_json, getRestCapacity, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, hashCode, initMechanicalDesign, needRecalculation, reportResults, runConditionAnalysis, setController, setPressure, setRegulatorOutSignal, setSpecification, setTemperature, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime, solvedMethods inherited from interface StateVectorProvider
getStateDimension, getStateNamesMethods inherited from interface TwoPortInterface
getInletPressure, getInletStream, getInletTemperature, getInStream, getOutletPressure, getOutletTemperature, getOutStream, setInletPressure, setInletStream, setInletTemperature, setOutletPressure, setOutletStream, setOutletTemperature
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
expanderOutPressure
private double expanderOutPressureExpander outlet pressure [bar abs]. -
IGVopening
private double IGVopeningIGV opening (1.0 = 100% open, fraction of max area). -
bearingLossPower
private double bearingLossPowerMechanical bearing loss power [W]. -
expanderSpeed
private double expanderSpeedMatched expander speed [rpm]. -
compressorSpeed
private double compressorSpeed -
gearRatio
private double gearRatio -
compressorFeedStream
StreamInterface compressorFeedStream -
compressorOutletStream
StreamInterface compressorOutletStream -
expanderFeedStream
StreamInterface expanderFeedStream -
expanderOutletStream
StreamInterface expanderOutletStream -
impellerDiameter
private double impellerDiameterImpeller diameter [m]. -
designSpeed
private double designSpeedDesign speed [rpm]. -
designUC
private double designUCDesign UC (velocity ratio, expander). -
UCratioexpander
private double UCratioexpanderUC ratio for expander (actual/ideal). -
UCratiocompressor
private double UCratiocompressorUC ratio for compressor (actual/ideal). -
QNratioexpander
private double QNratioexpanderQN ratio for expander (actual/ideal). -
QNratiocompressor
private double QNratiocompressorQN ratio for compressor (actual/ideal). -
designQn
private double designQnDesign Q/N (flow/speed ratio). -
designExpanderQn
private double designExpanderQnDesign Q/N for the expander (flow/speed ratio). -
Qn
private double QnActual Q/N (flow/speed ratio). -
maximumIGVArea
private double maximumIGVAreaMaximum IGV area [mm^2] for the installed hardware. -
igvAreaIncreaseFactor
private double igvAreaIncreaseFactorAllowable IGV area increase factor (e.g. 1.14 for +14%). -
usingExpandedIGVArea
private boolean usingExpandedIGVAreaFlag indicating whether the enlarged IGV area is being used. -
currentIGVArea
private double currentIGVAreaCurrent effective IGV area [mm^2]. -
lastStageEnthalpyDrop
private double lastStageEnthalpyDropLast calculated stage isentropic enthalpy drop [J/kg]. -
compressorDesignPolytropicEfficiency
private double compressorDesignPolytropicEfficiencyCompressor polytropic efficiency (design/actual). -
compressorPolytropicEfficiency
private double compressorPolytropicEfficiency -
compressorDesignPolytropicHead
private double compressorDesignPolytropicHeadCompressor design polytropic head [kJ/kg]. -
compressorPolytropicHead
private double compressorPolytropicHeadCompressor actual polytropic head [kJ/kg]. -
expanderIsentropicEfficiency
private double expanderIsentropicEfficiencyExpander isentropic efficiency (actual, result). -
expanderDesignIsentropicEfficiency
private double expanderDesignIsentropicEfficiency -
powerExpander
private double powerExpanderExpander shaft power [W]. -
powerCompressor
private double powerCompressorCompressor shaft power [W]. -
ucCurveA
private double ucCurveAUC/efficiency curve fit parameter. -
ucCurveH
private double ucCurveH -
ucCurveK
private double ucCurveK -
qnCurveA
private double qnCurveAQN/efficiency curve fit parameter. -
qnCurveH
private double qnCurveH -
qnCurveK
private double qnCurveK -
qnHeadCurveA
private double qnHeadCurveAQN/head curve fit parameter. -
qnHeadCurveH
private double qnHeadCurveH -
qnHeadCurveK
private double qnHeadCurveK -
qnHeadCurveQnValues
private double[] qnHeadCurveQnValues -
qnHeadCurveHeadValues
private double[] qnHeadCurveHeadValues -
qnEffCurveQnValues
private double[] qnEffCurveQnValues -
qnEffCurveEffValues
private double[] qnEffCurveEffValues
-
-
Constructor Details
-
TurboExpanderCompressor
Construct a TurboExpanderCompressor with the specified name and inlet stream.- Parameters:
name- the name of the turbo expander compressorinletStream- the inlet stream for the expander
-
-
Method Details
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
Run the expander/compressor calculation, matching expander and compressor power using Newton-Raphson iteration. Updates all result fields and output streams.
- Specified by:
runin interfaceSimulationInterface- Overrides:
runin classExpander- Parameters:
id- UUID
-
getCompressorPolytropicHead
public double getCompressorPolytropicHead()Getter for the field
compressorPolytropicHead.- Returns:
- a double
-
getUCratioexpander
public double getUCratioexpander()Get the UC ratio for the expander after calculation.- Returns:
- the UC ratio (expander)
-
getUCratiocompressor
public double getUCratiocompressor()Get the UC ratio for the compressor after calculation.- Returns:
- the UC ratio (compressor)
-
getQNratioexpander
public double getQNratioexpander()Get the QN ratio for the expander after calculation.- Returns:
- the QN ratio (expander)
-
getQNratiocompressor
public double getQNratiocompressor()Get the QN ratio for the compressor after calculation.- Returns:
- the QN ratio (compressor)
-
getQn
public double getQn()getQn.
- Returns:
- a double
-
setQn
public void setQn(double qn) setQn.
- Parameters:
qn- a double
-
getPowerExpander
public double getPowerExpander()Getter for the field
powerExpander.- Returns:
- a double
-
getPowerExpander
Getter for the field
powerExpanderwith unit conversion.- Parameters:
unit- the desired unit ("W", "kW" or "MW")- Returns:
- expander power in the requested unit
-
getPowerCompressor
public double getPowerCompressor()Getter for the field
powerCompressor.- Returns:
- a double
-
getPowerCompressor
Getter for the field
powerCompressorwith unit conversion.- Parameters:
unit- the desired unit ("W", "kW" or "MW")- Returns:
- compressor power in the requested unit
-
getExpanderIsentropicEfficiency
public double getExpanderIsentropicEfficiency()Getter for the field
expanderIsentropicEfficiency.- Returns:
- a double
-
setExpanderIsentropicEfficiency
public void setExpanderIsentropicEfficiency(double expanderIsentropicEfficiency) Setter for the field
expanderIsentropicEfficiency.- Parameters:
expanderIsentropicEfficiency- a double
-
getDesignCompressorPolytropicEfficiency
public double getDesignCompressorPolytropicEfficiency()getDesignCompressorPolytropicEfficiency.
- Returns:
- a double
-
setCompressorDesignPolytropicEfficiency
public void setCompressorDesignPolytropicEfficiency(double compressorPolytropicEfficiency) Setter for the field
compressorDesignPolytropicEfficiency.- Parameters:
compressorPolytropicEfficiency- a double
-
getCompressorDesignPolytropicHead
public double getCompressorDesignPolytropicHead()Getter for the field
compressorDesignPolytropicHead.- Returns:
- a double
-
setCompressorDesignPolytropicHead
public void setCompressorDesignPolytropicHead(double compressorDesignPolytropicHead) Setter for the field
compressorDesignPolytropicHead.- Parameters:
compressorDesignPolytropicHead- a double
-
setUCcurve
public void setUCcurve(double[] ucValues, double[] efficiencyValues) Fit a constrained parabola: efficiency = a*(uc - h)^2 + k, with vertex at (h, k) = (1, 1).- Parameters:
ucValues- array of uc valuesefficiencyValues- array of efficiency values
-
getEfficiencyFromUC
public double getEfficiencyFromUC(double uc) Evaluate the fitted UC curve at a given uc value.- Parameters:
uc- the uc value- Returns:
- the efficiency
-
setQNEfficiencycurve
public void setQNEfficiencycurve(double[] qnValues, double[] efficiencyValues) Fit a Q/N efficiency curve using cubic spline interpolation.- Parameters:
qnValues- array of Q/N values (does not need to be sorted)efficiencyValues- array of efficiency values
-
getEfficiencyFromQN
public double getEfficiencyFromQN(double qn) Evaluate the fitted Q/N efficiency curve at a given qn value using cubic spline interpolation. Linear extrapolation is used outside the data range.- Parameters:
qn- the Q/N value- Returns:
- the efficiency
-
setQNHeadcurve
public void setQNHeadcurve(double[] qnValues, double[] headValues) Fit a Q/N head curve using cubic spline interpolation.- Parameters:
qnValues- array of Q/N values (does not need to be sorted)headValues- array of head values
-
getHeadFromQN
public double getHeadFromQN(double qn) Evaluate the fitted Q/N head curve at a given qn value using cubic spline interpolation. Linear extrapolation is used outside the data range.- Parameters:
qn- the Q/N value- Returns:
- the head
-
calcIGVOpening
public double calcIGVOpening()Calculate the IGV opening based on the current IGV opening fraction.- Returns:
- IGV opening (fraction of max area)
-
calcIGVOpenArea
public double calcIGVOpenArea()Calculate the current IGV (Inlet Guide Vane) open area.- Returns:
- the IGV open area in mm²
-
calcIGVOpeningFromFlow
public double calcIGVOpeningFromFlow()Calculate the IGV (Inlet Guide Vane) opening using the current flow conditions and last computed stage enthalpy drop.- Returns:
- IGV opening (fraction of max area, capped at 1.0)
-
evaluateIGV
private TurboExpanderCompressor.IGVModelResult evaluateIGV(double stageDrop, double massFlow, double volumetricFlow) -
updateIGVState
private void updateIGVState(double stageDrop, double massFlow, double volumetricFlow) -
setImpellerDiameter
public void setImpellerDiameter(double impellerDiameter) Setter for the field
impellerDiameter.- Parameters:
impellerDiameter- a double
-
setDesignSpeed
public void setDesignSpeed(double designSpeed) Setter for the field
designSpeed.- Parameters:
designSpeed- a double
-
setDesignUC
public void setDesignUC(double designUC) Setter for the field
designUC.- Parameters:
designUC- a double
-
setDesignQn
public void setDesignQn(double designQn) Setter for the field
designQn.- Parameters:
designQn- a double
-
getDesignExpanderQn
public double getDesignExpanderQn() -
setDesignExpanderQn
public void setDesignExpanderQn(double designExpanderQn) -
setMaximumIGVArea
public void setMaximumIGVArea(double maximumIGVArea) Setter for the field
maximumIGVArea.- Parameters:
maximumIGVArea- a double
-
getIgvAreaIncreaseFactor
public double getIgvAreaIncreaseFactor() -
setIgvAreaIncreaseFactor
public void setIgvAreaIncreaseFactor(double igvAreaIncreaseFactor) -
getImpellerDiameter
public double getImpellerDiameter()Getter for the field
impellerDiameter.- Returns:
- a double
-
getDesignSpeed
public double getDesignSpeed()Getter for the field
designSpeed.- Returns:
- a double
-
getDesignUC
public double getDesignUC()Getter for the field
designUC.- Returns:
- a double
-
getDesignQn
public double getDesignQn()Getter for the field
designQn.- Returns:
- a double
-
getMaximumIGVArea
public double getMaximumIGVArea()Getter for the field
maximumIGVArea.- Returns:
- a double
-
getCompressorPolytropicEfficieny
public double getCompressorPolytropicEfficieny()getCompressorPolytropicEfficieny.
- Returns:
- a double
-
getCompressorDesingPolytropicHead
public double getCompressorDesingPolytropicHead()getCompressorDesingPolytropicHead.
- Returns:
- a double
-
getIGVopening
public double getIGVopening()getIGVopening.
- Returns:
- a double
-
setIGVopening
public void setIGVopening(double iGVopening) setIGVopening.
- Parameters:
iGVopening- a double
-
isUsingExpandedIGVArea
public boolean isUsingExpandedIGVArea() -
getCurrentIGVArea
public double getCurrentIGVArea() -
setExpanderOutPressure
public void setExpanderOutPressure(double expanderOutPressure) Set the expander outlet pressure (absolute, bar).- Parameters:
expanderOutPressure- the desired expander outlet pressure in bar abs
-
setCompressorFeedStream
Set the compressor feed stream for the turbo expander-compressor system.- Parameters:
compressorFeedStream- the feed stream to use for the compressor
-
getCompressorOutletStream
Get the compressor outlet stream after calculation.- Returns:
- the compressor outlet stream
-
getSpeed
public double getSpeed()Getter for the field
speed.- Overrides:
getSpeedin classCompressor- Returns:
- a double
-
getOutletStream
Get outlet Stream of twoport.- Specified by:
getOutletStreamin interfaceTwoPortInterface- Overrides:
getOutletStreamin classTwoPortEquipment- Returns:
- outlet Stream of TwoPortEquipment
-
setUCratioexpander
public void setUCratioexpander(double UCratioexpander) setUCratioexpander.
- Parameters:
UCratioexpander- a double
-
setUCratiocompressor
public void setUCratiocompressor(double UCratiocompressor) setUCratiocompressor.
- Parameters:
UCratiocompressor- a double
-
setQNratioexpander
public void setQNratioexpander(double QNratioexpander) setQNratioexpander.
- Parameters:
QNratioexpander- a double
-
setQNratiocompressor
public void setQNratiocompressor(double QNratiocompressor) setQNratiocompressor.
- Parameters:
QNratiocompressor- a double
-
getSerialversionuid
public static long getSerialversionuid()getSerialversionuid.
- Returns:
- a long
-
getExpanderOutPressure
public double getExpanderOutPressure()Getter for the field
expanderOutPressure.- Returns:
- a double
-
getBearingLossPower
public double getBearingLossPower()Getter for the field
bearingLossPower.- Returns:
- a double
-
getExpanderSpeed
public double getExpanderSpeed()Getter for the field
expanderSpeed.- Returns:
- a double
-
getCompressorSpeed
public double getCompressorSpeed()Getter for the field
compressorSpeed.- Returns:
- a double
-
getGearRatio
public double getGearRatio()Getter for the field
gearRatio.- Returns:
- a double
-
getCompressorFeedStream
Getter for the field
compressorFeedStream.- Returns:
- a
StreamInterfaceobject
-
getExpanderFeedStream
Getter for the field
expanderFeedStream.- Returns:
- a
StreamInterfaceobject
-
getExpanderOutletStream
Getter for the field
expanderOutletStream.- Returns:
- a
StreamInterfaceobject
-
getUcCurveA
public double getUcCurveA()Getter for the field
ucCurveA.- Returns:
- a double
-
getUcCurveH
public double getUcCurveH()Getter for the field
ucCurveH.- Returns:
- a double
-
getUcCurveK
public double getUcCurveK()Getter for the field
ucCurveK.- Returns:
- a double
-
getQnCurveA
public double getQnCurveA()Getter for the field
qnCurveA.- Returns:
- a double
-
getQnCurveH
public double getQnCurveH()Getter for the field
qnCurveH.- Returns:
- a double
-
getQnCurveK
public double getQnCurveK()Getter for the field
qnCurveK.- Returns:
- a double
-
getQnHeadCurveA
public double getQnHeadCurveA()Getter for the field
qnHeadCurveA.- Returns:
- a double
-
getQnHeadCurveH
public double getQnHeadCurveH()Getter for the field
qnHeadCurveH.- Returns:
- a double
-
getQnHeadCurveK
public double getQnHeadCurveK()Getter for the field
qnHeadCurveK.- Returns:
- a double
-
toJson
Serializes the Process Equipment along with its state to a JSON string.
- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classCompressor- Returns:
- json string.
-
toJson
Serializes the Process Equipment with configurable level of detail.- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classCompressor- Parameters:
cfg- report configuration- Returns:
- json string
-
getCompressorDesignPolytropicEfficiency
public double getCompressorDesignPolytropicEfficiency()Getter for the field
compressorDesignPolytropicEfficiency.- Returns:
- a double
-
getCompressorPolytropicEfficiency
public double getCompressorPolytropicEfficiency()Getter for the field
compressorPolytropicEfficiency.- Returns:
- a double
-
getExpanderDesignIsentropicEfficiency
public double getExpanderDesignIsentropicEfficiency()Getter for the field
expanderDesignIsentropicEfficiency.- Returns:
- a double
-
setExpanderDesignIsentropicEfficiency
public void setExpanderDesignIsentropicEfficiency(double expanderDesignIsentropicEfficiency) Setter for the field
expanderDesignIsentropicEfficiency.- Parameters:
expanderDesignIsentropicEfficiency- a double
-
getMassBalance
getMassBalance.
- Specified by:
getMassBalancein interfaceProcessEquipmentInterface- Overrides:
getMassBalancein classTwoPortEquipment- Parameters:
unit- aStringobject- Returns:
- a double
-