Class Characterise
java.lang.Object
neqsim.thermo.characterization.Characterise
- All Implemented Interfaces:
Serializable, Cloneable
Characterise class.
- Version:
- $Id: $Id
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static org.apache.logging.log4j.LoggerLogger object for class.private LumpingModelInterfaceprotected LumpingModelprivate PlusFractionModelInterfaceprivate PlusFractionModelprivate static final longSerialization version UID.(package private) SystemInterface(package private) TBPCharacterizeprivate TBPModelInterfaceprotected Stringprotected TBPfractionModel -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for Characterise.Characterise(SystemInterface system) Constructor for Characterise. -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacterisePlusFraction.characterizeToReference(SystemInterface referenceFluid) Characterize this fluid to match the pseudo-component structure of a reference fluid.characterizeToReference(SystemInterface referenceFluid, CharacterizationOptions options) Characterize this fluid to match the pseudo-component structure of a reference fluid with options.clone()Getter for the fieldlumpingModel.Getter for the fieldplusFractionModel.getTBPModel.setAutoEstimateGammaAlpha(boolean autoEstimate) Enable automatic estimation of the gamma shape parameter (alpha) based on fluid properties.setGammaDensityModel(String densityModel) Set the density model for Whitson Gamma Model characterization.setGammaMinMW(double eta) Set the minimum molecular weight (eta) for Whitson Gamma Model.setGammaShapeParameter(double alpha) Set the gamma distribution shape parameter (alpha) for Whitson Gamma Model.voidsetLumpingModel(String name) Setter for the fieldlumpingModel.voidsetPlusFractionModel(String name) Setter for the fieldplusFractionModel.voidsetTBPModel(String name) setTBPModel.voidsetThermoSystem(SystemInterface system) setThermoSystem.transferBipsFrom(SystemInterface referenceFluid) Transfer binary interaction parameters from a reference fluid to this fluid.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
system
SystemInterface system -
TBPCharacterise
TBPCharacterize TBPCharacterise -
TBPfractionModel
-
plusFractionModelSelector
-
plusFractionModel
-
lumpingModel
-
TBPFractionModelName
-
lumpingModelSelector
-
TBPfractionModelSelector
-
-
Constructor Details
-
Characterise
public Characterise()Constructor for Characterise.
-
Characterise
Constructor for Characterise.
- Parameters:
system- aSystemInterfaceobject
-
-
Method Details
-
setThermoSystem
setThermoSystem.
- Parameters:
system- aSystemInterfaceobject
-
clone
-
getTBPModel
-
setTBPModel
-
setLumpingModel
-
setPlusFractionModel
-
getPlusFractionModel
Getter for the field
plusFractionModel.- Returns:
- a
PlusFractionModelInterfaceobject
-
setGammaShapeParameter
Set the gamma distribution shape parameter (alpha) for Whitson Gamma Model. Only applies when using "Whitson Gamma Model" as the plus fraction model.Typical values:
- Gas condensates: 0.5 - 1.0
- Black oils: 1.0 - 2.0
- Heavy oils: 2.0 - 4.0
- Parameters:
alpha- shape parameter value- Returns:
- this Characterise instance for method chaining
-
setGammaMinMW
Set the minimum molecular weight (eta) for Whitson Gamma Model. Only applies when using "Whitson Gamma Model" as the plus fraction model.- Parameters:
eta- minimum molecular weight in g/mol (typically 84-90 for C7+)- Returns:
- this Characterise instance for method chaining
-
setAutoEstimateGammaAlpha
Enable automatic estimation of the gamma shape parameter (alpha) based on fluid properties. Only applies when using "Whitson Gamma Model" as the plus fraction model.- Parameters:
autoEstimate- true to enable auto-estimation- Returns:
- this Characterise instance for method chaining
-
setGammaDensityModel
Set the density model for Whitson Gamma Model characterization. Only applies when using "Whitson Gamma Model" as the plus fraction model.- Parameters:
densityModel- "UOP" for Watson K-factor (default) or "Soreide" for Søreide (1989) correlation- Returns:
- this Characterise instance for method chaining
-
getLumpingModel
Getter for the field
lumpingModel.- Returns:
- a
LumpingModelInterfaceobject
-
characterisePlusFraction
public void characterisePlusFraction()characterisePlusFraction.
-
characterizeToReference
Characterize this fluid to match the pseudo-component structure of a reference fluid.This method redistributes this fluid's pseudo-components to match the reference fluid's pseudo-component boundaries, enabling consistent compositional modeling across multiple fluid samples.
Example:
SystemInterface referenceFluid = ...; // Fluid with "master" PC structure SystemInterface myFluid = ...; // Fluid to be matched SystemInterface matched = myFluid.getCharacterization() .characterizeToReference(referenceFluid);- Parameters:
referenceFluid- the fluid defining the target pseudo-component structure- Returns:
- a new fluid with pseudo-components matching the reference
-
characterizeToReference
public SystemInterface characterizeToReference(SystemInterface referenceFluid, CharacterizationOptions options) Characterize this fluid to match the pseudo-component structure of a reference fluid with options.This method allows specifying options for BIP transfer, normalization, and validation.
Example:
CharacterizationOptions options = CharacterizationOptions.builder() .transferBinaryInteractionParameters(true).normalizeComposition(true).build(); SystemInterface matched = myFluid.getCharacterization().characterizeToReference(referenceFluid, options);- Parameters:
referenceFluid- the fluid defining the target pseudo-component structureoptions- characterization options- Returns:
- a new fluid with pseudo-components matching the reference
-
transferBipsFrom
Transfer binary interaction parameters from a reference fluid to this fluid.This copies BIPs between components that exist in both fluids. For pseudo-components, it matches by position.
- Parameters:
referenceFluid- the fluid containing BIPs to copy- Returns:
- this Characterise instance for method chaining
-