Class Separator.Builder
java.lang.Object
neqsim.process.equipment.separator.Separator.Builder
- Enclosing class:
Separator
Builder class for constructing Separator instances with a fluent API.
Provides a readable and maintainable way to construct separators with geometry, orientation, efficiency, and entrainment specifications.
- Version:
- 1.0
- Author:
- NeqSim
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate doubleprivate doubleprivate doubleprivate doubleprivate Stringprivate doubleprivate StreamInterfaceprivate doubleprivate doubleprivate doubleprivate final Stringprivate doubleprivate Stringprivate Stringprivate doubleprivate doubleprivate Stringprivate doubleprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns the configured Separator instance.designLiquidLevelFraction(double fraction) Sets the design liquid level as a fraction of diameter (0.0-1.0).diameter(double diameter) Sets the internal diameter in meters.efficiency(double eff) Sets the separation efficiency (0.0-1.0).gasCarryunder(double fraction) Sets the gas carryunder fraction to liquid outlet (0.0-1.0).gasInLiquid(double value, String spec) Sets gas entrainment in liquid phase.heatInput(double heat) Sets heat input to the separator in Watts.Sets the separator as horizontal orientation.inletStream(StreamInterface stream) Sets the inlet stream for the separator.length(double length) Sets the separator length in meters.liquidCarryover(double fraction) Sets the liquid carryover fraction to gas outlet (0.0-1.0).liquidLevel(double level) Sets the liquid level in meters.Sets oil entrainment in gas phase.orientation(String orientation) Sets the separator orientation.pressureDrop(double dp) Sets the pressure drop across the separator in bar.specifiedStream(String streamType) Sets the reference stream for entrainment specifications.Enables steady-state calculation mode (default).Enables transient (dynamic) calculation mode.vertical()Sets the separator as vertical orientation.waterInGas(double value, String spec) Sets water entrainment in gas phase.
-
Field Details
-
name
-
inletStream
-
orientation
-
separatorLength
private double separatorLength -
internalDiameter
private double internalDiameter -
liquidLevel
private double liquidLevel -
designLiquidLevelFraction
private double designLiquidLevelFraction -
pressureDrop
private double pressureDrop -
efficiency
private double efficiency -
liquidCarryoverFraction
private double liquidCarryoverFraction -
gasCarryunderFraction
private double gasCarryunderFraction -
oilInGas
private double oilInGas -
oilInGasSpec
-
waterInGas
private double waterInGas -
waterInGasSpec
-
gasInLiquid
private double gasInLiquid -
gasInLiquidSpec
-
specifiedStream
-
heatInput
private double heatInput -
calculateSteadyState
private boolean calculateSteadyState
-
-
Constructor Details
-
Builder
Creates a new Builder with the specified separator name.- Parameters:
name- the name of the separator
-
-
Method Details
-
inletStream
Sets the inlet stream for the separator.- Parameters:
stream- the inlet stream- Returns:
- this builder for chaining
-
orientation
Sets the separator orientation.- Parameters:
orientation- "horizontal" or "vertical"- Returns:
- this builder for chaining
-
horizontal
Sets the separator as horizontal orientation.- Returns:
- this builder for chaining
-
vertical
Sets the separator as vertical orientation.- Returns:
- this builder for chaining
-
length
Sets the separator length in meters.- Parameters:
length- separator length in meters- Returns:
- this builder for chaining
-
diameter
Sets the internal diameter in meters.- Parameters:
diameter- internal diameter in meters- Returns:
- this builder for chaining
-
liquidLevel
Sets the liquid level in meters.- Parameters:
level- liquid level height in meters- Returns:
- this builder for chaining
-
designLiquidLevelFraction
Sets the design liquid level as a fraction of diameter (0.0-1.0).- Parameters:
fraction- liquid level fraction- Returns:
- this builder for chaining
-
pressureDrop
Sets the pressure drop across the separator in bar.- Parameters:
dp- pressure drop in bar- Returns:
- this builder for chaining
-
efficiency
Sets the separation efficiency (0.0-1.0).- Parameters:
eff- efficiency value- Returns:
- this builder for chaining
-
liquidCarryover
Sets the liquid carryover fraction to gas outlet (0.0-1.0).- Parameters:
fraction- liquid carryover fraction- Returns:
- this builder for chaining
-
gasCarryunder
Sets the gas carryunder fraction to liquid outlet (0.0-1.0).- Parameters:
fraction- gas carryunder fraction- Returns:
- this builder for chaining
-
oilInGas
Sets oil entrainment in gas phase.- Parameters:
value- entrainment valuespec- specification type ("mole", "mass", "volume")- Returns:
- this builder for chaining
-
waterInGas
Sets water entrainment in gas phase.- Parameters:
value- entrainment valuespec- specification type ("mole", "mass", "volume")- Returns:
- this builder for chaining
-
gasInLiquid
Sets gas entrainment in liquid phase.- Parameters:
value- entrainment valuespec- specification type ("mole", "mass", "volume")- Returns:
- this builder for chaining
-
specifiedStream
Sets the reference stream for entrainment specifications.- Parameters:
streamType- "feed", "gas", or "liquid"- Returns:
- this builder for chaining
-
heatInput
Sets heat input to the separator in Watts.- Parameters:
heat- heat input in W- Returns:
- this builder for chaining
-
transientMode
Enables transient (dynamic) calculation mode.- Returns:
- this builder for chaining
-
steadyStateMode
Enables steady-state calculation mode (default).- Returns:
- this builder for chaining
-
build
Builds and returns the configured Separator instance.- Returns:
- a new Separator instance with the specified configuration
-