WOLFRAM SYSTEM MODELER

# ChemicalTankReactor

A continuously stirred tank reactor model. Bundled Mathematica Notebook develops an optimal control strategy.

# Wolfram Language

In[1]:=
SystemModel["EducationExamples.ChemicalEngineering.ChemicalTankReactor"]
Out[1]:=

# Information

Find an optimal control signal for a continuously stirred tank reactor (CSTR). The temperature in the tank influences a reaction rate, while the temperature in the cooling jacket acts as a control signal. The goal is to go from one concentration to another as quickly as possible, while obeying safety limitations in temperature.

#### Optimal Control

Using Mathematica, find an optimal control signal for the cooling temperature to go from one concentration to another.

#### Interactive Control

Mathematica also makes it easy to create an interactive interface to see how the system reacts for different signals with simple drag and drop.

In order to get the full experience of this example, you need a desktop Wolfram Language product. A free trial download is available at www.wolfram.com/mathematica/trial/

For the full example, open the accompanying notebook ChemicalTankReactor.nb.

# Parameters (14)

F0 Value: 100 / 1000 / 60 Type: VolumeFlowRate (m³/s) Description: Inflow Value: 1000 Type: Concentration (mol/m³) Description: Concentration of inflow Value: 100 / 1000 / 60 Type: VolumeFlowRate (m³/s) Description: Outflow Value: 350 Type: Temperature (K) Description: Temperature of inflow Value: 0.219 Type: Length (m) Description: Reactor radius Value: 72000000000.0 / 60 Type: Real Description: Reaction rate coefficient Value: 8750 Type: Real Description: Reaction activation energy Value: 915.6 Type: Real Description: Reactor internal energy Value: 1000 Type: Density (kg/m³) Description: Reactor fluid density Value: 0.239 * 1000 Type: Real Description: Molar heat capacity Value: -50000.0 Type: Real Description: Reaction heat Value: 100 Type: Volume (m³) Description: Reactor volume Value: 1000 Type: Concentration (mol/m³) Description: Initial concentration Value: 350 Type: Temperature (K) Description: Initial Reactor temperature

# Connectors (1)

Tc Type: RealInput Description: Cooling temperature