Class ProcessBasis
java.lang.Object
neqsim.process.design.ProcessBasis
Class representing process basis (design basis) for a process template.
ProcessBasis encapsulates all the input data needed to configure a process template, including:
- Feed stream conditions (composition, flow rate, P, T)
- Product specifications (outlet pressures, temperatures)
- Environmental conditions (ambient temperature, cooling medium)
- Design constraints and safety factors
- Company standards and TR documents
Example usage:
ProcessBasis basis = ProcessBasis.builder().setFeedFluid(gasCondensate)
.setFeedFlowRate(100000.0, "kg/hr").setFeedPressure(100.0, "bara")
.setFeedTemperature(80.0, "C").addStagePressure(1, 70.0, "bara")
.addStagePressure(2, 20.0, "bara").addStagePressure(3, 2.0, "bara")
.setCompanyStandard("Equinor", "TR2000").setSafetyFactor(1.2).build();
- Version:
- 1.0
- Author:
- NeqSim Development Team
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for ProcessBasis.static classSpecification for a product stream. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate Stringprivate doubleprivate doubleprivate SystemInterfaceprivate doubleprivate StreamInterfaceprivate doubleprivate List<ProcessBasis.ProductSpecification> private doubleprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessBasis.Builderbuilder()Create a new builder for ProcessBasis.doubleGet the ambient temperature in Kelvin.Get the company standard.getConstraint(String name) Get a constraint value by name.doubleGet the cooling medium temperature in Kelvin.doubleGet the feed flow rate in kg/hr.Get the feed fluid.doubleGet the feed pressure in bara.Get the feed stream.doubleGet the feed temperature in Kelvin.intGet the number of stages defined.doublegetParameter(String name, double defaultValue) Get a parameter value by name with default.getParameterString(String name, String defaultValue) Get a string parameter value by name with default.Get product specifications.doubleGet the safety factor.getStagePressure(int stage) Get the pressure for a specific stage.Get all stage pressures.Get the TR document reference.voidsetFeedFlowRate(double flowRate) Set the feed flow rate directly (convenience method).voidsetFeedFluid(SystemInterface fluid) Set the feed fluid directly (convenience method).voidsetFeedPressure(double pressure) Set the feed pressure directly (convenience method).voidsetFeedTemperature(double temperature) Set the feed temperature directly (convenience method).voidsetParameter(String name, double value) Set a parameter value.voidsetParameterString(String name, String value) Set a string parameter value.
-
Field Details
-
feedFluid
-
feedStream
-
feedFlowRate
private double feedFlowRate -
feedPressure
private double feedPressure -
feedTemperature
private double feedTemperature -
stagePressures
-
stageTemperatures
-
ambientTemperature
private double ambientTemperature -
coolingMediumTemperature
private double coolingMediumTemperature -
companyStandard
-
trDocument
-
safetyFactor
private double safetyFactor -
productSpecs
-
constraints
-
parameters
-
stringParameters
-
-
Constructor Details
-
ProcessBasis
public ProcessBasis()Default constructor - for direct instantiation.
-
-
Method Details
-
builder
Create a new builder for ProcessBasis.- Returns:
- new builder instance
-
getFeedFluid
-
getFeedStream
Get the feed stream. If not explicitly set, creates one from feed fluid.- Returns:
- feed stream
-
getFeedFlowRate
public double getFeedFlowRate()Get the feed flow rate in kg/hr.- Returns:
- feed flow rate
-
getFeedPressure
public double getFeedPressure()Get the feed pressure in bara.- Returns:
- feed pressure
-
getFeedTemperature
public double getFeedTemperature()Get the feed temperature in Kelvin.- Returns:
- feed temperature
-
getStagePressure
Get the pressure for a specific stage.- Parameters:
stage- stage number (1-based)- Returns:
- pressure in bara, or null if not set
-
getStagePressures
-
getNumberOfStages
public int getNumberOfStages()Get the number of stages defined.- Returns:
- number of stages
-
getAmbientTemperature
public double getAmbientTemperature()Get the ambient temperature in Kelvin.- Returns:
- ambient temperature
-
getCoolingMediumTemperature
public double getCoolingMediumTemperature()Get the cooling medium temperature in Kelvin.- Returns:
- cooling medium temperature
-
getCompanyStandard
-
getTRDocument
-
getSafetyFactor
public double getSafetyFactor()Get the safety factor.- Returns:
- safety factor
-
getProductSpecs
Get product specifications.- Returns:
- list of product specifications
-
getConstraint
-
getParameter
Get a parameter value by name with default.- Parameters:
name- parameter namedefaultValue- default value if not set- Returns:
- parameter value or default
-
setParameter
Set a parameter value.- Parameters:
name- parameter namevalue- parameter value
-
getParameterString
-
setParameterString
-
setFeedFluid
Set the feed fluid directly (convenience method).- Parameters:
fluid- the fluid
-
setFeedPressure
public void setFeedPressure(double pressure) Set the feed pressure directly (convenience method).- Parameters:
pressure- pressure in bara
-
setFeedTemperature
public void setFeedTemperature(double temperature) Set the feed temperature directly (convenience method).- Parameters:
temperature- temperature in Kelvin
-
setFeedFlowRate
public void setFeedFlowRate(double flowRate) Set the feed flow rate directly (convenience method).- Parameters:
flowRate- flow rate in kg/hr
-