Professional Documents
Culture Documents
F r e e z e - Dr y i ng
Introduction
Freeze-drying, or lyophilization, is a dehydration process that is often used to preserve
a perishable food or material. It is also frequently used as a way to remove water from
goods, making them lighter and easier to transport.
Freeze-drying uses a technique called sublimation, where a frozen liquid passes directly
from a frozen state and into a gaseous state. This ability for a solid to skip the liquid
phase and pass directly into the gaseous phase can be explained by a phase diagram,
where a substances state under different pressure and temperature conditions is
described. As is shown in a phase diagram, at very low pressures and temperatures, a
solid can pass directly into the gaseous stage without passing through the intermediary
liquid phase.
This example models the process of ice sublimation in a vial under vacuum-chamber
conditions, a test case for many freeze-drying setups. The model uses the Deformed
Geometry interface to compute the coupled heat and mass balances to handle the
advancing vapor-ice interface.
1 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Model Definition
In this example, you model the process of sublimation of pure water ice in a vial.
Figure 1 depicts the model geometry.
p water = cRT
where c is the concentration of water in the vapor (mol/m3), R is the gas constant (J/
(molK)) and T is temperature (K). The total pressure in the vapor domains is given by:
2 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
p = p 0 + p vap
The values of Mair and Mwater are 29 g/mol and 18 g/mol, respectively.
H E A T TR A N S F E R
You solve the heat conduction equation in both the ice and vapor phases:
T
C p ------- = ( kT )
t
Here, Cp is the specific heat capacity (J/(kgK)) and k is the thermal conductivity (W/
(mK)). The density, (kg/m3), in the vapor domain is calculated using the mean
molar mass of vapor, Mvap, and the ideal gas approximation:
M vap p
= -----------------
RT
A boundary heat source is added to the interface in order to handle possible external
heating, for example, by radiation. In this model, the boundary heat source is set to
5000 W/m2.
x 2 y 2
Q in = ( 5.5 10 W/m ) ------- + -------
3 2
(1)
R0 R0
for x > 0, and zero otherwise. This distribution simulates the influence of possible
uneven heating of the tray, and of the vial bottom shape.
Finally, the temperature and vapor concentration at the vial exit are constrained to
fixed values that represent the conditions in the vacuum chamber, including the vapor
condenser effect.
M A S S TR A N S P O R T
In freeze-drying processes, the transport of vapor is only due to diffusion, and you
model it by the equation:
3 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
c
= ( D c )
t
where D is the diffusion coefficient, here equal to 0.05 m2/s. The inward flux of water
vapor at the interface is:
ice
n N v = c ------------------ V s
M water
ICE-VAPOR INTERFACE
The thermodynamic equilibrium implies that the temperature at the interface satisfies:
p eq
T = --------
Rc
where the equilibrium vapor pressure, peq, is approximated (Ref. 1) by the following
function of the interface temperature T (here referring to the temperature value in
kelvin):
Simultaneous heat and mass balances at the sublimation interface lead to the Stefan
condition for the interface velocity:
Qs
V s = -------------- (2)
ice L
where Qs is the jump in the normal heat flux at the interface (W/m2), and L is the
latent heat of ice sublimation, equal to 2.84106 J/kg.
Results
To make the simulation more interesting, a heater is placed under the vial so that it
covers only half of the bottom of the container, producing uneven heating. In the
beginning of the simulation (Figure 2), there is ice on the bottom of the container,
while the remaining space in the container is composed of vapor that has been created
by sublimation.
4 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
As the ice continues to sublime, the temperature and flux distribution in the model can
be measured. After a period of t = 1800 s, the melting ice has the proportions shown
in Figure 3.
5 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Figure 3: Temperature and heat flux at the end of the drying time period.
You can see from this visualization that the melting front has a concave curved shape
that is higher around the outside edges of the vial wall. Additionally, because the
heating is uneven at the bottom of the vial, the interface level is slightly lower, near
x > 0. As the ice becomes a vapor, the mass of the solid decreases and therefore the
mesh of the solid must change as well.
6 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Figure 4: Initial swept mesh (left) and deformed mesh at the end of the simulation (right).
Develop the solution in two steps. First, precompute the initial state by a stationary
analysis. Then, use the solution obtained as the initial value for the transient analysis of
drying.
In Equation 2 for the interface velocity, Qs corresponds to the jump in the normal heat
flux at the interface. This quantity can be precisely evaluated through the Lagrange
multiplier for temperature, T_lm. This variable is available when weak constraints are
enabled in the region of interest, as is the case here with the fixed temperature
constraint at the melting front.
Reference
1. D.M. Murphy and T. Koop, Review of the vapour pressures of ice and supercooled
water for atmospheric applications, Quarterly J. Royal Meteorological Soc., vol. 131,
issue 608, pp. 15391565, 2005.
7 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Modeling Instructions
From the File menu, choose New.
NEW
1 In the New window, click Model Wizard.
MODEL WIZARD
1 In the Model Wizard window, click 3D.
2 In the Select physics tree, select Chemical Species Transport>Transport of Diluted
Species (tds).
3 Click Add.
4 In the Select physics tree, select Heat Transfer>Heat Transfer in Fluids (ht).
5 Click Add.
6 In the Select physics tree, select Mathematics>Deformed Mesh>Deformed Geometry
(dg).
7 Click Add.
8 Click Study.
9 In the Select study tree, select Preset Studies for Selected Physics Interfaces>Stationary.
10 Click Done.
STUDY 1
Step 1: Stationary
1 In the Model Builder window, under Study 1 click Step 1: Stationary.
2 In the Settings window for Stationary, locate the Physics and Variables Selection
section.
3 In the table, enter the following settings:
8 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
GLOBAL DEFINITIONS
Parameters
1 On the Home toolbar, click Parameters.
2 In the Settings window for Parameters, locate the Parameters section.
3 Click Load from File.
4 Browse to the applications Application Library folder and double-click the file
freeze_drying_parameters.txt.
DEFINITIONS
Analytic 1 (an1)
1 On the Home toolbar, click Functions and choose Local>Analytic.
2 In the Settings window for Analytic, type p_eq in the Function name text field.
3 Locate the Definition section. In the Expression text field, type
exp(9.550426-5723.265/T+3.53068*log(T)-0.00728332*T).
9 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Variables 1
1 On the Home toolbar, click Variables and choose Local Variables.
2 In the Settings window for Variables, locate the Variables section.
3 Click Load from File.
4 Browse to the applications Application Library folder and double-click the file
freeze_drying_variables.txt.
GEOMETRY 1
1 In the Model Builder window, under Component 1 (comp1) click Geometry 1.
2 In the Settings window for Geometry, locate the Units section.
3 From the Length unit list, choose mm.
Cylinder 1 (cyl1)
1 On the Geometry toolbar, click Cylinder.
2 In the Settings window for Cylinder, locate the Size and Shape section.
3 In the Radius text field, type 5.
10 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Cone 1 (cone1)
1 On the Geometry toolbar, click Cone.
2 In the Settings window for Cone, locate the Size and Shape section.
3 In the Bottom radius text field, type 5.
4 In the Semi-angle text field, type 45.
5 Locate the Position section. In the z text field, type 20.
6 Right-click Component 1 (comp1)>Geometry 1>Cone 1 (cone1) and choose Build
Selected.
Cylinder 2 (cyl2)
1 On the Geometry toolbar, click Cylinder.
2 In the Settings window for Cylinder, locate the Size and Shape section.
3 In the Radius text field, type 4.
4 In the Height text field, type 2.
5 Locate the Position section. In the z text field, type 21.
6 Right-click Component 1 (comp1)>Geometry 1>Cylinder 2 (cyl2) and choose Build
Selected.
Block 1 (blk1)
1 On the Geometry toolbar, click Block.
2 In the Settings window for Block, locate the Size section.
3 In the Width text field, type 10.
4 In the Depth text field, type 5.
5 In the Height text field, type 23.
6 Locate the Position section. In the x text field, type -5.
11 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Difference 1 (dif1)
1 On the Geometry toolbar, click Booleans and Partitions and choose Difference.
2 Select the objects cone1, cyl1, and cyl2 only.
3 In the Settings window for Difference, locate the Difference section.
4 Find the Objects to subtract subsection. Select the Active toggle button.
5 Select the object blk1 only.
6 Click the Build All Objects button.
7 Click the Zoom Extents button on the Graphics toolbar.
These steps create a geometry similar to that in Figure 1.
Before defining the materials, configure the physics to indicate which are the solid
and vapor domains. This allows COMSOL Multiphysics to flag what material
properties you need to enter.
H E A T TR A N S F E R I N F L U I D S ( H T )
MATERIALS
You can now define the two materials involved in the model: ice and water vapor.
12 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Material 1 (mat1)
1 In the Model Builder window, under Component 1 (comp1) right-click Materials and
choose Blank Material.
2 In the Settings window for Material, type Ice in the Label text field.
3 Locate the Geometric Entity Selection section. Click Clear Selection.
4 Select Domain 1 only.
5 Locate the Material Contents section. In the table, enter the following settings:
Material 2 (mat2)
1 In the Model Builder window, right-click Materials and choose Blank Material.
2 In the Settings window for Material, type Water Vapor in the Label text field.
3 Select Domains 24 only.
4 Locate the Material Contents section. In the table, enter the following settings:
TR A N S P O R T O F D I L U T E D S P E C I E S ( T D S )
1 In the Model Builder window, under Component 1 (comp1) click Transport of Diluted
Species (tds).
2 Select Domains 24 only.
3 In the Settings window for Transport of Diluted Species, locate the Transport
Mechanisms section.
4 Clear the Convection check box.
In freeze-drying processes, mass transfer by convection is often neglected.
Transport Properties 1
1 In the Model Builder window, under Component 1 (comp1)>Transport of Diluted
Species (tds) click Transport Properties 1.
13 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
2 In the Settings window for Transport Properties, locate the Diffusion section.
3 In the Dc text field, type D_vap.
Initial Values 1
1 In the Model Builder window, under Component 1 (comp1)>Transport of Diluted
Species (tds) click Initial Values 1.
2 In the Settings window for Initial Values, locate the Initial Values section.
3 In the c text field, type c_init.
Concentration 1
1 On the Physics toolbar, click Boundaries and choose Concentration.
2 Select Boundary 13 only.
3 In the Settings window for Concentration, locate the Concentration section.
4 Select the Species c check box.
5 In the c0,c text field, type c_c.
Flux 1
1 On the Physics toolbar, click Boundaries and choose Flux.
2 Select Boundary 6 only.
3 In the Settings window for Flux, locate the Inward Flux section.
4 Select the Species c check box.
5 In the N0,c text field, type V_s*(c-rho_ice/M_vap).
Symmetry 1
1 On the Physics toolbar, click Boundaries and choose Symmetry.
2 Select Boundaries 5, 8, and 11 only.
H E A T TR A N S F E R I N F L U I D S ( H T )
Initial Values 1
1 In the Model Builder window, under Component 1 (comp1)>Heat Transfer in Fluids (ht)
click Initial Values 1.
14 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
2 In the Settings window for Initial Values, locate the Initial Values section.
3 In the T text field, type T_init.
Heat Flux 1
1 On the Physics toolbar, click Boundaries and choose Heat Flux.
2 In the Settings window for Heat Flux, locate the Boundary Selection section.
3 From the Selection list, choose All boundaries.
4 Remove Boundary 3 from the selection list.
5 Locate the Heat Flux section. Click the Convective heat flux button.
6 In the h text field, type h_wall.
7 In the Text text field, type T0.
Heat Flux 2
1 On the Physics toolbar, click Boundaries and choose Heat Flux.
2 Select Boundary 3 only.
3 In the Settings window for Heat Flux, locate the Heat Flux section.
4 In the q0 text field, type Q_in.
Temperature 1
1 On the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundary 6 only.
3 In the Settings window for Temperature, locate the Temperature section.
4 In the T0 text field, type p_eq(T)/(R_const*c).
5 In the Model Builder windows toolbar, click the Show button and select Advanced
Physics Options in the menu.
6 Click to expand the Constraint settings section. Locate the Constraint Settings
section. From the Apply reaction terms on list, choose Individual dependent variables.
7 Select the Use weak constraints check box.
By activating weak constraints, the Lagrange multiplier for temperature is made
available at the melting front. You can use it to evaluate precisely the heat flux jump
between the adjacent vapor and ice domains.
Temperature 2
1 On the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundary 13 only.
3 In the Settings window for Temperature, locate the Temperature section.
15 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Symmetry 1
1 On the Physics toolbar, click Boundaries and choose Symmetry.
2 Select Boundaries 2, 5, 8, and 11 only.
Free Deformation 1
1 On the Physics toolbar, click Domains and choose Free Deformation.
2 Select Domains 1 and 2 only.
16 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
MESH 1
In the Model Builder window, under Component 1 (comp1) right-click Mesh 1 and choose
Swept.
Size
1 In the Model Builder window, under Component 1 (comp1)>Mesh 1 click Size.
2 In the Settings window for Size, locate the Element Size section.
3 From the Predefined list, choose Extra fine.
4 Click the Build All button.
Now you can see a mesh similar to that shown in below.
17 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
STUDY 1
Solution 1
1 On the Study toolbar, click Show Default Solver.
2 In the Model Builder window, expand the Solution 1 node, then click Time-Dependent
Solver 1.
3 In the Settings window for Time-Dependent Solver, click to expand the Time
stepping section.
4 Locate the Time Stepping section. From the Steps taken by solver list, choose
Intermediate.
Temperature and concentration are highly interdependent in this model. Hence,
indicate that the physics are fully coupled and choose a direct solver for more
robustness.
5 Right-click Study 1>Solver Configurations>Solution 1>Time-Dependent Solver 1 and
choose Fully Coupled.
6 Right-click Study 1>Solver Configurations>Solution 1>Time-Dependent Solver
1>Direct and choose Enable.
7 On the Study toolbar, click Compute.
RESULTS
Only half of the vial geometry has been built for the calculations. In the next steps,
mirror plots are defined to visualize the entire geometry in post-processing plots.
Data Sets
1 On the Results toolbar, click More Data Sets and choose Mirror 3D.
18 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
2 In the Settings window for Mirror 3D, locate the Plane Data section.
3 From the Plane list, choose xz-planes.
4 Click the Plot button.
5 Right-click Results>Data Sets>Mirror 3D 1 and choose Duplicate.
6 In the Settings window for Mirror 3D, locate the Data section.
7 From the Data set list, choose Study 1/Solution Store 1.
3D Plot Group 1
1 On the Results toolbar, click 3D Plot Group.
2 In the Settings window for 3D Plot Group, type Sublimation Interface in the
Label text field.
3 Locate the Data section. From the Data set list, choose Mirror 3D 2.
Sublimation Interface
1 Right-click Results>Sublimation Interface and choose Slice.
2 In the Settings window for Slice, click Replace Expression in the upper-right corner
of the Expression section. From the menu, choose Model>Component 1>Heat Transfer
in Fluids>Temperature>T - Temperature.
3 Locate the Plane Data section. In the Planes text field, type 1.
4 Locate the Coloring and Style section. From the Color table list, choose ThermalLight.
5 In the Model Builder window, right-click Sublimation Interface and choose Isosurface.
6 In the Settings window for Isosurface, click Replace Expression in the upper-right
corner of the Expression section. From the menu, choose
Model>Geometry>Coordinate (Geometry)>Zg - Zg-coordinate.
7 Locate the Levels section. From the Entry method list, choose Levels.
8 In the Levels text field, type Z0.
9 Locate the Coloring and Style section. Clear the Color legend check box.
10 Right-click Sublimation Interface and choose Arrow Volume.
11 In the Settings window for Arrow Volume, click Replace Expression in the upper-right
corner of the Expression section. From the menu, choose Model>Component 1>Heat
Transfer in Fluids>Domain fluxes>ht.tfluxx,...,ht.tfluxz - Total heat flux (Material).
12 Locate the Coloring and Style section. From the Color list, choose Black.
13 Right-click Sublimation Interface and choose Streamline.
14 In the Settings window for Streamline, locate the Streamline Positioning section.
19 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
3D Plot Group 2
1 On the Home toolbar, click Add Plot Group and choose 3D Plot Group.
2 In the Settings window for 3D Plot Group, type Mesh Comparison in the Label text
field.
3 Click to expand the Title section. From the Title type list, choose None.
20 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
Mesh Comparison
1 Right-click Results>Mesh Comparison and choose Mesh.
2 In the Settings window for Mesh, locate the Data section.
3 From the Data set list, choose Study 1/Solution 1.
4 From the Time (s) list, choose 0.
5 Locate the Color section. From the Color table list, choose GrayScale.
6 Clear the Color legend check box.
7 Right-click Results>Mesh Comparison>Mesh 1 and choose Duplicate.
8 In the Settings window for Mesh, locate the Data section.
9 From the Time (s) list, choose 1800.
10 Right-click Results>Mesh Comparison>Mesh 2 and choose Deformation.
11 In the Settings window for Deformation, locate the Expression section.
12 In the x component text field, type 15.
13 Locate the Scale section. Select the Scale factor check box.
14 On the Mesh Comparison toolbar, click Plot.
15 Click the Zoom Extents button on the Graphics toolbar.
21 | FREEZE-DRYING
Solved with COMSOL Multiphysics 5.1
22 | FREEZE-DRYING