WOLFRAM SYSTEM MODELER

ChemicalTankReactor

A continuously stirred tank reactor model. Bundled Wolfram Language notebook develops an optimal control strategy.

Wolfram Language

In[1]:=
SystemModel["IndustryExamples.IndustrialManufacturing.ChemicalTankReactor"]
Out[1]:=

Information

 

Optimal Control for a Continuously Stirred Tank Reactor

 

Introduction

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.

In order to get the full experience of this example, you need the following:

 

These pages show an overview of the example. For the full example, open the accompanying notebook ChemicalTankReactor.nb.

 

Optimal Control

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

Control

 

Interactive Control

The Wolfram Language also makes it easy to create an interactive interface to see how the system reacts for different signals with simple drag and drop. Interact with this in the accompanying notebook.

Manipulate

 

Parameters (14)

F0

Value: 100 / 1000 / 60

Type: VolumeFlowRate (m³/s)

Description: Inflow

c0

Value: 1000

Type: Concentration (mol/m³)

Description: Concentration of inflow

F

Value: 100 / 1000 / 60

Type: VolumeFlowRate (m³/s)

Description: Outflow

T0

Value: 350

Type: Temp_K (K)

Description: Temperature of inflow

r

Value: 0.219

Type: Length (m)

Description: Reactor radius

k0

Value: 72000000000.0 / 60

Type: Real

Description: Reaction rate coefficient

EdivR

Value: 8750

Type: Real

Description: Reaction activation energy

U

Value: 915.6

Type: Real

Description: Reactor internal energy

rho

Value: 1000

Type: Density (kg/m³)

Description: Reactor fluid density

Cp

Value: 0.239 * 1000

Type: Real

Description: Molar heat capacity

dH

Value: -50000.0

Type: Real

Description: Reaction heat

V

Value: 100

Type: Volume (m³)

Description: Reactor volume

c_init

Value: 1000

Type: Concentration (mol/m³)

T_init

Value: 350

Type: Temp_K (K)

Description: Initial Reactor temperature

Connectors (1)

Tc

Type: RealInput

Description: Cooling temperature