Class BlackOilSeparator
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.blackoil.BlackOilSeparator
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, ProcessElementInterface, SimulationInterface, NamedInterface
Equilibrium Black-Oil separator at given (P_out, T_out).
Extends ProcessEquipmentBaseClass so it can be added to a
ProcessSystem and participate in sequential flowsheet
execution alongside compositional equipment.
Inlet and outlet fluids are represented as SystemBlackOil objects (not
SystemInterface). Access them via getBlackOilInlet(),
getOilOut(), getGasOut(), getWaterOut().
- Version:
- 2.0
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SystemBlackOilprivate SystemBlackOilprivate BlackOilFlashResultprivate SystemBlackOilprivate doubleprivate doubleprivate static final longSerialization version UID.private SystemBlackOilFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionBlackOilSeparator(String name, SystemBlackOil inlet, double outletPressure, double outletTemperature) Constructs a BlackOilSeparator. -
Method Summary
Modifier and TypeMethodDescriptionReturns the inlet Black-Oil fluid.Returns the gas outlet stream after separation.Returns the last flash result from the most recent run.Returns the oil outlet stream after separation.doubleReturns the separator outlet pressure.doubleReturns the separator outlet temperature.Returns key results as a string map for reporting.Returns the water outlet stream after separation.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidLegacy run method for backward compatibility (no UUID tracking).voidsetInlet(SystemBlackOil inlet) Sets the inlet Black-Oil fluid.voidsetOutletPressure(double outletPressure) Sets the separator outlet pressure.voidsetOutletTemperature(double outletTemperature) Sets the separator outlet temperature.toJson()Serializes the Process Equipment along with its state to a JSON string.Methods inherited from class ProcessEquipmentBaseClass
addCapacityConstraint, addController, copy, displayResult, equals, getAvailableMargin, getAvailableMarginPercent, getBottleneckConstraint, getCapacityConstraints, getConditionAnalysisMessage, getConstraintEvaluationReport, getController, getController, getControllers, getEffectiveCapacityFactor, getEnergyStream, getEntropyProduction, getExergyChange, getFailureMode, getMassBalance, getMassBalance, getMaxUtilization, getMaxUtilizationPercent, getMechanicalDesign, getMinimumFlow, getPressure, getPressure, getProperty, getReferenceDesignation, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, getUtilizationSummary, hashCode, initElectricalDesign, initializeDefaultConstraints, initInstrumentDesign, initMechanicalDesign, isActive, isActive, isCapacityAnalysisEnabled, isCapacityExceeded, isFailed, isHardLimitExceeded, isNearCapacityLimit, isSetEnergyStream, reportResults, restoreFromFailure, run_step, runConditionAnalysis, setCapacityAnalysisEnabled, setController, setEnergyStream, setEnergyStream, setFailureMode, setFlowValveController, setMinimumFlow, setPressure, setReferenceDesignation, setRegulatorOutSignal, setSpecification, setTemperature, simulateDegradedOperation, simulateTrip, solved, toJsonMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagNumber, setName, setTagNumberMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedInterface
getName, getTagName, getTagNumber, setName, setTagName, setTagNumberMethods inherited from interface ProcessEquipmentInterface
getCapacityDuty, getCapacityMax, getElectricalDesign, getEquipmentState, getExergyChange, getExergyDestruction, getExergyDestruction, getFluid, getInletStreams, getInstrumentDesign, getOperatingEnvelopeViolation, getOutletFlowRate, getOutletPressure, getOutletStreams, getOutletTemperature, getReferenceDesignationString, getRestCapacity, getSimulationValidationErrors, isSimulationValid, isWithinOperatingEnvelope, needRecalculation, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
inlet
-
outletPressure
private double outletPressure -
outletTemperature
private double outletTemperature -
oilOut
-
gasOut
-
waterOut
-
lastResult
-
-
Constructor Details
-
BlackOilSeparator
public BlackOilSeparator(String name, SystemBlackOil inlet, double outletPressure, double outletTemperature) Constructs a BlackOilSeparator.- Parameters:
name- equipment name used in the process systeminlet- the inlet Black-Oil fluidoutletPressure- separator outlet pressure in bar(a)outletTemperature- separator outlet temperature in Kelvin
-
-
Method Details
-
setInlet
Sets the inlet Black-Oil fluid.- Parameters:
inlet- aSystemBlackOilobject
-
getBlackOilInlet
Returns the inlet Black-Oil fluid.- Returns:
- a
SystemBlackOilobject
-
getOilOut
Returns the oil outlet stream after separation.- Returns:
- a
SystemBlackOilobject, or null if not yet run
-
getGasOut
Returns the gas outlet stream after separation.- Returns:
- a
SystemBlackOilobject, or null if not yet run
-
getWaterOut
Returns the water outlet stream after separation.- Returns:
- a
SystemBlackOilobject, or null if not yet run
-
getLastFlashResult
Returns the last flash result from the most recent run.- Returns:
- a
BlackOilFlashResultobject, or null if not yet run
-
getOutletPressure
public double getOutletPressure()Returns the separator outlet pressure.- Returns:
- outlet pressure in bar(a)
-
setOutletPressure
public void setOutletPressure(double outletPressure) Sets the separator outlet pressure.- Parameters:
outletPressure- outlet pressure in bar(a)
-
getOutletTemperature
public double getOutletTemperature()Returns the separator outlet temperature.- Returns:
- outlet temperature in Kelvin
-
setOutletTemperature
public void setOutletTemperature(double outletTemperature) Sets the separator outlet temperature.- Parameters:
outletTemperature- outlet temperature in Kelvin
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
runSeparation
public void runSeparation()Legacy run method for backward compatibility (no UUID tracking). -
toJson
Serializes the Process Equipment along with its state to a JSON string.
- Specified by:
toJsonin interfaceProcessEquipmentInterface- Overrides:
toJsonin classProcessEquipmentBaseClass- Returns:
- json string.
-
getResultsMap
-