
292 Programming for Chemical Engineers
Lines 3 to 5: Request the necessary information from the user.
Lines 6 and 7: Given the initial concentration of magnesium sulfate, and the
final temperature, theses lines derive the enthalpy using the
enthal_
MgSO4()function from Program Listing 8.3.
Line 8: Computes for the delta H.
Line 7: Determines the concentration of both the solution and the crystal slurry
using the
phase() function from Program Listing 8.4.
Lines 9 to 11: Equate
x1 with the initial concentration of benzene in the
solution.
Line 12: Computes for the weight of the slurry.
Line 13: Computes the heat needed for the crystallization ...