Class CharacterizationOptions.Builder
java.lang.Object
neqsim.thermo.characterization.CharacterizationOptions.Builder
- Enclosing class:
CharacterizationOptions
Builder for CharacterizationOptions.
- Author:
- ESOL
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate booleanprivate booleanprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the CharacterizationOptions instance.compositionTolerance(double tolerance) Set the tolerance for composition operations.generateValidationReport(boolean generate) Set whether to generate a validation report.Set the naming scheme for pseudo-components.normalizeComposition(boolean normalize) Set whether to normalize composition after characterization.transferBinaryInteractionParameters(boolean transfer) Set whether to transfer binary interaction parameters from the reference fluid.
-
Field Details
-
transferBinaryInteractionParameters
private boolean transferBinaryInteractionParameters -
normalizeComposition
private boolean normalizeComposition -
namingScheme
-
generateValidationReport
private boolean generateValidationReport -
compositionTolerance
private double compositionTolerance
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
transferBinaryInteractionParameters
Set whether to transfer binary interaction parameters from the reference fluid.When enabled, BIPs between pseudo-components and other components in the reference fluid will be applied to the corresponding components in the characterized fluid. This is essential for maintaining consistent phase behavior across multiple fluids in compositional simulation.
- Parameters:
transfer- true to enable BIP transfer- Returns:
- this builder
-
normalizeComposition
Set whether to normalize composition after characterization.When enabled, mole fractions will be normalized to sum to exactly 1.0 after characterization.
- Parameters:
normalize- true to enable normalization- Returns:
- this builder
-
namingScheme
Set the naming scheme for pseudo-components.- Parameters:
scheme- the naming scheme to use- Returns:
- this builder
-
generateValidationReport
Set whether to generate a validation report.When enabled, a validation report comparing key properties before and after characterization will be generated and logged.
- Parameters:
generate- true to generate validation report- Returns:
- this builder
-
compositionTolerance
Set the tolerance for composition operations.- Parameters:
tolerance- the tolerance value- Returns:
- this builder
-
build
Build the CharacterizationOptions instance.- Returns:
- the configured options
-