Class ProcessBasis.Builder
java.lang.Object
neqsim.process.design.ProcessBasis.Builder
- Enclosing class:
ProcessBasis
Builder class for ProcessBasis.
- Version:
- 1.0
- Author:
- NeqSim Development Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConstraint(String name, double value) Add a constraint.addProductSpec(String productName, String type) Add a product specification.addStagePressure(int stage, double pressure, String unit) Add a stage pressure.build()Build the ProcessBasis.setAmbientTemperature(double temperature, String unit) Set the ambient temperature.setCompanyStandard(String company, String trDoc) Set the company standard and TR document.setFeedFlowRate(double flowRate, String unit) Set the feed flow rate.setFeedFluid(SystemInterface fluid) Set the feed fluid.setFeedPressure(double pressure, String unit) Set the feed pressure.setFeedStream(StreamInterface stream) Set the feed stream directly.setFeedTemperature(double temperature, String unit) Set the feed temperature.setSafetyFactor(double factor) Set the safety factor.
-
Field Details
-
basis
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setFeedFluid
Set the feed fluid.- Parameters:
fluid- the fluid- Returns:
- this builder
-
setFeedStream
Set the feed stream directly.- Parameters:
stream- the feed stream- Returns:
- this builder
-
setFeedFlowRate
Set the feed flow rate.- Parameters:
flowRate- flow rate valueunit- unit ("kg/hr", "Sm3/day", etc.)- Returns:
- this builder
-
setFeedPressure
Set the feed pressure.- Parameters:
pressure- pressure valueunit- unit ("bara", "barg", "psia")- Returns:
- this builder
-
setFeedTemperature
Set the feed temperature.- Parameters:
temperature- temperature valueunit- unit ("K", "C", "F")- Returns:
- this builder
-
addStagePressure
Add a stage pressure.- Parameters:
stage- stage number (1-based)pressure- pressure valueunit- unit ("bara", "barg")- Returns:
- this builder
-
setCompanyStandard
Set the company standard and TR document.- Parameters:
company- company nametrDoc- TR document reference- Returns:
- this builder
-
setSafetyFactor
Set the safety factor.- Parameters:
factor- safety factor (typically 1.1-1.3)- Returns:
- this builder
-
setAmbientTemperature
Set the ambient temperature.- Parameters:
temperature- temperature valueunit- unit ("K", "C")- Returns:
- this builder
-
addProductSpec
Add a product specification.- Parameters:
productName- name of the producttype- product type ("gas", "oil", etc.)- Returns:
- this builder
-
addConstraint
Add a constraint.- Parameters:
name- constraint namevalue- constraint value- Returns:
- this builder
-
build
-