Class DexpiProcessUnit
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.processmodel.dexpi.DexpiProcessUnit
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, ProcessElementInterface, SimulationInterface, NamedInterface
Lightweight placeholder for equipment imported from a DEXPI XML file.
This class records the original DEXPI class together with the mapped EquipmentEnum
category and contextual information like line numbers or fluid codes.
- Version:
- 1.0
- Author:
- NeqSim
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate Stringprivate final Stringprivate final Stringprivate final EquipmentEnumprivate static final longFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionDexpiProcessUnit(String name, String dexpiClass, EquipmentEnum mappedEquipment, String lineNumber, String fluidCode) Creates a new DEXPI process unit. -
Method Summary
Modifier and TypeMethodDescriptionGets the original DEXPI component class.Gets the DEXPI element ID (e.g.Gets the fluid code reference.Gets the line number reference.Gets the mapped NeqSim equipment type.getSizingAttribute(String name) Returns the value of a sizing attribute, ornullif not set.doublegetSizingAttributeAsDouble(String name, double defaultValue) Returns the value of a sizing attribute as a double, or the given default if not set or not parseable.Returns an unmodifiable view of all sizing attributes.voidrun()voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidsetDexpiId(String dexpiId) Sets the DEXPI element ID.voidsetSizingAttribute(String name, String value) Stores a sizing attribute extracted from the DEXPI XML GenericAttributes.Methods inherited from class ProcessEquipmentBaseClass
addCapacityConstraint, addController, copy, displayResult, equals, getAvailableMargin, getAvailableMarginPercent, getBottleneckConstraint, getCapacityConstraints, getConditionAnalysisMessage, getConstraintEvaluationReport, getController, getController, getControllers, getEffectiveCapacityFactor, getEnergyStream, getEntropyProduction, getExergyChange, getFailureMode, getMassBalance, getMassBalance, getMaxUtilization, getMaxUtilizationPercent, getMechanicalDesign, getMinimumFlow, getPressure, getPressure, getProperty, getReferenceDesignation, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, getUtilizationSummary, hashCode, initElectricalDesign, initializeDefaultConstraints, initInstrumentDesign, initMechanicalDesign, isActive, isActive, isCapacityAnalysisEnabled, isCapacityExceeded, isFailed, isHardLimitExceeded, isNearCapacityLimit, isSetEnergyStream, reportResults, restoreFromFailure, run_step, runConditionAnalysis, setCapacityAnalysisEnabled, setController, setEnergyStream, setEnergyStream, setFailureMode, setFlowValveController, setMinimumFlow, setPressure, setReferenceDesignation, setRegulatorOutSignal, setSpecification, setTemperature, simulateDegradedOperation, simulateTrip, solved, toJson, toJsonMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagNumber, setName, setTagNumberMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedInterface
getName, getTagName, getTagNumber, setName, setTagName, setTagNumberMethods inherited from interface ProcessEquipmentInterface
getCapacityDuty, getCapacityMax, getElectricalDesign, getEquipmentState, getExergyChange, getExergyDestruction, getExergyDestruction, getFluid, getInletStreams, getInstrumentDesign, getOperatingEnvelopeViolation, getOutletFlowRate, getOutletPressure, getOutletStreams, getOutletTemperature, getReferenceDesignationString, getRestCapacity, getSimulationValidationErrors, isSimulationValid, isWithinOperatingEnvelope, needRecalculation, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
dexpiClass
-
mappedEquipment
-
lineNumber
-
fluidCode
-
sizingAttributes
-
dexpiId
-
-
Constructor Details
-
DexpiProcessUnit
public DexpiProcessUnit(String name, String dexpiClass, EquipmentEnum mappedEquipment, String lineNumber, String fluidCode) Creates a new DEXPI process unit.- Parameters:
name- the equipment tag namedexpiClass- the original DEXPI component classmappedEquipment- the mapped NeqSim equipment typelineNumber- the line number reference (may be null)fluidCode- the fluid code reference (may be null)
-
-
Method Details
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
run
public void run() -
getDexpiClass
Gets the original DEXPI component class.- Returns:
- the DEXPI class name
-
getMappedEquipment
Gets the mapped NeqSim equipment type.- Returns:
- the equipment enum
-
getLineNumber
Gets the line number reference.- Returns:
- the line number, or null if not set
-
getFluidCode
Gets the fluid code reference.- Returns:
- the fluid code, or null if not set
-
getDexpiId
Gets the DEXPI element ID (e.g. "CentrifugalPump-1").- Returns:
- the DEXPI ID, or null if not set
-
setDexpiId
Sets the DEXPI element ID.- Parameters:
dexpiId- the DEXPI element ID
-
setSizingAttribute
Stores a sizing attribute extracted from the DEXPI XML GenericAttributes.- Parameters:
name- the attribute name (e.g.DexpiMetadata.INSIDE_DIAMETER)value- the attribute value as a string
-
getSizingAttribute
-
getSizingAttributeAsDouble
Returns the value of a sizing attribute as a double, or the given default if not set or not parseable.- Parameters:
name- the attribute namedefaultValue- the default value- Returns:
- the parsed double or the default
-
getSizingAttributes
-