Class LumpingModel.StandardLumpingModel
java.lang.Object
neqsim.thermo.characterization.LumpingModel.StandardLumpingModel
- All Implemented Interfaces:
Serializable, Cloneable, LumpingModelInterface
- Direct Known Subclasses:
LumpingModel.NoLumpingModel, LumpingModel.PVTLumpingModel
- Enclosing class:
LumpingModel
public class LumpingModel.StandardLumpingModel
extends Object
implements LumpingModelInterface, Cloneable, Serializable
StandardLumpingModel distributes the pseudo components into equal weight fractions starting
with the first TBP fraction in the fluid.
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerialization version UID. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateLumpedComposition.int[]Get the custom carbon number boundaries if set.doublegetFractionOfHeavyEnd(int i) getFractionOfHeavyEnd.getLumpedComponentName(int i) getLumpedComponentName.String[]getLumpedComponentNames.getName()getName.intgetNumberOfLumpedComponents.intgetNumberOfPseudoComponents.booleanCheck if custom boundaries are being used.voidsetCustomBoundaries(int[] boundaries) Set custom carbon number boundaries for lumping.voidsetNumberOfLumpedComponents(int lumpedNumb) setNumberOfLumpedComponents.voidsetNumberOfPseudoComponents(int lumpedNumb) setNumberOfPseudoComponents.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
-
Constructor Details
-
StandardLumpingModel
public StandardLumpingModel()
-
-
Method Details
-
setNumberOfLumpedComponents
public void setNumberOfLumpedComponents(int lumpedNumb) setNumberOfLumpedComponents.
- Specified by:
setNumberOfLumpedComponentsin interfaceLumpingModelInterface- Parameters:
lumpedNumb- a int
-
getNumberOfLumpedComponents
public int getNumberOfLumpedComponents()getNumberOfLumpedComponents.
- Specified by:
getNumberOfLumpedComponentsin interfaceLumpingModelInterface- Returns:
- a int
-
setNumberOfPseudoComponents
public void setNumberOfPseudoComponents(int lumpedNumb) setNumberOfPseudoComponents.
- Specified by:
setNumberOfPseudoComponentsin interfaceLumpingModelInterface- Parameters:
lumpedNumb- a int
-
getNumberOfPseudoComponents
public int getNumberOfPseudoComponents()getNumberOfPseudoComponents.
- Specified by:
getNumberOfPseudoComponentsin interfaceLumpingModelInterface- Returns:
- a int
-
getName
getName.
- Specified by:
getNamein interfaceLumpingModelInterface- Returns:
- a
Stringobject
-
getLumpedComponentName
getLumpedComponentName.
- Specified by:
getLumpedComponentNamein interfaceLumpingModelInterface- Parameters:
i- a int- Returns:
- a
Stringobject
-
getLumpedComponentNames
getLumpedComponentNames.
- Specified by:
getLumpedComponentNamesin interfaceLumpingModelInterface- Returns:
- an array of
Stringobjects
-
setCustomBoundaries
public void setCustomBoundaries(int[] boundaries) Set custom carbon number boundaries for lumping.This allows matching specific PVT lab report groupings. For example, boundaries [6, 10, 15, 20] would create groups: C6-C9, C10-C14, C15-C19, C20+
- Specified by:
setCustomBoundariesin interfaceLumpingModelInterface- Parameters:
boundaries- array of starting carbon numbers for each group
-
getCustomBoundaries
public int[] getCustomBoundaries()Get the custom carbon number boundaries if set.- Specified by:
getCustomBoundariesin interfaceLumpingModelInterface- Returns:
- array of carbon number boundaries, or null if using automatic calculation
-
hasCustomBoundaries
public boolean hasCustomBoundaries()Check if custom boundaries are being used.- Specified by:
hasCustomBoundariesin interfaceLumpingModelInterface- Returns:
- true if custom boundaries were set
-
generateLumpedComposition
generateLumpedComposition.
- Specified by:
generateLumpedCompositionin interfaceLumpingModelInterface- Parameters:
charac- aCharacteriseobject
-
getFractionOfHeavyEnd
public double getFractionOfHeavyEnd(int i) getFractionOfHeavyEnd.
- Specified by:
getFractionOfHeavyEndin interfaceLumpingModelInterface- Parameters:
i- a int- Returns:
- a double
-