Class Calculator
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.util.Calculator
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, SimulationInterface, NamedInterface
Calculator class.
- Version:
- $Id: $Id
- Author:
- asmund
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ArrayList<ProcessEquipmentInterface> (package private) static org.apache.logging.log4j.LoggerLogger object for class.private ProcessEquipmentInterfaceprivate static final longSerialization version UID.private Runnable(package private) StringFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInputVariable.voidaddInputVariable(ProcessEquipmentInterface... units) addInputVariable.Getter for the fieldinputVariable.Getter for the fieldoutputVariable.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidrunAntiSurgeCalc(UUID id) runAntiSurgeCalc.voidsetCalculationMethod(Runnable calculationMethod) Setter for the fieldcalculationMethod.voidsetCalculationMethod(BiConsumer<ArrayList<ProcessEquipmentInterface>, ProcessEquipmentInterface> calculationMethod) Setter for the fieldcalculationMethod.voidsetOutputVariable(ProcessEquipmentInterface outputVariable) Setter for the fieldoutputVariable.Methods inherited from class ProcessEquipmentBaseClass
copy, displayResult, equals, getConditionAnalysisMessage, getController, getEnergyStream, getEntropyProduction, getExergyChange, getMassBalance, 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, solved, toJson, toJsonMethods 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, needRecalculation, validateSetupMethods inherited from interface SimulationInterface
getCalculateSteadyState, getCalculationIdentifier, getTime, increaseTime, isRunInSteps, run, run_step, runTransient, runTransient, setCalculateSteadyState, setCalculationIdentifier, setRunInSteps, setTime
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
logger
static org.apache.logging.log4j.Logger loggerLogger object for class. -
inputVariable
ArrayList<ProcessEquipmentInterface> inputVariable -
outputVariable
-
calculationMethod
private BiConsumer<ArrayList<ProcessEquipmentInterface>, ProcessEquipmentInterface> calculationMethod -
simpleCalculationMethod
-
type
String type
-
-
Constructor Details
-
Calculator
-
-
Method Details
-
addInputVariable
addInputVariable.
- Parameters:
unit- aProcessEquipmentInterfaceobject
-
addInputVariable
addInputVariable.
- Parameters:
units- aProcessEquipmentInterfaceobject
-
getInputVariable
Getter for the field
inputVariable.- Returns:
- a
ArrayListobject
-
getOutputVariable
Getter for the field
outputVariable.- Returns:
- a
ProcessEquipmentInterfaceobject
-
runAntiSurgeCalc
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
setOutputVariable
Setter for the field
outputVariable.- Parameters:
outputVariable- aProcessEquipmentInterfaceobject
-
setCalculationMethod
public void setCalculationMethod(BiConsumer<ArrayList<ProcessEquipmentInterface>, ProcessEquipmentInterface> calculationMethod) Setter for the field
calculationMethod.- Parameters:
calculationMethod- aBiConsumerobject
-
setCalculationMethod
-