Class LumpingResult.Builder
java.lang.Object
neqsim.thermo.characterization.LumpingResult.Builder
- Enclosing class:
LumpingResult
Builder for LumpingResult.
- Version:
- 1.0
- Author:
- ESOL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private doubleprivate doubleprivate intprivate Stringprivate doubleprivate doubleprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddWarning(String warning) Add a warning message.build()Build the LumpingResult.carbonNumberBoundaries(int[] boundaries) Set the carbon number boundaries.lumpedAverageDensity(double density) Set the lumped average density.lumpedAverageMW(double mw) Set the lumped average MW.lumpedComponentCount(int count) Set the lumped component count.lumpedComponentNames(List<String> names) Set the lumped component names.Set the model name.originalAverageDensity(double density) Set the original average density.originalAverageMW(double mw) Set the original average MW.originalComponentCount(int count) Set the original component count.
-
Field Details
-
modelName
-
originalComponentCount
private int originalComponentCount -
lumpedComponentCount
private int lumpedComponentCount -
originalAverageMW
private double originalAverageMW -
lumpedAverageMW
private double lumpedAverageMW -
originalAverageDensity
private double originalAverageDensity -
lumpedAverageDensity
private double lumpedAverageDensity -
warnings
-
lumpedComponentNames
-
carbonNumberBoundaries
private int[] carbonNumberBoundaries
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelName
Set the model name.- Parameters:
modelName- the lumping model name- Returns:
- this builder
-
originalComponentCount
Set the original component count.- Parameters:
count- number of components before lumping- Returns:
- this builder
-
lumpedComponentCount
Set the lumped component count.- Parameters:
count- number of components after lumping- Returns:
- this builder
-
originalAverageMW
Set the original average MW.- Parameters:
mw- original mass-weighted average MW- Returns:
- this builder
-
lumpedAverageMW
Set the lumped average MW.- Parameters:
mw- lumped mass-weighted average MW- Returns:
- this builder
-
originalAverageDensity
Set the original average density.- Parameters:
density- original mass-weighted average density- Returns:
- this builder
-
lumpedAverageDensity
Set the lumped average density.- Parameters:
density- lumped mass-weighted average density- Returns:
- this builder
-
addWarning
Add a warning message.- Parameters:
warning- warning message- Returns:
- this builder
-
lumpedComponentNames
Set the lumped component names.- Parameters:
names- list of component names- Returns:
- this builder
-
carbonNumberBoundaries
Set the carbon number boundaries.- Parameters:
boundaries- array of carbon number boundaries- Returns:
- this builder
-
build
-