Class OilLevelTransmitter
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.measurementdevice.MeasurementDeviceBaseClass
neqsim.process.measurementdevice.OilLevelTransmitter
- All Implemented Interfaces:
Serializable, MeasurementDeviceInterface, NamedInterface
OilLevelTransmitter class for measuring oil level in three-phase separators.
This transmitter measures the total liquid level (water + oil) from the bottom of the separator. In a three-phase separator, the oil phase floats on top of the water phase. The oil level represents the interface between the oil and gas phases.
To get the oil layer thickness, subtract the water level from the oil level: oilThickness = oilLevel - waterLevel
- Version:
- $Id: $Id
- Author:
- ESOL
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ThreePhaseSeparatorprivate static final longSerialization version UID.Fields inherited from class MeasurementDeviceBaseClass
unitFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionOilLevelTransmitter(String name, ThreePhaseSeparator separator) Constructor for OilLevelTransmitter.OilLevelTransmitter(ThreePhaseSeparator separator) Constructor for OilLevelTransmitter. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayResult.doublegetMeasuredValue(String unit) Get Measured value in specified unit.doubleGet the thickness of the oil layer.Methods inherited from class MeasurementDeviceBaseClass
acknowledgeAlarm, applySignalModifiers, doConditionAnalysis, evaluateAlarm, getAlarmConfig, getAlarmState, getConditionAnalysisMaxDeviation, getConditionAnalysisMessage, getDelaySteps, getMaximumValue, getMeasuredPercentValue, getMinimumValue, getNoiseStdDev, getOnlineMeasurementValue, getOnlineSignal, getUnit, isLogging, isOnlineSignal, runConditionAnalysis, setAlarmConfig, setConditionAnalysis, setConditionAnalysisMaxDeviation, setDelaySteps, setIsOnlineSignal, setLogging, setMaximumValue, setMinimumValue, setNoiseStdDev, setOnlineMeasurementValue, setOnlineSignal, setQualityCheckMessage, setRandomSeed, setUnitMethods inherited from class NamedBaseClass
getName, getTagName, setName, setTagNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MeasurementDeviceInterface
equals, getMeasuredValue, getOnlineValue, hashCodeMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagName
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
separator
-
-
Constructor Details
-
OilLevelTransmitter
Constructor for OilLevelTransmitter.
- Parameters:
separator- aThreePhaseSeparatorobject
-
OilLevelTransmitter
Constructor for OilLevelTransmitter.
- Parameters:
name- Name of OilLevelTransmitterseparator- aThreePhaseSeparatorobject
-
-
Method Details
-
displayResult
public void displayResult()displayResult.
- Specified by:
displayResultin interfaceMeasurementDeviceInterface- Overrides:
displayResultin classMeasurementDeviceBaseClass
-
getMeasuredValue
Get Measured value in specified unit.
- Specified by:
getMeasuredValuein interfaceMeasurementDeviceInterface- Overrides:
getMeasuredValuein classMeasurementDeviceBaseClass- Parameters:
unit- aStringobject- Returns:
- a double
-
getOilThickness
public double getOilThickness()Get the thickness of the oil layer.
- Returns:
- oil layer thickness in meters (oilLevel - waterLevel)
-