Class BoundaryConditions.Builder
java.lang.Object
neqsim.process.safety.BoundaryConditions.Builder
- Enclosing class:
BoundaryConditions
Builder for BoundaryConditions.
- Version:
- 1.0
- Author:
- ESOL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate doubleprivate booleanprivate charprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionambientTemperature(double temperature) Sets ambient temperature [K].ambientTemperature(double temperature, String unit) Sets ambient temperature with unit.atmosphericPressure(double pressure) Sets atmospheric pressure [Pa].build()Builds the immutable BoundaryConditions.isOffshore(boolean offshore) Sets whether location is offshore.pasquillStabilityClass(char stabilityClass) Sets Pasquill atmospheric stability class (A-F).relativeHumidity(double humidity) Sets relative humidity [fraction 0-1].seaWaterTemperature(double temperature) Sets sea water temperature [K].solarRadiation(double radiation) Sets solar radiation [W/m²].surfaceRoughness(double roughness) Sets surface roughness length [m].windDirection(double direction) Sets wind direction [degrees from North].windSpeed(double speed) Sets wind speed [m/s].
-
Field Details
-
ambientTemperature
private double ambientTemperature -
windSpeed
private double windSpeed -
windDirection
private double windDirection -
relativeHumidity
private double relativeHumidity -
atmosphericPressure
private double atmosphericPressure -
solarRadiation
private double solarRadiation -
pasquillStabilityClass
private char pasquillStabilityClass -
surfaceRoughness
private double surfaceRoughness -
seaWaterTemperature
private double seaWaterTemperature -
isOffshore
private boolean isOffshore
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ambientTemperature
Sets ambient temperature [K].- Parameters:
temperature- ambient temperature in Kelvin- Returns:
- this builder
-
ambientTemperature
Sets ambient temperature with unit.- Parameters:
temperature- ambient temperature valueunit- temperature unit ("K", "C", "F")- Returns:
- this builder
-
windSpeed
Sets wind speed [m/s].- Parameters:
speed- wind speed- Returns:
- this builder
-
windDirection
Sets wind direction [degrees from North].- Parameters:
direction- wind direction (0-360)- Returns:
- this builder
-
relativeHumidity
Sets relative humidity [fraction 0-1].- Parameters:
humidity- relative humidity- Returns:
- this builder
-
atmosphericPressure
Sets atmospheric pressure [Pa].- Parameters:
pressure- atmospheric pressure- Returns:
- this builder
-
solarRadiation
Sets solar radiation [W/m²].- Parameters:
radiation- solar radiation- Returns:
- this builder
-
pasquillStabilityClass
Sets Pasquill atmospheric stability class (A-F).- Parameters:
stabilityClass- stability class character- Returns:
- this builder
-
surfaceRoughness
Sets surface roughness length [m].Typical values:
- 0.0002 - Open sea
- 0.03 - Open flat terrain
- 0.1 - Agricultural land
- 0.5 - Suburban
- 1.0 - Urban/Industrial
- Parameters:
roughness- surface roughness- Returns:
- this builder
-
seaWaterTemperature
Sets sea water temperature [K].- Parameters:
temperature- sea water temperature- Returns:
- this builder
-
isOffshore
Sets whether location is offshore.- Parameters:
offshore- true if offshore- Returns:
- this builder
-
build
Builds the immutable BoundaryConditions.- Returns:
- new BoundaryConditions instance
-