Class DistillationColumn.Builder
java.lang.Object
neqsim.process.equipment.distillation.DistillationColumn.Builder
- Enclosing class:
DistillationColumn
Fluent builder for
DistillationColumn.
Example usage:
DistillationColumn col = DistillationColumn.builder("Deethanizer").numberOfTrays(7)
.withCondenserAndReboiler().topPressure(30.0, "bara").bottomPressure(31.0, "bara")
.insideOut().addFeedStream(feed, 4).build();
- Version:
- 1.0
- Author:
- esol
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleBottom tray pressure in bara (-1 means unset).private ColumnSpecificationBottom product specification.private booleanWhether to add a condenser.private doubleInternal column diameter.Feed streams with tray indices.private doubleMass balance convergence tolerance.private intMaximum iterations.private final StringColumn name.private intNumber of simple (non-condenser/reboiler) trays.private booleanWhether to add a reboiler.private doubleRelaxation factor for damped substitution.private DistillationColumn.SolverTypeSolver type.private doubleTemperature convergence tolerance.private doubleTop tray pressure in bara (-1 means unset).private ColumnSpecificationTop product specification. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFeedStream(StreamInterface feed, int trayIndex) Adds a feed stream at the specified tray index.bottomPressure(double pressure, String unit) Sets the bottom tray pressure.Sets the bottom column specification.build()Builds theDistillationColumnwith the configured parameters.Selects the damped substitution solver.Selects the inside-out solver.internalDiameter(double diameter) Sets the internal column diameter.massBalanceTolerance(double tol) Sets the mass balance convergence tolerance.maxIterations(int maxIter) Sets the maximum number of solver iterations.numberOfTrays(int n) Sets the number of simple trays (excluding condenser and reboiler).Sets both top and bottom pressure to the same value.relaxationFactor(double factor) Sets the relaxation factor for damped substitution.temperatureTolerance(double tol) Sets the temperature convergence tolerance.tolerance(double tol) Sets a combined tolerance for temperature and mass balance.topPressure(double pressure, String unit) Sets the top tray pressure.topProductPurity(String componentName, double purity) Sets a top product purity specification.Configures the column with both a condenser and a reboiler.
-
Field Details
-
name
Column name. -
numberOfTrays
private int numberOfTraysNumber of simple (non-condenser/reboiler) trays. -
condenser
private boolean condenserWhether to add a condenser. -
reboiler
private boolean reboilerWhether to add a reboiler. -
topPressure
private double topPressureTop tray pressure in bara (-1 means unset). -
bottomPressure
private double bottomPressureBottom tray pressure in bara (-1 means unset). -
tempTol
private double tempTolTemperature convergence tolerance. -
massTol
private double massTolMass balance convergence tolerance. -
maxIter
private int maxIterMaximum iterations. -
solver
Solver type. -
relaxation
private double relaxationRelaxation factor for damped substitution. -
diameter
private double diameterInternal column diameter. -
topSpec
Top product specification. -
bottomSpec
Bottom product specification. -
feeds
-
-
Constructor Details
-
Builder
-
-
Method Details
-
numberOfTrays
Sets the number of simple trays (excluding condenser and reboiler).- Parameters:
n- number of trays- Returns:
- this builder
-
withCondenserAndReboiler
Configures the column with both a condenser and a reboiler.- Returns:
- this builder
-
topPressure
Sets the top tray pressure.- Parameters:
pressure- pressure valueunit- pressure unit (e.g. "bara")- Returns:
- this builder
-
bottomPressure
Sets the bottom tray pressure.- Parameters:
pressure- pressure valueunit- pressure unit (e.g. "bara")- Returns:
- this builder
-
pressure
Sets both top and bottom pressure to the same value.- Parameters:
pressure- pressure valueunit- pressure unit (e.g. "bara")- Returns:
- this builder
-
temperatureTolerance
Sets the temperature convergence tolerance.- Parameters:
tol- tolerance value- Returns:
- this builder
-
massBalanceTolerance
Sets the mass balance convergence tolerance.- Parameters:
tol- tolerance value- Returns:
- this builder
-
tolerance
Sets a combined tolerance for temperature and mass balance.- Parameters:
tol- tolerance value- Returns:
- this builder
-
maxIterations
Sets the maximum number of solver iterations.- Parameters:
maxIter- maximum iterations- Returns:
- this builder
-
dampedSubstitution
Selects the damped substitution solver.- Returns:
- this builder
-
insideOut
-
relaxationFactor
Sets the relaxation factor for damped substitution.- Parameters:
factor- relaxation factor- Returns:
- this builder
-
internalDiameter
Sets the internal column diameter.- Parameters:
diameter- diameter in meters- Returns:
- this builder
-
addFeedStream
Adds a feed stream at the specified tray index.- Parameters:
feed- the feed streamtrayIndex- the tray index for this feed- Returns:
- this builder
-
topProductPurity
Sets a top product purity specification.- Parameters:
componentName- the component namepurity- the target mole fraction- Returns:
- this builder
-
bottomSpecification
Sets the bottom column specification.- Parameters:
spec- the bottom specification- Returns:
- this builder
-
build
Builds theDistillationColumnwith the configured parameters.- Returns:
- the constructed column
-