Class SlugTracker.SlugUnit
java.lang.Object
neqsim.process.equipment.pipeline.twophasepipe.SlugTracker.SlugUnit
- All Implemented Interfaces:
Serializable
- Enclosing class:
SlugTracker
Represents a single slug unit (liquid slug + Taylor bubble).
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleTime slug has existed (s).doubleLiquid holdup in slug body.int[]Array of section indices from which liquid mass was borrowed.doubleLiquid mass borrowed from Eulerian cells (kg).doubleLength of Taylor bubble / film region (m).doubleLiquid holdup in film region.doublePosition of slug front (m from inlet).doubleSlug front velocity (m/s).intUnique slug identifier.booleanIs this slug decaying.booleanIs this slug actively growing.booleanIs this a terrain-induced slug.doubleLiquid volume in slug (m³).doubleLocal pipe inclination at slug front.private static final longdoubleLength of liquid slug body (m).doublePosition of slug tail (m from inlet).doubleSlug tail velocity (m/s). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
id
public int idUnique slug identifier. -
frontPosition
public double frontPositionPosition of slug front (m from inlet). -
tailPosition
public double tailPositionPosition of slug tail (m from inlet). -
slugBodyLength
public double slugBodyLengthLength of liquid slug body (m). -
bubbleLength
public double bubbleLengthLength of Taylor bubble / film region (m). -
frontVelocity
public double frontVelocitySlug front velocity (m/s). -
tailVelocity
public double tailVelocitySlug tail velocity (m/s). -
bodyHoldup
public double bodyHoldupLiquid holdup in slug body. -
filmHoldup
public double filmHoldupLiquid holdup in film region. -
liquidVolume
public double liquidVolumeLiquid volume in slug (m³). -
isGrowing
public boolean isGrowingIs this slug actively growing. -
isDecaying
public boolean isDecayingIs this slug decaying. -
isTerrainInduced
public boolean isTerrainInducedIs this a terrain-induced slug. -
age
public double ageTime slug has existed (s). -
localInclination
public double localInclinationLocal pipe inclination at slug front. -
borrowedLiquidMass
public double borrowedLiquidMassLiquid mass borrowed from Eulerian cells (kg). This tracks the mass that was "collected" from the stratified film region to form this slug, enabling proper mass conservation reconciliation between Lagrangian and Eulerian solvers. -
borrowedFromSections
public int[] borrowedFromSectionsArray of section indices from which liquid mass was borrowed. Used to return mass to appropriate cells when slug exits or dissipates.
-
-
Constructor Details
-
SlugUnit
public SlugUnit()
-
-
Method Details
-
getTotalLength
public double getTotalLength()Get total slug unit length (body + bubble).- Returns:
- Total length (m)
-
toString
-