Professional Documents
Culture Documents
This model is licensed under the COMSOL Software License Agreement 5.5.
All trademarks are the property of their respective owners. See www.comsol.com/trademarks.
Introduction
Evaporation in porous media is an important process in food and paper industry among
others. Many physical effects must be considered: fluid flow, heat transfer and transport of
participating fluids and gases. All of these effects are strongly coupled and predefined
interfaces can be used to model these effects with COMSOL Multiphysics. Considering
an unsaturated porous medium requires adjustments of the predefined equations.
In this model, the changing water saturation inside the porous medium is computed. This
model and the instructions are based on the corresponding model and focus on the
additional steps required to implement multiphase flow in porous media together with
evaporation from liquid to gaseous phase.
Model Definition
This model describes a laminar dry airflow through a porous medium containing water
vapor and liquid water. The geometry and principle is shown in Figure 1.
Airflow
Sg + Sl = 1 (1)
where the index g is used for the gaseous phase (which in this model is moist air) and the
index l is used for the liquid phase (which in this model is water).
The formulation used in this model follows (Ref. 2), where capillary effects are treated by
an additional diffusion term in the transport equation. The Brinkman Equation is used to
calculate the flow field ug and pressure distribution pg of moist air in the porous medium.
Therefore the porosity must take into account that only a fraction of the void space is
occupied by the gas phase.
The liquid phase velocity is small compared to the moist air velocity and such that Darcy’s
law is defined in terms of the gas phase pressure gradient to calculate the water velocity ul
according to
u l = – ------l p g (2)
l
where l and l are the permeability and viscosity of the liquid phase. It is not necessary
to define a second Darcy’s law equation, but an additional transport equation for the liquid
phase is required.
The boundary conditions for the flow equations and their coupling is the same as in the
corresponding model (see Flow Properties).
c
----- + N = R (3)
t
It is assumed that no liquid water can leave the porous domain. From now on the index
w is used to indicate that the properties are water properties and not a general liquid phase
anymore.
The concentration cw describes the water concentration and is rather an auxiliary variable,
since the saturation is crucial for this process. The correlation for water concentration cw
and liquid phase saturation Sl is:
cw Mw
S l = ----------------
w
where Mw and w are the molar mass and density of water, is the porosity.
The velocity field in Equation 2 must take into account that the pore space is not fully
saturated with water. Additionally the permeability for the liquid phase l depends on the
overall permeability of the porous matrix and a relative permeability (see Permeability)
rl, thus:
rl
u l = – ---------------- p g
S l w
The pressure gradient pg is solved with the Brinkman Equation and w is the viscosity of
water. The capillary effect is introduced as the diffusion coefficient Dcap which depends
on the moisture content (Ref. 2):
4 3 10 3
D eff = D va Sg
Both effects provide the velocity field that is applied to the water vapor transport equation:
ug M a D eff
u = --------- – --------------------- ma
S g M ma ma
Mma and ma refer to the moist air molar mass and density.
EVAPORATION
Including the evaporation process is done by adding the mass of water vapor that is
evaporated as source term in the transport equation. Evaporation takes place, if the
concentration of water vapor is below the equilibrium concentration, which is determined
by the saturation concentration csat and water activity aw, with
p sat T
c sat = -------------------- (4)
RT
with the saturation pressure psat and the ideal gas constant R 8.314 J/(mol·K). The
water activity describes the amount of water that evaporates into air. In general it is a
function depending on the water content on dry basis of the surrounding air and the
temperature (see, for example, Ref. 2), but here an approximate value of aw = 0.9 is used
because of the moderate variation of water content. Hence the amount of evaporated
water is defined as:
where K (SI unit: 1/s) is the evaporation rate and c the current concentration. The
evaporation rate depends on the material properties and the process that causes the
evaporation. It must be chosen so that the solution is not affected if further increased. This
corresponds to assuming that vapor is in equilibrium with the liquid or, in other words,
the time scale for evaporation is much smaller than the smallest time scale of the transport
equations. This is true for pore sizes that are not too large (Ref. 3).
The heat of evaporation is then inserted as source term in the heat transfer equation
according to:
Inside the porous domain the overall velocity field for liquid and gaseous phase contributes
to the heat convection term. Averaged thermal properties are required:
tot = S g ma + S l w
S g ma C p,ma + S l w C p,w
C p,tot = -------------------------------------------------------------- (7)
tot
k tot = S g k ma + S l k w
Then the overall velocity can be expressed as the average of dry air-, water vapor-, and
liquid water velocity, which is:
na, nv, and nw are the flux variables for each component (see Ref. 1 for more details). The
heat of evaporation is inserted as a source term in the heat transfer equation according to:
PERMEABILITY
The permeability of the porous matrix defines the absolute permeability. When two
phases are present, the permeability of each phase depends also on the saturation. This is
defined by the relative permeabilities rl and rg for liquid and gaseous phase respectively,
so that l rl and g rg. The determination of relative permeability curves is often
done empirically or experimentally and the form strongly depends on the porous material
1 – 1.1S l , S l 1 1.1
rg =
eps , S l 1 1.1
S l – S li
3
1 – S li , S l S li
-----------------
-
rl =
eps , S l S li
The variable Sli is the irreducible liquid phase saturation, describing the saturation of the
liquid phase that will remain inside the porous medium.
Inside the porous domain the relative humidity is close to 100% everywhere (Figure 4).
To get good convergence of the time dependent behavior, first solve the stationary flow
equations only. This solution will then be used for the time dependent study step. This
approximation neglects the evaporation mass source in the fluid flow computation.
References
1. A.K. Datta, “Porous media approaches to studying simultaneous heat and mass transfer
in food processes. I: Problem formulations”, Journal of Food Engineering, vol. 80, 2007.
2. A.K. Datta, “Porous media approaches to studying simultaneous heat and mass transfer
in food processes. II: Property data and representative results, Journal of Food
Engineering, vol. 80, 2007.
Modeling Instructions
From the File menu, choose New.
NEW
In the New window, click Model Wizard.
MODEL WIZARD
1 In the Model Wizard window, click 2D.
2 Click Done.
GLOBAL DEFINITIONS
For this model, many parameters and variables are needed. Start by loading all of them
from text files. For clarity reasons, the variables are grouped in separate variable sets.
Parameters 1
1 In the Model Builder window, under Global Definitions click Parameters 1.
2 In the Settings window for Parameters, locate the Parameters section.
3 Click Load from File.
4 Browse to the model’s Application Libraries folder and double-click the file
evaporation_porous_media_large_rate_parameters.txt.
Variables 1
1 In the Home toolbar, click Variables and choose Global Variables.
2 In the Settings window for Variables, type Air Properties in the Label text field.
3 Locate the Variables section. Click Load from File.
4 Browse to the model’s Application Libraries folder and double-click the file
evaporation_porous_media_large_rate_air.txt.
Variables 3
1 In the Home toolbar, click Variables and choose Global Variables.
2 In the Settings window for Variables, type Water Vapor Properties in the Label text
field.
3 Locate the Variables section. Click Load from File.
4 Browse to the model’s Application Libraries folder and double-click the file
evaporation_porous_media_large_rate_vapor.txt.
Variables 4
1 In the Home toolbar, click Variables and choose Global Variables.
2 In the Settings window for Variables, type Porous Matrix Properties in the Label text
field.
3 Locate the Variables section. Click Load from File.
4 Browse to the model’s Application Libraries folder and double-click the file
evaporation_porous_media_large_rate_porous.txt.
DEFINITIONS
Variables 5
1 In the Home toolbar, click Variables and choose Local Variables.
2 In the Settings window for Variables, type Material Properties in the Label text field.
3 Locate the Variables section. Click Load from File.
4 Browse to the model’s Application Libraries folder and double-click the file
evaporation_porous_media_large_rate_matprop.txt.
Variables 6
1 In the Home toolbar, click Variables and choose Local Variables.
2 In the Settings window for Variables, type Porous Medium Velocity Variables in
the Label text field.
Variables 7
1 In the Home toolbar, click Variables and choose Local Variables.
2 In the Settings window for Variables, type Variables in the Label text field.
3 Locate the Variables section. Click Load from File.
4 Browse to the model’s Application Libraries folder and double-click the file
evaporation_porous_media_large_rate_variables.txt.
Define the relative permeabilities for water vapor and liquid water as functions of liquid
water saturation. The advantage of using functions is that they can be plotted immediately.
Piecewise 1 (pw1)
1 In the Home toolbar, click Functions and choose Local>Piecewise.
2 In the Settings window for Piecewise, type Relative Permeability, Moist Air in
the Label text field.
3 In the Function name text field, type kappa_rma.
4 Locate the Definition section. In the Argument text field, type S_l.
5 Find the Intervals subsection. In the table, enter the following settings:
Piecewise 2 (pw2)
1 In the Home toolbar, click Functions and choose Global>Piecewise.
2 In the Settings window for Piecewise, type Relative Permeability, Liquid Phase
in the Label text field.
3 In the Function name text field, type kappa_rl.
4 Locate the Definition section. In the Argument text field, type S_l.
5 Find the Intervals subsection. In the table, enter the following settings:
GEOMETRY 1
Rectangle 1 (r1)
1 In the Geometry toolbar, click Rectangle.
2 In the Settings window for Rectangle, locate the Size and Shape section.
3 In the Width text field, type 0.15.
4 In the Height text field, type 0.05.
Rectangle 2 (r2)
1 In the Geometry toolbar, click Rectangle.
2 In the Settings window for Rectangle, locate the Size and Shape section.
3 In the Width text field, type 0.04.
4 In the Height text field, type 0.005.
5 Locate the Position section. In the x text field, type 0.04.
Fillet 1 (fil1)
1 In the Geometry toolbar, click Fillet.
Next, add the physics interfaces that set up the equations to be solved in the domains.
ADD PHYSICS
1 In the Home toolbar, click Add Physics to open the Add Physics window.
2 Go to the Add Physics window.
3 In the tree, select Fluid Flow>Nonisothermal Flow>Laminar Flow.
4 Click Add to Component 1 in the window toolbar.
5 In the tree, select Chemical Species Transport>Transport of Diluted Species (tds).
6 Click Add to Component 1 in the window toolbar.
7 In the tree, select Chemical Species Transport>Transport of Diluted Species (tds).
8 Click Add to Component 1 in the window toolbar.
9 In the Home toolbar, click Add Physics to close the Add Physics window.
cl
3 Click to expand the Dependent Variables section. In the Concentrations table, enter the
following settings:
cv
1 In the Physics toolbar, click Shared Properties and choose Ambient Properties.
2 In the Settings window for Ambient Properties, locate the Ambient Conditions section.
3 In the Tamb text field, type T0.
Initial Values 1
Use the ambient temperature defined previously as input.
Moist Air 1
1 In the Physics toolbar, click Domains and choose Moist Air.
2 In the Settings window for Moist Air, locate the Domain Selection section.
3 From the Selection list, choose All domains.
4 Locate the Thermodynamics, Fluid section. From the Input quantity list, choose
Concentration.
5 Locate the Model Input section. From the c list, choose Concentration (tds2).
Porous Medium 1
1 In the Physics toolbar, click Domains and choose Porous Medium.
2 Select Domain 2 only.
3 In the Settings window for Porous Medium, click in the upper-right corner of the
Model input section. Locate the Model input section. Click Make All Model Inputs Editable
in the upper-right corner of the section.
4 Locate the Heat Convection section. Specify the u vector as
u_mean x
v_mean y
This is the average velocity for liquid water and water vapor as defined in the Porous
media velocity variables node.
5 Locate the Heat Conduction, Fluid section. From the k list, choose User defined. In the
associated text field, type k_tot.
6 Locate the Thermodynamics, Fluid section. From the list, choose User defined. In the
associated text field, type rho_tot.
7 From the Cp list, choose User defined. In the associated text field, type cp_tot.
8 From the list, choose User defined. Locate the Immobile Solids section. In the p text
field, type 1-por.
9 Locate the Heat Conduction, Porous Matrix section. From the kp list, choose User defined.
In the associated text field, type k_p.
Heat Source 1
1 In the Physics toolbar, click Domains and choose Heat Source.
2 Select Domain 2 only.
Define the heat source due to evaporation.
3 In the Settings window for Heat Source, locate the Heat Source section.
4 In the Q0 text field, type -H_evap*Mn_l*m_evap.
Inflow 1
1 In the Physics toolbar, click Boundaries and choose Inflow.
2 Select Boundary 1 only.
3 In the Settings window for Inflow, locate the Upstream Properties section.
4 From the Tustr list, choose Ambient temperature (ampr1).
Outflow 1
1 In the Physics toolbar, click Boundaries and choose Outflow.
2 Select Boundary 9 only.
1 In the Model Builder window, under Component 1 (comp1) click Laminar Flow (spf).
2 In the Settings window for Laminar Flow, locate the Physical Model section.
3 From the Compressibility list, choose Compressible flow (Ma<0.3).
The next step enables additional features for the flow interface to account for porous
domains also.
4 Select the Enable porous media domains check box.
Fluid Properties 1
1 In the Model Builder window, under Component 1 (comp1)>Laminar Flow (spf) click
Fluid Properties 1.
2 In the Settings window for Fluid Properties, locate the Fluid Properties section.
Inlet 1
1 In the Physics toolbar, click Boundaries and choose Inlet.
2 Select Boundary 1 only.
3 In the Settings window for Inlet, locate the Boundary Condition section.
4 From the list, choose Fully developed flow.
5 Locate the Fully Developed Flow section. In the Uav text field, type u0.
Outlet 1
1 In the Physics toolbar, click Boundaries and choose Outlet.
2 Select Boundary 9 only.
-px*kappa_l/(S_l*por*mu_l) x
-py*kappa_l/(S_l*por*mu_l) y
4 Locate the Diffusion section. In the Dcl text field, type D_cap.
The velocity field for the transport of liquid water can directly be derived from the vapor
flow velocity and must take into account the available pore space and relative
permeability.
Initial Values 1
1 In the Model Builder window, click Initial Values 1.
2 In the Settings window for Initial Values, locate the Initial Values section.
3 In the cl text field, type S_l_0*por*rho_l/Mn_l.
Reactions 1
1 In the Physics toolbar, click Domains and choose Reactions.
2 In the Settings window for Reactions, locate the Reaction Rates section.
3 In the Rcl text field, type -m_evap.
4 Select Domain 2 only.
Transport Properties 1
1 In the Model Builder window, under Component 1 (comp1)>
Transport of Diluted Species 2: Water Vapor (tds2) click Transport Properties 1.
2 In the Settings window for Transport Properties, locate the Convection section.
3 From the u list, choose Velocity field (spf).
4 Locate the Diffusion section. In the Dcv text field, type D_va.
Transport Properties 2
1 In the Physics toolbar, click Domains and choose Transport Properties.
u/(por*S_ma)-Mn_a*D_eff*rho_ma*d(Mn_ma/rho_ma,x)/Mn_ma^2 x
v/(por*S_ma)-Mn_a*D_eff*rho_ma*d(Mn_ma/rho_ma,y)/Mn_ma^2 y
5 Locate the Diffusion section. In the Dcv text field, type D_eff*Mn_a/Mn_ma.
This sets up the water vapor transport according to Vapor Transport in porous media.
Initial Values 2
1 In the Physics toolbar, click Domains and choose Initial Values.
2 Select Domain 2 only.
3 In the Settings window for Initial Values, locate the Initial Values section.
4 In the cv text field, type cv_sat_0.
Reactions 1
1 In the Physics toolbar, click Domains and choose Reactions.
2 Select Domain 2 only.
3 In the Settings window for Reactions, locate the Reaction Rates section.
4 In the Rcv text field, type m_evap.
Concentration 1
1 In the Physics toolbar, click Boundaries and choose Concentration.
2 Select Boundary 1 only.
3 In the Settings window for Concentration, locate the Concentration section.
4 Select the Species cv check box.
Outflow 1
1 In the Physics toolbar, click Boundaries and choose Outflow.
2 Select Boundary 9 only.
DEFINITIONS
Define some integration operators on the free and porous domains, and on the outlet
boundary.
Integration 2 (intop2)
1 In the Definitions toolbar, click Nonlocal Couplings and choose Integration.
2 Select Domain 2 only.
3 In the Settings window for Integration, type Integration Porous Medium in the Label
text field.
4 In the Operator name text field, type intopPorous.
Integration 3 (intop3)
1 In the Definitions toolbar, click Nonlocal Couplings and choose Integration.
2 In the Settings window for Integration, locate the Source Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundary 9 only.
5 In the Label text field, type Integration Outlet.
6 In the Operator name text field, type intopOutlet.
To resolve all effects and get a better convergence for this highly nonlinear problem, build
a mesh manually with boundary layers to resolve the interface properly.
MESH 1
Size 1
1 In the Mesh toolbar, click Modify and choose Size>Size.
2 In the Settings window for Size, locate the Geometric Entity Selection section.
3 From the Geometric entity level list, choose Boundary.
4 From the Selection list, choose All boundaries.
6 Locate the Element Size section. From the Calibrate for list, choose Fluid dynamics.
7 From the Predefined list, choose Extremely fine.
Size
1 In the Model Builder window, click Size.
2 In the Settings window for Size, locate the Element Size section.
3 From the Calibrate for list, choose Fluid dynamics.
4 From the Predefined list, choose Finer.
Free Triangular 1
In the Mesh toolbar, click Free Triangular.
Boundary Layers 1
In the Mesh toolbar, click Boundary Layers.
ADD STUDY
Add a stationary study that solves for the fluid flow only. This approximation does not
account for the evaporation mass source in the porous medium for the fluid flow
computation. The solution is used for the computation of the time dependent solution of
the other processes.
1 In the Home toolbar, click Add Study to open the Add Study window.
2 Go to the Add Study window.
3 Find the Studies subsection. In the Select Study tree, select General Studies>Stationary.
In the table, clear the Solve for check box for all interfaces except for the Laminar Flow
interface.
4 Click Add Study in the window toolbar.
5 In the Home toolbar, click Add Study to close the Add Study window.
STUDY 1
Time Dependent
1 In the Study toolbar, click Study Steps and choose Time Dependent>Time Dependent.
2 In the Settings window for Time Dependent, locate the Study Settings section.
3 In the Times text field, type range(0,5,1000).
4 Locate the Physics and Variables Selection section. In the table, enter the following
settings:
RESULTS
Pressure (spf)
Check that the water content variation over time in domain is balanced by the outlet
moisture flux.
4 Locate the Data section. From the Time selection list, choose Last.
5 Click Evaluate.
TABLE
1 Go to the Table window.
The difference between the initial and final concentration plus the concentration flux
over the simulation is less than 1e2 which is the solver numerical tolerance.
RESULTS
2D Plot Group 7
1 In the Results toolbar, click 2D Plot Group.
2 In the Settings window for 2D Plot Group, type Relative Humidity in the Label text
field.
Surface 1
1 In the Relative Humidity toolbar, click Surface.
2 In the Settings window for Surface, click Replace Expression in the upper-right corner of
the Expression section. From the menu, choose Component 1>Definitions>Variables>phi -
Relative humidity.
3 In the Relative Humidity toolbar, click Plot.
4 Click the Zoom Extents button in the Graphics toolbar.