ReactorProcessAdvancedKineticReactionRate 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
public double ProcessAdvancedKineticReactionRate(
	string scriptTitle,
	Reactor rc,
	Reaction rxn,
	double T,
	double P,
	Dictionary<string, double> amounts,
	Dictionary<string, double> amounts2
)

Parameters

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

Double
The reaction rate as calculated by the script.

See Also