Class FlowRateAdjuster
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.TwoPortEquipment
neqsim.process.equipment.util.FlowRateAdjuster
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface
Adjuster class.
- Version:
- $Id: $Id
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean(package private) ProcessEquipmentInterface(package private) String(package private) Stringdoubledoubledoubleprivate double(package private) double(package private) int(package private) static org.apache.logging.log4j.LoggerLogger object for class.(package private) double(package private) double(package private) Stringprivate double(package private) doubleprivate static final longSerialization version UID.(package private) String(package private) ProcessEquipmentInterface(package private) String(package private) String(package private) double(package private) Stringprivate doubleprivate String(package private) double(package private) StreamFields inherited from class TwoPortEquipment
inStream, outStreamFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, time -
Constructor Summary
ConstructorsConstructorDescriptionFlowRateAdjuster(String name) Constructor for FlowRateAdjuster.FlowRateAdjuster(String name, StreamInterface inStream) Constructor for FlowRateAdjuster. -
Method Summary
Modifier and TypeMethodDescriptionvoidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidsetAdjustedFlowRates(Double desiredGasFlow, Double desiredOilFlow, Double desiredWaterFlow, String unit) setAdjustedVariable.voidsetAdjustedFlowRates(Double desiredGasFlow, Double desiredOilFlow, String unit) setAdjustedVariable.Methods inherited from class TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getMassBalance, getOutletPressure, getOutletStream, getOutletTemperature, setInletPressure, setInletStream, setInletTemperature, setOutletPressure, setOutletStream, setOutletTemperature, toJson, toJson, validateSetupMethods inherited from class ProcessEquipmentBaseClass
copy, displayResult, equals, getConditionAnalysisMessage, getController, getEnergyStream, getEntropyProduction, getExergyChange, getMassBalance, getMechanicalDesign, getMinimumFlow, getPressure, getPressure, getProperty, getReport_json, getResultTable, getSpecification, getTemperature, getTemperature, getThermoSystem, hashCode, initMechanicalDesign, isActive, isActive, isSetEnergyStream, reportResults, run_step, runConditionAnalysis, setController, setEnergyStream, setEnergyStream, setFlowValveController, setMinimumFlow, setPressure, setRegulatorOutSignal, setSpecification, setTemperature, solvedMethods inherited from class SimulationBaseClass
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from class NamedBaseClass
getName, getTagName, setName, setTagNameMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NamedInterface
getName, getTagName, setName, setTagNameMethods inherited from interface ProcessEquipmentInterface
getCapacityDuty, getCapacityMax, getExergyChange, getFluid, getRestCapacity, needRecalculationMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTimeMethods inherited from interface TwoPortInterface
getInStream, getOutStream
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
name
String name -
desiredGasFlow
public double desiredGasFlow -
desiredOilFlow
public double desiredOilFlow -
desiredWaterFlow
public double desiredWaterFlow -
unit
-
adjustedEquipment
ProcessEquipmentInterface adjustedEquipment -
targetEquipment
ProcessEquipmentInterface targetEquipment -
adjustedVariable
String adjustedVariable -
adjustedVariableUnit
String adjustedVariableUnit -
maxAdjustedValue
double maxAdjustedValue -
minAdjustedValue
double minAdjustedValue -
targetVariable
String targetVariable -
targetPhase
String targetPhase -
targetComponent
String targetComponent -
targetValue
double targetValue -
targetUnit
String targetUnit -
tolerance
private double tolerance -
inputValue
double inputValue -
oldInputValue
double oldInputValue -
error
private double error -
oldError
private double oldError -
iterations
int iterations -
activateWhenLess
private boolean activateWhenLess -
waterStream
Stream waterStream -
waterDensity
double waterDensity
-
-
Constructor Details
-
FlowRateAdjuster
-
FlowRateAdjuster
Constructor for FlowRateAdjuster.
- Parameters:
name- aStringobjectinStream- aStreamInterfaceobject
-
-
Method Details
-
setAdjustedFlowRates
-
setAdjustedFlowRates
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-