Reactor_PFR Class

Represents a Plug Flow Reactor (PFR) that integrates kinetic, heterogeneous catalytic, and conversion reactions along the reactor length using an ODE solver. Temperature, pressure, and composition profiles are computed section by section.

Definition

Namespace: DWSIM.UnitOperations.Reactors
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
[SerializableAttribute]
public class Reactor_PFR : Reactor
Inheritance
Object    BaseClass    UnitOpBaseClass    Reactor    Reactor_PFR

Constructors

Reactor_PFRInitializes a new default instance of the Reactor_PFR class.
Reactor_PFR(String, String) Initializes a new instance of the Reactor_PFR class with a name and description.

Properties

AccumulationStreamsGets or sets the list of accumulation streams used for dynamic-mode mass balance tracking.
AdjustVarType If an Adjust object is attached to this object, returns a variable describing how this object is used by it (manipulated, controlled or reference).
(Inherited from BaseClass)
Annotation
(Inherited from BaseClass)
AttachedAdjustId If an Adjust object is attached to this object, returns its ID.
(Inherited from BaseClass)
AttachedInfoCarrierId
(Inherited from BaseClass)
AttachedSpecId If an Specification object is attached to this object, returns its ID.
(Inherited from BaseClass)
AttachedUtilities
(Inherited from BaseClass)
Bottom
(Inherited from BaseClass)
Calculated
(Inherited from BaseClass)
CanUsePreviousResults
(Inherited from BaseClass)
CatalystLoadingGets or sets the catalyst mass loading (kg/m³ of reactor volume).
CatalystParticleDiameterGets or sets the catalyst particle equivalent diameter (m).
CatalystVoidFractionGets or sets the void fraction of the catalyst bed (0–1).
ComponentConversionsGets the dictionary of calculated component conversions, keyed by compound name.
(Inherited from Reactor)
ComponentDescription Gets or sets the CAPE-OPEN component description for this unit operation.
(Inherited from UnitOpBaseClass)
ComponentName Gets or sets the CAPE-OPEN component name for this unit operation.
(Inherited from UnitOpBaseClass)
ConversionsGets the dictionary of calculated reaction conversions, keyed by reaction ID.
(Inherited from Reactor)
CreateChartAction
(Inherited from BaseClass)
currentdV 
DebugMode
(Inherited from BaseClass)
DebugText
(Inherited from BaseClass)
DeltaPGets or sets the pressure drop across the reactor (Pa).
(Inherited from Reactor)
DeltaQGets or sets the heat duty exchanged by the reactor (kW).
(Inherited from Reactor)
DeltaTGets or sets the temperature change across the reactor (K).
(Inherited from Reactor)
DetailedDebugReport
(Inherited from BaseClass)
DiameterGets or sets the reactor tube internal diameter (m).
Dimensions Gets or sets the list of physical dimensions (e.g. vessel diameter, length) associated with this unit operation.
(Inherited from UnitOpBaseClass)
dVGets or sets the volume increment (m³) used as the ODE integration step.
DynamicsOnly
(Inherited from BaseClass)
DynamicsSpec
(Inherited from BaseClass)
EnergyFlow Energy Flow property. Only implemented for Energy Streams.
(Inherited from BaseClass)
EquipmentTypesGets the list of equipment sub-types available for this reactor.
(Overrides UnitOpBaseClassEquipmentTypes)
ErrorMessage Gets or sets the error message regarding the last calculation attempt.
(Inherited from BaseClass)
ExternalSolverConfigData Gets or sets serialized configuration data for the external solver associated with this unit operation.
(Inherited from UnitOpBaseClass)
ExternalSolverID Gets or sets the unique identifier of an external solver to be used for this unit operation.
(Inherited from UnitOpBaseClass)
ExtraProperties
(Inherited from BaseClass)
ExtraPropertiesDescriptions
(Inherited from BaseClass)
ExtraPropertiesTypes
(Inherited from BaseClass)
ExtraPropertiesUnitTypes
(Inherited from BaseClass)
FlowSheet Gets the current flowsheet where this object is located.
(Inherited from BaseClass)
GHGEmissionData
(Inherited from BaseClass)
GraphicObject Gets or sets the graphic object representation of this object in the flowsheet.
(Inherited from BaseClass)
HasPropertiesForDynamicModeGets a value indicating whether this reactor exposes dedicated dynamic-mode properties.
(Overrides BaseClassHasPropertiesForDynamicMode)
Height
(Inherited from BaseClass)
InfoCarrierVarType
(Inherited from BaseClass)
InternalSolverGets or sets the internal ODE solver type index (0 = Oslo/RK, 1 = manual Euler).
IsAdjustAttached Checks if an Adjust operation is attached to this object.
(Inherited from BaseClass)
IsDirty
(Inherited from BaseClass)
IsFunctional
(Inherited from BaseClass)
IsInfoCarrierAttached
(Inherited from BaseClass)
IsSink
(Inherited from BaseClass)
IsSource
(Inherited from BaseClass)
IsSpecAttached Checks if an Specification operation is attached to this object.
(Inherited from BaseClass)
LastSolutionInputSnapshot
(Inherited from BaseClass)
LastUpdated
(Inherited from BaseClass)
Left
(Inherited from BaseClass)
LengthGets or sets the reactor tube length (m).
MobileCompatibleGets a value indicating whether this reactor is compatible with mobile/cross-platform interfaces.
(Overrides BaseClassMobileCompatible)
Name Object's Unique ID (Name)
(Inherited from BaseClass)
NumberOfTubesGets or sets the number of parallel tubes in the reactor.
ObjectClassGets or sets the simulation object class category (Reactors).
(Inherited from Reactor)
OutletTemperatureGets or sets the specified reactor outlet temperature (K) when OutletTemperature is selected.
(Inherited from Reactor)
OverrideCalculationRoutine
(Inherited from BaseClass)
ParticleSizeDistributions Gets or sets the dictionary of particle size distribution data, keyed by compound or stream name.
(Inherited from UnitOpBaseClass)
Phases Phase collection, only implemented for Material Streams.
(Inherited from BaseClass)
PreferredFlashAlgorithmTag
(Inherited from BaseClass)
ProductAssembly
(Inherited from BaseClass)
ProductAuthor
(Inherited from BaseClass)
ProductContactInfo
(Inherited from BaseClass)
ProductDescription
(Inherited from BaseClass)
ProductName
(Inherited from BaseClass)
ProductPage
(Inherited from BaseClass)
ProductVersion
(Inherited from BaseClass)
ProfileGets or sets the composition/flow/temperature profile computed along the reactor length.
PropertyPackage Gets or sets the property package associated with this object.
(Inherited from UnitOpBaseClass)
ReactionsGets or sets the list of active reaction IDs assigned to this reactor from the reaction set.
(Inherited from Reactor)
ReactionSetIDGets or sets the ID of the reaction set used by this reactor.
(Inherited from Reactor)
ReactionSetNameGets or sets the display name of the reaction set used by this reactor.
(Inherited from Reactor)
ReactionsSequenceGets or sets the ordered sequence of reaction groups (parallel reactions within each group are solved simultaneously).
(Inherited from Reactor)
ReactorOperationModeGets or sets the thermal operating mode of the reactor (isothermal, adiabatic, outlet temperature, or non-isothermal/non-adiabatic).
(Inherited from Reactor)
ReactorSizingTypeGets or sets the sizing calculation mode for the PFR.
ResidenceTimeGets or sets the calculated residence time (s).
Right
(Inherited from BaseClass)
SelectedEquipmentType Gets or sets the name of the equipment type currently selected for this unit operation.
(Inherited from UnitOpBaseClass)
SlurryViscosityModeGets or sets the slurry viscosity model index (0 = default).
SpecVarType If an Specification object is attached to this object, returns a variable describing how this object is used by it (target or source).
(Inherited from BaseClass)
StoreDetailedDebugReport
(Inherited from BaseClass)
SupportsDynamicModeGets a value indicating whether this reactor supports dynamic simulation mode.
(Overrides BaseClassSupportsDynamicMode)
SupportsParticleSizeDistributions Gets a value indicating whether this unit operation supports particle size distribution calculations.
(Inherited from UnitOpBaseClass)
SupportsRestoreStateAfterError Gets a value indicating whether this unit operation supports restoring its state after a solver error.
(Inherited from UnitOpBaseClass)
Top
(Inherited from BaseClass)
UserDefinedChartNames
(Inherited from BaseClass)
UserDefinedPressureDropGets or sets the user-defined total pressure drop (Pa) when UseUserDefinedPressureDrop is True.
UseUserDefinedPressureDropGets or sets whether a user-defined total pressure drop is used instead of computing it from the Ergun equation.
Visible
(Inherited from BaseClass)
VolumeGets or sets the total reactor volume (m³).
Width
(Inherited from BaseClass)

Methods

AddDynamicProperty
(Inherited from BaseClass)
AddExtraProperty
(Inherited from BaseClass)
AppendDebugLine
(Inherited from BaseClass)
CalcMaxDy 
Calculate Performs the PFR calculation by integrating the reaction-rate ODEs along the reactor volume, computing temperature, pressure, and composition profiles.
(Overrides BaseClassCalculate(Object))
Calculate_Internal Internal calculation routine that integrates the PFR ODEs using the specified volume-fraction scale factor.
CheckDirtyStatus Checks whether the unit operation's input data has changed since the last successful solve, and updates the dirty flag accordingly.
(Inherited from UnitOpBaseClass)
CheckSpec Checks if a value is valid.
(Inherited from BaseClass)
ClearExtraProperties
(Inherited from BaseClass)
ClearPropertyPackageInstance Removes the externally set property package instance from this unit operation, reverting to the flowsheet-level property package lookup.
(Inherited from UnitOpBaseClass)
Clone Clones the current object, returning a new one with identical properties.
(Inherited from BaseClass)
CloneJSONCreates a deep copy of this reactor via JSON serialization.
(Overrides BaseClassCloneJSON)
CloneXMLCreates a deep copy of this reactor via XML serialization.
(Overrides BaseClassCloneXML)
CloseDynamicsEditForm
(Inherited from BaseClass)
CloseEditFormCloses and disposes the editing form.
(Overrides BaseClassCloseEditForm)
ConnectEnergyStream
(Inherited from BaseClass)
ConnectFeedEnergyStream
(Inherited from BaseClass)
ConnectFeedMaterialStream
(Inherited from BaseClass)
ConnectProductEnergyStream
(Inherited from BaseClass)
ConnectProductMaterialStream
(Inherited from BaseClass)
CopyDataToClipboard Copies the object properties to the Clipboard.
(Inherited from BaseClass)
CreateDimensionsListCreates the dimensions list (Volume, Length, Diameter) for this PFR.
(Overrides UnitOpBaseClassCreateDimensionsList)
CreateDynamicPropertiesRegisters the dynamic properties for dynamic simulation mode.
(Overrides BaseClassCreateDynamicProperties)
CreateNew
(Inherited from BaseClass)
DeCalculateClears the calculated results from the outlet material streams.
(Overrides UnitOpBaseClassDeCalculate)
DeCalculate(Object)
(Inherited from BaseClass)
DisplayDynamicsEditForm
(Inherited from BaseClass)
DisplayEditFormOpens or activates the editing form for this reactor.
(Overrides BaseClassDisplayEditForm)
DisplayExtraPropertiesEditForm
(Inherited from BaseClass)
Dispose
(Inherited from BaseClass)
Dispose(Boolean)
(Inherited from BaseClass)
FT Formats a property string, adding its units in parenthesis.
(Inherited from BaseClass)
GetAsObject
(Inherited from BaseClass)
GetBytesFromResource
(Inherited from BaseClass)
GetCalculationModes Returns the list of available calculation mode names for this unit operation.
(Inherited from UnitOpBaseClass)
GetChartModelReturns an OxyPlot chart model for the specified profile chart name.
(Overrides BaseClassGetChartModel(String))
GetChartModelNamesReturns the list of available profile chart names for this PFR.
(Overrides BaseClassGetChartModelNames)
GetConnectionPortsInfo
(Inherited from BaseClass)
GetConnectionPortsList
(Inherited from BaseClass)
GetConvFactors Calculates the concentration-unit conversion factors for every stoichiometric component in the given reaction, based on the reaction basis (molar, mass, activity, fugacity, etc.).
(Inherited from Reactor)
GetDebugReport Runs the unit operation in debug mode and returns a formatted text report containing intermediate calculation steps and any error information.
(Inherited from UnitOpBaseClass)
GetDebugWriter
(Inherited from BaseClass)
GetDefaultProperties
(Inherited from BaseClass)
GetDisplayDescriptionReturns the localised display description for this reactor.
(Overrides BaseClassGetDisplayDescription)
GetDisplayNameReturns the localised display name for this reactor.
(Overrides BaseClassGetDisplayName)
GetDynamicContents Returns the current mass held in the accumulation stream of this unit operation.
(Inherited from UnitOpBaseClass)
GetDynamicProperty
(Inherited from BaseClass)
GetDynamicPropertyUnitType
(Inherited from BaseClass)
GetDynamicResidenceTime Returns the dynamic residence time of this unit operation, computed as volume divided by the total volumetric inlet flow rate.
(Inherited from UnitOpBaseClass)
GetDynamicVolume Returns the dynamic volume of this unit operation from its dynamic property store.
(Inherited from UnitOpBaseClass)
GetEditingForm
(Inherited from BaseClass)
GetEnergyBalanceResidual
(Inherited from BaseClass)
GetEnergyConsumption Returns the total energy consumed by this unit operation by summing the energy flows from all connected energy streams and the energy connector.
(Inherited from UnitOpBaseClass)
GetExtraPropertyValue
(Inherited from BaseClass)
GetFlowsheet
(Inherited from BaseClass)
GetIconBitmapReturns the icon bitmap resource for this unit operation.
(Overrides BaseClassGetIconBitmap)
GetIconBitmapBytesReturns the icon bitmap as a byte array.
(Overrides BaseClassGetIconBitmapBytes)
GetKeyPropertyNames Returns the names of the key output properties reported by this unit operation.
(Inherited from UnitOpBaseClass)
GetKeyPropertyUnits Returns the display unit string for a named key property.
(Inherited from UnitOpBaseClass)
GetKeyPropertyValue Returns the current numeric value of a named key property in SI units.
(Inherited from UnitOpBaseClass)
GetMassBalanceResidual
(Inherited from BaseClass)
GetPowerGeneratedOrConsumed
(Inherited from BaseClass)
GetPreferredGraphicObjectHeight
(Inherited from BaseClass)
GetPreferredGraphicObjectWidth
(Inherited from BaseClass)
GetPropertiesReturns an array of property identifiers for the specified property type.
(Overrides BaseClassGetProperties(PropertyType))
GetProperties2
(Inherited from BaseClass)
GetPropertyDescriptionReturns a human-readable description of the specified property.
(Overrides BaseClassGetPropertyDescription(String))
GetPropertyUnitReturns the unit string for the specified property.
(Overrides BaseClassGetPropertyUnit(String, IUnitsOfMeasure))
GetPropertyUnits2
(Inherited from BaseClass)
GetPropertyValueReturns the value of the specified property, converted to the given unit system.
(Overrides UnitOpBaseClassGetPropertyValue(String, IUnitsOfMeasure))
GetPropertyValue2
(Inherited from BaseClass)
GetReportGenerates a plain-text report of the reactor results using the specified units and format.
(Overrides BaseClassGetReport(IUnitsOfMeasure, CultureInfo, String))
GetStructuredReportGenerates a structured report of the reactor results as a list of typed tuples.
(Overrides BaseClassGetStructuredReport)
GetVersion
(Inherited from BaseClass)
IsDynamicProperty
(Inherited from BaseClass)
LoadDataRestores the reactor state, including accumulation streams and profile data, from XML.
(Overrides ReactorLoadData(ListXElement))
ObjectCopy
(Inherited from BaseClass)
ODEFunc Evaluates the system of ODEs (molar flow derivatives with respect to volume) for the PFR integration at the current position and composition.
PerformPostCalcValidation
(Inherited from BaseClass)
ProcessAdvancedKineticReactionRate Evaluates a user-defined Python script that returns the reaction rate for an advanced kinetic expression. The script receives the reactor, reaction, temperature, pressure, and component amounts as variables and must set the variable r to the computed rate.
(Inherited from Reactor)
RemoveDynamicProperty
(Inherited from BaseClass)
RemoveExtraProperty
(Inherited from BaseClass)
RunDynamicModelExecutes one dynamic simulation time step for the PFR.
(Overrides BaseClassRunDynamicModel)
SaveDataSerializes the reactor state, including profile and accumulation streams, to XML.
(Overrides ReactorSaveData)
SetCalculationMode Sets the active calculation mode for this unit operation by numeric identifier.
(Inherited from UnitOpBaseClass)
SetCanUsePreviousResults
(Inherited from BaseClass)
SetDirtyStatus
(Inherited from BaseClass)
SetDynamicProperty
(Inherited from BaseClass)
SetExtraPropertyValue
(Inherited from BaseClass)
SetFlowsheet Sets the Flowsheet to which this object belongs to.
(Inherited from BaseClass)
SetKeyPropertyValue Sets the value of a named key property, converting from the supplied units to SI internally.
(Inherited from UnitOpBaseClass)
SetPropertyPackageInstance Assigns an externally supplied property package instance to this unit operation, bypassing the flowsheet-level property package lookup.
(Inherited from UnitOpBaseClass)
SetPropertyValueSets the value of the specified property from the given value and unit system.
(Overrides BaseClassSetPropertyValue(String, Object, IUnitsOfMeasure))
SetPropertyValue2
(Inherited from BaseClass)
Solve Solves the unit operation, optionally saving and restoring state on error when the flowsheet option RestoreUnitOperationStateAfterError is enabled.
(Inherited from UnitOpBaseClass)
StoreDebugReport
(Inherited from BaseClass)
ToString
(Inherited from BaseClass)
TransferAdditionalSolidData
(Inherited from BaseClass)
Unsolve Decalculates the object.
(Inherited from UnitOpBaseClass)
UpdateDimensionsListUpdates the dimension values from the current reactor geometry.
(Overrides UnitOpBaseClassUpdateDimensionsList)
UpdateDynamicsEditForm
(Inherited from BaseClass)
UpdateEditFormRefreshes the editing form with updated data.
(Overrides BaseClassUpdateEditForm)
UpdateExtraPropertiesEditForm
(Inherited from BaseClass)
Validate Validates the object, checking its connections and other parameters.
(Inherited from BaseClass)

Fields

_CanUsePreviousResults
(Inherited from BaseClass)
_capeopenmode
(Inherited from UnitOpBaseClass)
_IObj 
_IsDirty
(Inherited from BaseClass)
_pp
(Inherited from UnitOpBaseClass)
_ppid
(Inherited from UnitOpBaseClass)
AccumulationStream
(Inherited from UnitOpBaseClass)
activeAL 
C 
C0 
CalculationRoutineOverride
(Inherited from BaseClass)
DHRi 
DHRT 
disposedValue
(Inherited from BaseClass)
ExtraPropertiesEditor
(Inherited from BaseClass)
f 
fd
(Inherited from BaseClass)
ims 
Kf 
Kr 
LaunchExternalPropertyEditor
(Inherited from BaseClass)
m_componentconversions
(Inherited from Reactor)
m_conversions
(Inherited from Reactor)
m_dp
(Inherited from Reactor)
m_DQ
(Inherited from Reactor)
m_dt
(Inherited from Reactor)
m_flowsheet
(Inherited from BaseClass)
m_opmode
(Inherited from Reactor)
m_reactions
(Inherited from Reactor)
m_reactionSequence
(Inherited from Reactor)
m_reactionSetID
(Inherited from Reactor)
m_reactionSetName
(Inherited from Reactor)
N00 
points 
Ri 
Rxi 
RxiT 
VolumeFraction 

Extension Methods

See Also