Class MoleFractionControllerUtil
java.lang.Object
neqsim.util.NamedBaseClass
neqsim.process.SimulationBaseClass
neqsim.process.equipment.ProcessEquipmentBaseClass
neqsim.process.equipment.TwoPortEquipment
neqsim.process.equipment.util.MoleFractionControllerUtil
- All Implemented Interfaces:
Serializable, Runnable, ProcessEquipmentInterface, TwoPortInterface, SimulationInterface, NamedInterface
MoleFractionControllerUtil class.
- Version:
- $Id: $Id
- Author:
- esol
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String(package private) double(package private) boolean(package private) double(package private) doubleprivate static final longSerialization version UID.(package private) ThermodynamicOperations(package private) SystemInterfaceFields inherited from class TwoPortEquipment
inStream, outStreamFields inherited from class ProcessEquipmentBaseClass
conditionAnalysisMessage, energyStream, hasController, isSolved, properties, reportFields inherited from class SimulationBaseClass
calcIdentifier, calculateSteadyState, timeFields inherited from class NamedBaseClass
name -
Constructor Summary
ConstructorsConstructorDescriptionMoleFractionControllerUtil(StreamInterface inletStream) Constructor for MoleFractionControllerUtil. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayResult.doubleGetter for the fieldmolesChange.voidIn this method all thermodynamic and unit operations will be calculated in a steady state calculation.voidsetComponentRate(String compName, double rate, String unit) setComponentRate.voidsetInletStream(StreamInterface inletStream) Set inlet Stream of twoport.voidsetMoleFraction(String compName, double moleFrac) setMoleFraction.voidsetRelativeMoleFractionReduction(String compName, double moleFracRatio) setRelativeMoleFractionReduction.Methods inherited from class TwoPortEquipment
getInletPressure, getInletStream, getInletTemperature, getMassBalance, getOutletPressure, getOutletStream, getOutletTemperature, setInletPressure, setInletTemperature, setOutletPressure, setOutletStream, setOutletTemperature, toJson, toJson, validateSetupMethods inherited from class ProcessEquipmentBaseClass
copy, 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:
-
thermoSystem
SystemInterface thermoSystem -
thermoOps
ThermodynamicOperations thermoOps -
compName
String compName -
moleFrac
double moleFrac -
molesChange
double molesChange -
moleFractionReductionRatio
double moleFractionReductionRatio -
moleFractionReduction
boolean moleFractionReduction
-
-
Constructor Details
-
MoleFractionControllerUtil
Constructor for MoleFractionControllerUtil.
- Parameters:
inletStream- aStreamInterfaceobject
-
-
Method Details
-
setInletStream
Set inlet Stream of twoport.Setter for the field
inletStream.- Specified by:
setInletStreamin interfaceTwoPortInterface- Overrides:
setInletStreamin classTwoPortEquipment- Parameters:
inletStream- value to set
-
getMolesChange
public double getMolesChange()Getter for the field
molesChange.- Returns:
- a double
-
setMoleFraction
-
setComponentRate
-
setRelativeMoleFractionReduction
-
run
In this method all thermodynamic and unit operations will be calculated in a steady state calculation.
- Parameters:
id- UUID
-
displayResult
public void displayResult()displayResult.
- Specified by:
displayResultin interfaceProcessEquipmentInterface- Overrides:
displayResultin classProcessEquipmentBaseClass
-