Ibuprofen Synthesis: the BHC Route with Crystallization¶
In this tutorial you will make ibuprofen from isobutylbenzene in the three catalytic steps of the BHC route, and then purify it as a solid. Three conversion reactors take the conversions and selectivities of the examples of the patent, a vacuum column takes the acetic acid and the unconverted reactants off the ketone, and the crude acid is dissolved in n-heptane, crystallized by cooling, filtered and dried under vacuum. At the end you follow where every mole of isobutylbenzene went.
What you will learn
- How to chain conversion reactors that carry a main reaction and its side reactions, with conversions taken from a patent
- How to use two property packages in one flowsheet, and what happens to the enthalpy where a stream crosses from one to the other
- How to separate a reaction product from the lights in a vacuum column
- How to crystallize the product in a Crystallizer that takes the solubility from an NRTL package fitted to measured solubilities
- How a solid phase travels through a filter and a vacuum dryer
Prerequisites
- Completed Cooling Crystallization with Measured Solubilities and Benzene-Toluene Separation
- DWSIM 10.3.0 or later; every block of this tutorial is part of the open-source edition
Process Overview¶
Ibuprofen was first made in six steps. The BHC process (Boots-Hoechst-Celanese) makes it in three catalytic steps, and the acetic acid it forms in the first step is its only large by-product:
- Acylation: isobutylbenzene (IBB) reacts with acetic anhydride to 4-isobutylacetophenone (IBAP) and acetic acid. The industrial step runs in anhydrous hydrogen fluoride, which is the catalyst and the solvent and is recycled; this tutorial leaves it out.
- Hydrogenation: the ketone takes up hydrogen over a nickel catalyst and becomes 1-(4-isobutylphenyl)ethanol (IBPE).
- Carbonylation: the alcohol takes up carbon monoxide over a palladium catalyst at high pressure and becomes ibuprofen.
Each step also makes by-products. The acylation condenses part of the ketone into a heavy compound, the hydrogenation takes a little of the ketone on to an alkane, and the carbonylation gives the linear isomer of ibuprofen and some heavy ends. They all leave in the mother liquor of the crystallizer, together with the ibuprofen that stays dissolved.
graph LR
A["IBB + Ac2O"] --> R1["R-101<br/>acylation, 80 °C"]
R1 --> T["T-101<br/>vacuum column"]
T -- lights --> L["Acetic acid, IBB"]
T -- ketone --> R2["R-102<br/>hydrogenation, 70 °C"]
H["H2"] --> R2
R2 --> R3["R-103<br/>carbonylation, 130 °C, 165 bar"]
C["CO"] --> R3
R3 --> V["V-101<br/>CO vent"]
V --> D["Dissolution<br/>in n-heptane, 60 °C"]
D --> K["CRY-101<br/>cooling to 5 °C"]
K --> F["F-101<br/>filter"]
F -- mother liquor --> M["Mother liquor"]
F -- wet cake --> Y["Vacuum dryer<br/>50 °C, 0.1 bar"]
Y --> P["Ibuprofen"]
Key Design Parameters¶
| Parameter | Value |
|---|---|
| Isobutylbenzene | 10 mol/s (4832 kg/h), 80 °C, 10 bar |
| Acetic anhydride | 10.5 mol/s (5 % molar excess), 80 °C, 10 bar |
| Hydrogen / carbon monoxide | 9.5 mol/s each, 25 °C, at 7 and 165 bar |
| n-Heptane | 31 mol/s (11183 kg/h), 25 °C, 1.5 bar |
| R-101, acylation | 80 °C, 10 bar; 85 % of the IBB reacts, 81 % of it to the ketone |
| T-101 | 12 stages, feed on stage 6, 0.2 bar, reflux ratio 1, bottoms 7.6925 mol/s |
| R-102, hydrogenation | 70 °C, 7 bar; 99 % of the ketone reacts, 98 % of it to the alcohol |
| R-103, carbonylation | 130 °C, 165 bar; 99 % of the alcohol reacts, 96.6 % of it to ibuprofen and 1 % to the linear acid |
| Crystallizer | cooling to 5 °C, solubility from the property package |
| Filter | 95 % of the liquor leaves as mother liquor, 5 % stays in the cake |
| Dryer | 50 °C, 0.1 bar |
Step-by-Step in the Classic UI¶
1. Set up the compounds¶
File > New Chemical Process Model. Add these compounds:
- from the databases:
Isobutylbenzene,Acetic anhydride,Acetic acid,Hydrogen,Carbon monoxide,N-heptaneandWater; - from the additional compounds folder of DWSIM:
4-Isobutylacetophenone,1-(4-Isobutylphenyl)ethanol,Ibuprofen, and the four by-products1,3-Bis(4-isobutylphenyl)but-2-en-1-one(the heavy of the acylation),1-Ethyl-4-isobutylbenzene(the alkane),3-(4-Isobutylphenyl)propanoic acid(the linear acid) and1,3-Bis(4-isobutylphenyl)but-1-ene(the heavy ends of the carbonylation).
Ibuprofen carries its measured melting point (75.1 °C) and enthalpy of fusion (26.42 kJ/mol). The intermediates and the by-products are Joback estimates, and they don't have fusion data, so they always stay in the liquid.
2. Add two property packages¶
The reaction section has hydrogen and carbon monoxide at up to 165 bar, which calls for an equation of state. The purification section is a solution of a polar acid in an alkane at low pressure, where the solubility of ibuprofen depends on its activity coefficient. So the flowsheet uses one package for each section:
Peng-Robinson, renamedPR (reaction section);NRTL, renamedNRTL + solids (purification). In its flash settings check Handle Solids, so that the flash finds the solid ibuprofen. In its settings uncheck Try Automatic Estimation of Missing NRTL/UNIQUAC/Wilson Parameters.
Press Configure on the NRTL package and enter the pair Ibuprofen / N-heptane, with ibuprofen as the first compound: A12 = -699.7, A21 = 2529.6 cal/mol, alpha12 = 0.3. This pair was fitted to the five measured solubilities of the cooling crystallization tutorial. The other pairs without data stay at zero, which makes them ideal.
Why the automatic estimation is off
If the estimation is on, the package fills each pair without data with values regressed from UNIFAC. With a few percent of intermediates and by-products in the liquor, those estimated pairs move the activity coefficient of ibuprofen, and with it the yield of the crystallizer, by a large factor. The ideal pairs are a plain, stated assumption.
3. Define the reactions¶
Open Edit > Simulation Settings > Reactions and add seven conversion reactions, all in the Mixture phase. The base compound is the first reactant, and the conversion is the percentage of the base compound that the reaction consumes:
| Reaction | Stoichiometry | Base | Conversion (%) |
|---|---|---|---|
| Acylation | IBB + Ac2O → IBAP + AcOH | IBB | 68.85 |
| Acylation heavies | 2 IBB + 2 Ac2O → heavy ketone + 2 AcOH + H2O | IBB | 16.15 |
| Hydrogenation | IBAP + H2 → IBPE | IBAP | 97.02 |
| Over-hydrogenation | IBAP + 2 H2 → alkane + H2O | IBAP | 1.98 |
| Carbonylation | IBPE + CO → ibuprofen | IBPE | 95.634 |
| Linear carbonylation | IBPE + CO → linear acid | IBPE | 0.99 |
| Carbonylation heavies | 2 IBPE → heavy ends + 2 H2O | IBPE | 2.376 |
Group them in three reaction sets, Acylation, Hydrogenation and Carbonylation, with the reactions of each step.
The conversions come from three examples of the patent (US 4,981,995). In the acylation, 85 % of the IBB reacts and 81 % of that goes to the ketone, so the main reaction takes 68.85 % and the heavy by-product the remaining 16.15 %. The other two steps are split the same way. The examples are batch laboratory runs, so the flowsheet shows what their numbers give when they are chained; it isn't a model of the reactors.
4. Acylation and the vacuum column¶
Add the streams IBB (10 mol/s of isobutylbenzene) and Ac2O (10.5 mol/s of acetic anhydride), both at 80 °C and 10 bar, and mix them in MIX-101. Add a Conversion Reactor R-101 with the reaction set Acylation, the calculation mode Define Outlet Temperature at 80 °C, and the outlets R-101 vapor and R-101 liquid. Connect a new energy stream Q R-101 in its editor; the reactor writes the heat it removes into it.

The Conversions tab shows 85 % for isobutylbenzene, the sum of the two reactions, and 81 % for acetic anhydride, which was fed in excess.
Let R-101 liquid down to 0.2 bar in a valve VLV-101 and feed it to a Distillation Column T-101: 12 stages, feed on stage 6, top pressure 0.2 bar, a total condenser with reflux ratio 1, and the bottoms molar flow 7.6925 mol/s. That flow is the ketone plus the heavy ketone that the acylation made, so the column sends everything lighter overhead. The distillate is Lights and the bottoms are Crude IBAP.

5. Hydrogenation¶
Pump Crude IBAP to 7 bar in P-101, mix it with a stream H2 (9.5 mol/s of hydrogen, 25 °C, 7 bar) in MIX-102, and feed it to a conversion reactor R-102 with the set Hydrogenation at an outlet temperature of 70 °C. The vapor outlet is H2 purge, which carries the excess hydrogen, and the liquid outlet is IBPE.
6. Carbonylation¶
Pump IBPE to 165 bar in P-102, mix it with a stream CO (9.5 mol/s of carbon monoxide, 25 °C, 165 bar) in MIX-103, and feed it to a conversion reactor R-103 with the set Carbonylation at an outlet temperature of 130 °C. Let R-103 liquid down to 1.5 bar in VLV-102 and separate it in a Gas-Liquid Separator V-101 into CO vent and Crude ibuprofen.
Every block and stream up to here uses PR (reaction section). From the next step on, set the property package of each block and stream to NRTL + solids (purification) in its editor.
7. Dissolve the crude acid¶
Add a Cooler C-100 that takes Crude ibuprofen to Crude melt at 90 °C, with the NRTL package and an energy stream Q C-100. Mix Crude melt with a stream Heptane (31 mol/s of n-heptane, 25 °C, 1.5 bar) in MIX-104, and bring the mixture to 60 °C in a Heater H-104. The outlet is Hot solution.
The enthalpy doesn't carry from one property package to the other
Each package has its own reference state for the enthalpy, so the enthalpy that Peng-Robinson gives to Crude ibuprofen doesn't mean the same as an NRTL enthalpy. C-100 is the first block of the NRTL package, and it works because it sets the outlet temperature. Its duty compares enthalpies of two packages, and it isn't meaningful: the flowsheet shows -705.9 kW for a stream that only cools from 138 to 90 °C. Every duty after C-100 compares NRTL enthalpies again, and it is meaningful.
8. Crystallize, filter and dry¶
From Bioprocess Ops in the palette, add a Crystallizer CRY-101 with Hot solution as the feed and the outlets Crystals and Crystallizer liquor. In the Parameters tab set the mode Cooling, the solubility source PropertyPackage, the solute Ibuprofen, the solvent N-heptane and the operating temperature 5 °C.

The filter is a Splitter F-101 that sends 95 % of Crystallizer liquor to Mother liquor and 5 % to Liquor in the cake, and a Mixer MIX-105 that puts that liquor back with Crystals into Wet cake. The dryer is a Heater H-105 that takes Wet cake to 50 °C with a pressure drop of 1.4 bar, so that it leaves at 0.1 bar, followed by a Gas-Liquid Separator V-102. The n-heptane flashes off as Heptane vapor, and the solid leaves as Ibuprofen product.
9. Solve and read the results¶
Press Solve. The flowsheet solves in a few seconds.

Reaction section:
| Result | Value |
|---|---|
| R-101: isobutylbenzene converted | 85.0 % |
| R-101: ketone / heavy ketone formed | 6.885 / 0.807 mol/s |
| R-101: heat removed at 80 °C | 280 kW |
| T-101: distillate | 3350 kg/h, 54.9 wt % acetic acid and 21.6 wt % isobutylbenzene, at 65.9 °C |
| T-101: bottoms | 5341 kg/h, 81.8 wt % ketone, at 225.0 °C |
| T-101: condenser / reboiler | 1166 / 1562 kW |
| R-102: alcohol / alkane / ketone left | 6.680 / 0.136 / 0.069 mol/s |
| R-102: hydrogen in the purge | 2.519 mol/s |
| R-103: ibuprofen / linear acid / heavy ends | 6.388 / 0.066 / 0.079 mol/s |
| Crude acid after V-101 | 6031 kg/h, 78.7 wt % ibuprofen, 17.6 wt % heavies, 0.81 wt % linear acid |
The heats removed from R-102 (922 kW) and R-103 (556 kW) include more than the heats of reaction. R-102 also cools its feed, which leaves the column bottoms at 225 °C and reaches the reactor at 207 °C, down to 70 °C. R-103 heats its feed from 66 °C to 130 °C, and the carbonylation releases more heat than that.
Purification:
| Result | Value |
|---|---|
| Saturation temperature of the hot solution | 28.8 °C |
| Supersaturation ratio of the feed at 5 °C | 11.6 |
| Activity coefficient of ibuprofen at saturation | 5.98 |
| Crystals | 4334 kg/h |
| Crystallization yield | 91.4 % |
| Crystals in the slurry | 25.2 wt % |
| Crystallizer duty | -732 kW |
| Mother liquor | 12235 kg/h, with 389 kg/h of ibuprofen and 1011 kg/h of heavies |
| Dryer duty / n-heptane evaporated | 183 kW / 469 kg/h |
| Ibuprofen in the product | 4355 kg/h |
| Product purity | 96.58 wt % (2.01 wt % n-heptane) |
| Overall yield on isobutylbenzene | 58.6 % |

10. Follow the isobutylbenzene¶
For each 100 mol of isobutylbenzene fed, the flowsheet gives:
| Where it goes | mol |
|---|---|
| Left unconverted in R-101, leaves with the lights of T-101 | 15.0 |
| Heavy ketone of the acylation | 16.1 |
| Alkane of the hydrogenation | 1.4 |
| Ketone left unconverted in R-102 | 0.7 |
| Alcohol left unconverted in R-103 | 0.7 |
| Linear acid | 0.7 |
| Heavy ends of the carbonylation | 1.6 |
| Ibuprofen dissolved in the mother liquor | 5.2 |
| Ibuprofen in the product | 58.6 |
The acylation decides the result: 31 of the 100 mol don't reach the ketone. A plant recycles the unconverted isobutylbenzene and the mother liquor, so its yield is higher than the yield of this one-pass flowsheet.
The Heavies and the Crystallizer¶
In this tutorial the heavy ketone of the acylation goes on with the ketone through the two other reactors and ends in the crude acid, where it makes 17.6 wt %. That changes the purification in two ways:
Yield: the crystallizer recovers 91.4 % of the ibuprofen. The heavies are ideal partners of ibuprofen (activity coefficient 1), while n-heptane holds it with an activity coefficient near 6, so 1 t/h of heavies in the liquor keeps more ibuprofen dissolved than the same mass of n-heptane would.
Purity: the 5 % of liquor left in the cake carries heavies into the dryer. They don't evaporate at 50 °C and 0.1 bar, and they hold part of the n-heptane in the liquid, so the product keeps 2.0 wt % of n-heptane and reaches 96.6 wt % of ibuprofen.
The Case Library case ibuprofen-bhc-three-step-synthesis evaporates the ketone off the heavies at 227 °C and 0.05 bar before the hydrogenation. With that step the crystallizer recovers 94.1 % of the ibuprofen and the product reaches 99.0 wt %. Exercise 1 asks you to add it.
Results and Validation¶
Expected results
The flowsheet makes 4355 kg/h of ibuprofen at 96.58 wt %, an overall yield of 58.6 % on isobutylbenzene. The crystallizer at 5 °C recovers 91.4 % of the ibuprofen of the hot solution, which becomes saturated at 28.8 °C.
The reactor conversions reproduce the examples of the patent by construction. The solubility of ibuprofen in n-heptane comes from the NRTL pair fitted to the measurements of Hahnenkamp, Graubner and Gmehling (2010) between 8.8 and 28.9 °C. The crystallizer works at 5 °C, close to that range. The dissolution at 60 °C is above it, so the amount of n-heptane that dissolves the crude isn't validated. The numbers of the tables come from the Python script below.
Automating This Tutorial¶
Files in this repository
- Python script:
examples/pharma/01_ibuprofen_synthesis.py - Pre-built flowsheet:
examples/saved/ibuprofen_synthesis.dwxmz
The script runs in every edition. It loads the seven compounds of the additional compounds folder from their JSON files, sets up the two packages and the reactions, builds and solves the flowsheet, and prints the tables of steps 9 and 10.
import os
import sys
import pythonnet
pythonnet.load("netfx") # DWSIM is a .NET Framework application
import clr # noqa: E402
DWSIM_BIN = os.environ.get("DWSIM_BIN")
if not DWSIM_BIN:
raise SystemExit("Set DWSIM_BIN to the DWSIM installation folder before running.")
for sub in ("", "unitops", "ppacks", "extenders"):
sys.path.append(os.path.join(DWSIM_BIN, sub))
for a in ("DWSIM.Automation", "DWSIM.Automation.FluentAPI", "DWSIM.Interfaces", "DWSIM.Thermodynamics",
"DWSIM.UnitOperations"):
clr.AddReference(a)
from System import Double, String # noqa: E402
from System.Collections.Generic import Dictionary # noqa: E402
from DWSIM.Automation.FluentAPI import CompoundExtensions, Flowsheet, PropertyPackages, Q # noqa: E402
from DWSIM.Interfaces.Enums import FlashSetting # noqa: E402
from DWSIM.Thermodynamics.PropertyPackages.Auxiliary import NRTL_IPData # noqa: E402
from DWSIM.UnitOperations.Reactors import OperationMode # noqa: E402
from DWSIM.UnitOperations.UnitOperations import CrystallizerMode, CrystallizerSolubilitySource # noqa: E402
# --- 1. Compounds ------------------------------------------------------------------------------------------------------
# Seven come from the databases; ibuprofen, its two intermediates and four by-products are in the additional
# compounds folder of DWSIM (addcomps), with Joback estimates where the literature doesn't give a value.
IBB, AC2O, ACOH, H2, CO, HEP, WATER = ("Isobutylbenzene", "Acetic anhydride", "Acetic acid", "Hydrogen",
"Carbon monoxide", "N-heptane", "Water")
IBAP, IBPE, IBU = "4-Isobutylacetophenone", "1-(4-Isobutylphenyl)ethanol", "Ibuprofen"
KETONE_DIMER = "1,3-Bis(4-isobutylphenyl)but-2-en-1-one" # heavy by-product of the acylation
ALKANE = "1-Ethyl-4-isobutylbenzene" # over-hydrogenation
LINEAR = "3-(4-Isobutylphenyl)propanoic acid" # linear isomer of ibuprofen
STYRENE_DIMER = "1,3-Bis(4-isobutylphenyl)but-1-ene" # heavy ends of the carbonylation
DB = [IBB, AC2O, ACOH, H2, CO, HEP, WATER]
ADDED = [IBAP, IBPE, IBU, KETONE_DIMER, ALKANE, LINEAR, STYRENE_DIMER]
ADDCOMPS = os.environ.get("DWSIM_ADDCOMPS", os.path.join(DWSIM_BIN, "addcomps"))
fs = Flowsheet.Create("Ibuprofen synthesis (BHC route)").WithCompounds(*DB)
for name in ADDED:
fs = CompoundExtensions.WithCompoundFromJson(fs, os.path.join(ADDCOMPS, name + ".json"))
# --- 2. Two property packages --------------------------------------------------------------------------------------------
# Peng-Robinson for the reactions (hydrogen and carbon monoxide up to 165 bar), NRTL with solids for the purification
fs = fs.WithPropertyPackage(PropertyPackages.PengRobinson).WithPropertyPackage(PropertyPackages.NRTL)
pr, nrtl = [getattr(p, "__implementation__", p) for p in fs.Inner.PropertyPackages.Values]
pr.Tag = "PR (reaction section)"
nrtl.Tag = "NRTL + solids (purification)"
nrtl.FlashSettings[FlashSetting.HandleSolidsInDefaultEqCalcMode] = "True"
# Ibuprofen (1) / n-heptane (2), fitted to five measured solubilities between 8.8 and 28.9 C, cal/mol
nrtl.AutoEstimateMissingNRTLUNIQUACParameters = False
pairs = nrtl.m_uni.InteractionParameters
def set_pair(c1, c2, a12, a21, alpha, comment):
if pairs.ContainsKey(c2) and pairs[c2].ContainsKey(c1):
pairs[c2].Remove(c1)
if not pairs.ContainsKey(c1):
pairs[c1] = Dictionary[String, NRTL_IPData]()
p = NRTL_IPData()
p.ID1, p.ID2, p.A12, p.A21, p.alpha12, p.comment = c1, c2, a12, a21, alpha, comment
pairs[c1][c2] = p
set_pair(IBU, HEP, -699.7, 2529.6, 0.3, "Fitted to measured solubilities")
names = DB + ADDED
for i, c1 in enumerate(names): # the pairs without data are ideal (zero energies)
for c2 in names[i + 1:]:
known = ((pairs.ContainsKey(c1) and pairs[c1].ContainsKey(c2)) or
(pairs.ContainsKey(c2) and pairs[c2].ContainsKey(c1)))
if not known:
set_pair(c1, c2, 0.0, 0.0, 0.3, "Ideal pair, without data")
# --- 3. Reactions: conversions and selectivities of the patent examples --------------------------------------------------
def stoich(coefficients):
d = Dictionary[String, Double]()
for compound, coefficient in coefficients.items():
d[compound] = float(coefficient)
return d
def reaction_set(name, reactions):
rs = fs.ReactionSet(name)
for rname, coefficients, base, conversion in reactions:
rs.Add(fs.DefineConversionReaction(rname, stoich(coefficients), base, "Mixture", str(conversion)))
# Acylation: 85 % of the isobutylbenzene reacts, 81 % of it to the ketone (68.85 + 16.15 = 85 %)
reaction_set("Acylation", [
("Acylation", {IBB: -1, AC2O: -1, IBAP: 1, ACOH: 1}, IBB, 68.85),
("Acylation heavies", {IBB: -2, AC2O: -2, KETONE_DIMER: 1, ACOH: 2, WATER: 1}, IBB, 16.15)])
# Hydrogenation: 99 % of the ketone reacts, 98 % of it to the alcohol
reaction_set("Hydrogenation", [
("Hydrogenation", {IBAP: -1, H2: -1, IBPE: 1}, IBAP, 97.02),
("Over-hydrogenation", {IBAP: -1, H2: -2, ALKANE: 1, WATER: 1}, IBAP, 1.98)])
# Carbonylation: 99 % of the alcohol reacts, 96.6 % of it to ibuprofen
reaction_set("Carbonylation", [
("Carbonylation", {IBPE: -1, CO: -1, IBU: 1}, IBPE, 95.634),
("Linear carbonylation", {IBPE: -1, CO: -1, LINEAR: 1}, IBPE, 0.99),
("Carbonylation heavies", {IBPE: -2, STYRENE_DIMER: 1, WATER: 2}, IBPE, 2.376)])
# --- 4. Helpers ----------------------------------------------------------------------------------------------------------
ALL = DB + ADDED
def feed(tag, t_c, p_bar, mol_s, package):
s = fs.AddMaterialStream(tag).At(Q.Celsius(t_c), Q.Bar(p_bar))
for name in ALL:
s = s.SetCompoundMolarFlow(name, mol_s.get(name, 0.0))
s.Object.PropertyPackage = package
return s
def stream(tag, package):
s = fs.AddMaterialStream(tag)
s.Object.PropertyPackage = package
return s
ENERGY = {}
def energy(tag):
ENERGY[tag] = fs.AddEnergyStream(tag)
return ENERGY[tag]
def on(builder, package):
builder.Object.PropertyPackage = package
return builder
def reactor(tag, set_name, t_c, inlet, vapor, liquid):
q = energy("Q " + tag)
r = on(fs.AddConversionReactor(tag), pr).WithReactionSet(set_name).WithPressureDrop(Q.Pascal(0.0))
r.WithOperationMode(OperationMode.OutletTemperature)
r.Object.OutletTemperature = t_c + 273.15
r.ConnectFeed(inlet, 0).ConnectProduct(vapor, 0).ConnectProduct(liquid, 1).ConnectEnergyProduct(q, 2)
return r
# --- 5. Step 1, acylation and the vacuum column ----------------------------------------------------------------------------
ibb = feed("IBB", 80.0, 10.0, {IBB: 10.0}, pr) # 10 mol/s, 4.83 t/h, preheated
ac2o = feed("Ac2O", 80.0, 10.0, {AC2O: 10.5}, pr) # 5 % molar excess, preheated
r101_in, r101_v, r101_l = stream("R-101 feed", pr), stream("R-101 vapor", pr), stream("R-101 liquid", pr)
on(fs.AddMixer("MIX-101"), pr).ConnectFeed(ibb, 0).ConnectFeed(ac2o, 1).ConnectProduct(r101_in, 0)
r101 = reactor("R-101", "Acylation", 80.0, r101_in, r101_v, r101_l)
t101_in = stream("T-101 feed", pr)
on(fs.AddValve("VLV-101"), pr).WithOutletPressure(Q.Bar(0.2)).ConnectFeed(r101_l, 0).ConnectProduct(t101_in, 0)
lights, crude_ibap = stream("Lights", pr), stream("Crude IBAP", pr)
q_cond, q_reb = energy("Q cond T-101"), energy("Q reb T-101")
# the bottoms take the ketone and the acylation heavies: 6.885 + 0.8075 mol/s
t101 = on(fs.AddDistillationColumn("T-101"), pr)
(t101.WithNumberOfStages(12).WithFeed(t101_in, "Stage6").WithDistillate(lights).WithBottoms(crude_ibap)
.WithCondenserDuty(q_cond).WithReboilerDuty(q_reb).WithTopPressure(Q.Bar(0.2))
.WithCondenserSpec("Reflux Ratio", 1.0).WithReboilerSpec("Product Molar Flow Rate", 7.6925, "mol/s"))
# --- 6. Step 2, hydrogenation --------------------------------------------------------------------------------------------
ibap7 = stream("IBAP 7 bar", pr)
on(fs.AddPump("P-101"), pr).WithOutletPressure(Q.Bar(7.0)).ConnectFeed(crude_ibap, 0).ConnectProduct(ibap7, 0) \
.ConnectEnergyFeed(energy("W P-101"), 1)
h2 = feed("H2", 25.0, 7.0, {H2: 9.5}, pr)
r102_in, h2_purge, ibpe = stream("R-102 feed", pr), stream("H2 purge", pr), stream("IBPE", pr)
on(fs.AddMixer("MIX-102"), pr).ConnectFeed(ibap7, 0).ConnectFeed(h2, 1).ConnectProduct(r102_in, 0)
r102 = reactor("R-102", "Hydrogenation", 70.0, r102_in, h2_purge, ibpe)
# --- 7. Step 3, carbonylation --------------------------------------------------------------------------------------------
ibpe165 = stream("IBPE 165 bar", pr)
on(fs.AddPump("P-102"), pr).WithOutletPressure(Q.Bar(165.0)).ConnectFeed(ibpe, 0).ConnectProduct(ibpe165, 0) \
.ConnectEnergyFeed(energy("W P-102"), 1)
co = feed("CO", 25.0, 165.0, {CO: 9.5}, pr)
r103_in, r103_v, r103_l = stream("R-103 feed", pr), stream("R-103 vapor", pr), stream("R-103 liquid", pr)
on(fs.AddMixer("MIX-103"), pr).ConnectFeed(ibpe165, 0).ConnectFeed(co, 1).ConnectProduct(r103_in, 0)
r103 = reactor("R-103", "Carbonylation", 130.0, r103_in, r103_v, r103_l)
v101_in, co_vent, crude = stream("V-101 feed", pr), stream("CO vent", pr), stream("Crude ibuprofen", pr)
on(fs.AddValve("VLV-102"), pr).WithOutletPressure(Q.Bar(1.5)).ConnectFeed(r103_l, 0).ConnectProduct(v101_in, 0)
on(fs.AddSeparator("V-101"), pr).ConnectFeed(v101_in, 0).ConnectProduct(co_vent, 0).ConnectProduct(crude, 1)
# --- 8. Purification: dissolution, crystallization, filtration and drying (NRTL) ------------------------------------------
heptane = feed("Heptane", 25.0, 1.5, {HEP: 31.0}, nrtl) # 2.4 kg per kg of ibuprofen
melt = stream("Crude melt", nrtl)
# C-100 is the first block of the NRTL package: it sets the temperature, because the enthalpy of a stream
# doesn't carry from one property package to the other, and its duty isn't meaningful
on(fs.AddCooler("C-100"), nrtl).WithOutletTemperature(Q.Celsius(90.0)).WithPressureDrop(Q.Pascal(0.0)) \
.ConnectFeed(crude, 0).ConnectProduct(melt, 0).ConnectEnergyProduct(energy("Q C-100"), 0)
dissolver, hot = stream("Dissolver feed", nrtl), stream("Hot solution", nrtl)
on(fs.AddMixer("MIX-104"), nrtl).ConnectFeed(melt, 0).ConnectFeed(heptane, 1).ConnectProduct(dissolver, 0)
on(fs.AddHeater("H-104"), nrtl).WithOutletTemperature(Q.Celsius(60.0)).WithPressureDrop(Q.Pascal(0.0)) \
.ConnectFeed(dissolver, 0).ConnectProduct(hot, 0).ConnectEnergyFeed(energy("Q H-104"), 1)
crystals, cry_liquor = stream("Crystals", nrtl), stream("Crystallizer liquor", nrtl)
cry = on(fs.AddCrystallizer("CRY-101"), nrtl)
cry.WithMode(CrystallizerMode.Cooling).WithSoluteCompound(IBU).WithSolventCompound(HEP)
cry.WithSolubilitySource(CrystallizerSolubilitySource.PropertyPackage).WithOperatingTemperature(Q.Celsius(5.0))
cry.ConnectFeed(hot, 0).ConnectProduct(crystals, 0).ConnectProduct(cry_liquor, 1)
# the filter: 95 % of the liquor leaves as mother liquor, 5 % stays in the cake with the crystals
mother, cake_liquor, cake = stream("Mother liquor", nrtl), stream("Liquor in the cake", nrtl), stream("Wet cake", nrtl)
on(fs.AddSplitter("F-101"), nrtl).WithSplitRatios(0.95, 0.05).ConnectFeed(cry_liquor, 0) \
.ConnectProduct(mother, 0).ConnectProduct(cake_liquor, 1)
on(fs.AddMixer("MIX-105"), nrtl).ConnectFeed(crystals, 0).ConnectFeed(cake_liquor, 1).ConnectProduct(cake, 0)
# the vacuum dryer: the cake is heated to 50 C at 0.1 bar and the n-heptane flashes off
dryer_hot, hep_vapor, product = stream("Dryer hot", nrtl), stream("Heptane vapor", nrtl), stream("Ibuprofen product", nrtl)
on(fs.AddHeater("H-105"), nrtl).WithOutletTemperature(Q.Celsius(50.0)).WithPressureDrop(Q.Bar(1.4)) \
.ConnectFeed(cake, 0).ConnectProduct(dryer_hot, 0).ConnectEnergyFeed(energy("Q H-105"), 1)
on(fs.AddSeparator("V-102"), nrtl).ConnectFeed(dryer_hot, 0).ConnectProduct(hep_vapor, 0).ConnectProduct(product, 1)
# --- 9. Solve ------------------------------------------------------------------------------------------------------------
fs.AutoLayout()
fs.Solve()
def mol(s, name):
return s.Object.Phases[0].Compounds[name].MolarFlow
def kgh(s, name):
return s.Object.Phases[0].Compounds[name].MassFlow * 3600.0
def kw(tag):
return ENERGY[tag].EnergyFlowKW
ibb_in = mol(ibb, IBB)
ibu_prod = kgh(product, IBU)
print("Acylation: R-101 converts %.1f %% of the isobutylbenzene; ketone %.3f mol/s, acylation heavies %.3f mol/s, "
"duty %.0f kW" % ((1.0 - mol(r101_l, IBB) / ibb_in - mol(r101_v, IBB) / ibb_in) * 100.0,
mol(r101_l, IBAP) + mol(r101_v, IBAP), mol(r101_l, KETONE_DIMER), r101.HeatDutyKW))
print("T-101: distillate %.0f kg/h (%.1f wt %% acetic acid, %.1f wt %% isobutylbenzene, %.2f wt %% ketone); "
"bottoms %.0f kg/h with %.1f wt %% ketone; condenser %.0f kW, reboiler %.0f kW" % (
lights.MassFlowKgPerSecond * 3600.0, lights.OverallMassFraction(ACOH) * 100.0,
lights.OverallMassFraction(IBB) * 100.0, lights.OverallMassFraction(IBAP) * 100.0,
crude_ibap.MassFlowKgPerSecond * 3600.0, crude_ibap.OverallMassFraction(IBAP) * 100.0,
q_cond.EnergyFlowKW, q_reb.EnergyFlowKW))
print("Ketone recovered in the bottoms of T-101: %.2f %%; bottoms at %.1f C, top at %.1f C" % (
mol(crude_ibap, IBAP) / (mol(r101_l, IBAP)) * 100.0, crude_ibap.TemperatureK - 273.15, lights.TemperatureK - 273.15))
print("Hydrogenation: R-102 gives %.3f mol/s of alcohol, %.3f of alkane, %.3f of ketone left; H2 purge %.3f mol/s; "
"duty %.0f kW" % (mol(ibpe, IBPE) + mol(h2_purge, IBPE), mol(ibpe, ALKANE) + mol(h2_purge, ALKANE),
mol(ibpe, IBAP) + mol(h2_purge, IBAP), mol(h2_purge, H2), r102.HeatDutyKW))
print("Carbonylation: R-103 gives %.3f mol/s of ibuprofen, %.3f of linear acid, %.3f of heavy ends; duty %.0f kW" % (
mol(r103_l, IBU) + mol(r103_v, IBU), mol(r103_l, LINEAR) + mol(r103_v, LINEAR),
mol(r103_l, STYRENE_DIMER) + mol(r103_v, STYRENE_DIMER), r103.HeatDutyKW))
print("Crude acid: %.0f kg/h, %.1f wt %% ibuprofen, %.2f wt %% linear acid, %.2f wt %% heavies; CO vent %.3f mol/s" % (
crude.MassFlowKgPerSecond * 3600.0, crude.OverallMassFraction(IBU) * 100.0, crude.OverallMassFraction(LINEAR) * 100.0,
(crude.OverallMassFraction(KETONE_DIMER) + crude.OverallMassFraction(STYRENE_DIMER)) * 100.0, mol(co_vent, CO)))
c = cry.Object
print("CRY-101: saturated at %.1f C, supersaturation %.1f, crystals %.0f kg/h, yield %.1f %%, %.1f wt %% solids "
"in the slurry, duty %.0f kW" % (c.Result_SaturationT_K - 273.15, c.Result_Supersaturation,
c.Result_Cryst_kgs * 3600.0, c.Result_Yield * 100.0,
c.Result_SolidsInSlurry * 100.0, c.Result_Duty_kW))
print("Mother liquor: %.0f kg/h with %.0f kg/h of ibuprofen, %.1f kg/h of linear acid, %.1f kg/h of heavies" % (
mother.MassFlowKgPerSecond * 3600.0, kgh(mother, IBU), kgh(mother, LINEAR),
kgh(mother, KETONE_DIMER) + kgh(mother, STYRENE_DIMER)))
print("Dissolution: H-104 %.0f kW to 60 C, %.0f kg/h of n-heptane per %.0f kg/h of crude" % (
kw("Q H-104"), heptane.MassFlowKgPerSecond * 3600.0, crude.MassFlowKgPerSecond * 3600.0))
print("Dryer: H-105 %.0f kW, %.0f kg/h of heptane vapor" % (kw("Q H-105"), hep_vapor.MassFlowKgPerSecond * 3600.0))
print("Product: %.0f kg/h of ibuprofen, %.2f wt %% purity (%.2f wt %% n-heptane), %.1f C" % (
ibu_prod, product.OverallMassFraction(IBU) * 100.0, product.OverallMassFraction(HEP) * 100.0,
product.TemperatureK - 273.15))
print("Overall yield on isobutylbenzene: %.1f %%" % (mol(product, IBU) / ibb_in * 100.0))
print("Where 100 mol of isobutylbenzene go: %.1f unconverted, %.1f to the acylation heavies, %.1f to the alkane, "
"%.1f as ketone and %.1f as alcohol left unconverted, %.1f to the linear acid, %.1f to the heavy ends, "
"%.1f lost as ibuprofen in the mother liquor, %.1f in the product" % (
(mol(r101_l, IBB) + mol(r101_v, IBB)) / ibb_in * 100.0, 2.0 * mol(r101_l, KETONE_DIMER) / ibb_in * 100.0,
(mol(ibpe, ALKANE) + mol(h2_purge, ALKANE)) / ibb_in * 100.0,
(mol(ibpe, IBAP) + mol(h2_purge, IBAP)) / ibb_in * 100.0, (mol(r103_l, IBPE) + mol(r103_v, IBPE)) / ibb_in * 100.0,
(mol(r103_l, LINEAR) + mol(r103_v, LINEAR)) / ibb_in * 100.0,
2.0 * (mol(r103_l, STYRENE_DIMER) + mol(r103_v, STYRENE_DIMER)) / ibb_in * 100.0,
mol(mother, IBU) / ibb_in * 100.0, mol(product, IBU) / ibb_in * 100.0))
out = os.environ.get("DWSIM_SAVE_TO")
if out:
fs.OrthogonalLayout(True)
fs.Save(out)
fs.SaveScreenshot(os.path.splitext(out)[0] + ".png")
print("saved", out)
Exercises
- Add the ketone evaporator of the Case Library case between T-101 and P-101: a heater that takes
Crude IBAPto 227 °C at 0.05 bar, a separator that leaves the heavy ketone as the liquid, and a cooler that condenses the ketone vapor. How do the yield of the crystallizer and the purity of the product change? - Change the operating temperature of the crystallizer to 0, 10 and 15 °C. How much ibuprofen does each degree recover, and how does the cooling duty change?
- Raise the n-heptane to 40 mol/s. What happens to the saturation temperature, the yield and the purity?
- Turn the automatic estimation of the NRTL parameters back on and solve again. Which result moves, and by how much?
Further Reading¶
- V. Elango, M. A. Murphy, B. L. Smith, K. G. Davenport, G. N. Mott, E. G. Zey and G. L. Moss. (1991). Method for producing ibuprofen. US Patent 4,981,995
- I. Hahnenkamp, G. Graubner and J. Gmehling. (2010). Measurement and prediction of solubilities of active pharmaceutical ingredients. International Journal of Pharmaceutics, 388, 73-81
- M. C. Cann and M. E. Connelly. (2000). Real-World Cases in Green Chemistry. American Chemical Society
- R. A. Sheldon. (2000). Atom efficiency and catalysis in organic synthesis. Pure and Applied Chemistry, 72, 1233-1246
- DWSIM Case Library:
cases/reaction-systems/ibuprofen-bhc-three-step-synthesis
Next Steps¶
You now know how to carry a product from its reactions to a dry solid, with one property package for each section. Continue with the next tutorial of the Pharmaceutical Processes track.