ReactorProcess Advanced Kinetic Reaction Rate Method
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.
Definition
Namespace: DWSIM.UnitOperations.Reactors
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
The reaction rate as calculated by the script.
Assembly: DWSIM.UnitOperations (in DWSIM.UnitOperations.dll) Version: 10.0.0.0
C#
public double ProcessAdvancedKineticReactionRate(
string scriptTitle,
Reactor rc,
Reaction rxn,
double T,
double P,
Dictionary<string, double> amounts,
Dictionary<string, double> amounts2
)VB
Public Function ProcessAdvancedKineticReactionRate (
scriptTitle As String,
rc As Reactor,
rxn As Reaction,
T As Double,
P As Double,
amounts As Dictionary(Of String, Double),
amounts2 As Dictionary(Of String, Double)
) As DoubleParameters
- scriptTitle String
- The title of the Python script registered in the flowsheet.
- rc Reactor
- The reactor executing the reaction.
- rxn Reaction
- The reaction whose rate is being computed.
- T Double
- Temperature (K).
- P Double
- Pressure (Pa).
- amounts DictionaryString, Double
- Component amounts in the reaction-basis unit.
- amounts2 DictionaryString, Double
- Component amounts in alternative units.
Return Value
DoubleThe reaction rate as calculated by the script.