Free Convection in A Porous Medium: Created in COMSOL Multiphysics 5.5
Free Convection in A Porous Medium: Created in COMSOL Multiphysics 5.5
Free Convection in A Porous Medium: Created in COMSOL Multiphysics 5.5
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
This example describes subsurface flow in porous media driven by density variations that
result from temperature changes. The example comes from Hossain and Wilson (Ref. 1),
who use a specialized in-house code to solve this free-convection problem. This COMSOL
Multiphysics example reproduces their work using the Brinkman Equations interface and
the Heat Transfer in Porous Media interface. The results of this model match those of the
published study.
Model Definition
The following figure gives the example geometry. Water in a porous medium layer can
move within the layer but not exit from it. Temperatures vary from high to low along the
outer edges. Initially the water is stagnant, but temperature gradients alter the fluid density
to the degree that buoyant flow occurs. The problem statement specifies that the flow is
steady state.
Tc
Th - (Th - Tc)s
Tc
Tc - (Tc - Th)s
Th
Figure 1: Domain geometry and boundary conditions for the heat balance in the free-
convection problem. Th is a higher temperature than Tc, while s is a variable that represents
the relative length of a boundary segment and goes from 0 to 1 along the segment.
The Boussinesq buoyancy term that appears on the right-hand side of the momentum
equation accounts for the lifting force due to thermal expansion
u = 0.
C L u T – k eq T = 0 (2)
where keq denotes the effective thermal conductivity of the fluid-solid mixture, and CL is
the fluid’s heat capacity at constant pressure.
The boundary conditions for the Brinkman equations are all no-slip conditions. Using
only velocity boundaries gives no information on the pressure within the domain, which
means that the example produces estimates of the pressure change instead of the pressure
field. However, without any seed information on pressure, the problem is unlikely to
converge. The remedy is to arbitrarily fix the pressure at a point in the example using a
point constraint. The boundary conditions for the Heat Transfer interface are the series of
fixed temperatures shown in Figure 1.
Results
This example reproduces a model reported by Hossain and Wilson (Ref. 1). After
extracting the input data from the paper, the author constructed the example in less than
Figure 3 gives the COMSOL Multiphysics solution for the flow field.
Reference
1. M. Anwar Hossain and M. Wilson, “Natural Convection Flow in a Fluid-saturated
Porous Medium Enclosed by Non-isothermal Walls with Heat Generation,” Int. J.
Therm. Sci., vol. 41, pp. 447–454, 2002.
Modeling Instructions
From the File menu, choose New.
NEW
In the New window, click Model Wizard.
GLOBAL DEFINITIONS
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 In the table, enter the following settings:
GEOMETRY 1
Square 1 (sq1)
1 In the Geometry toolbar, click Square.
2 In the Settings window for Square, locate the Size section.
3 In the Side length text field, type L.
4 Click Build Selected.
Point 1 (pt1)
1 In the Geometry toolbar, click Point.
2 In the Settings window for Point, locate the Point section.
3 In the x text field, type L.
4 In the y text field, type L/10.
5 Click Build All Objects.
Volume Force 1
1 In the Physics toolbar, click Domains and choose Volume Force.
Set up the Boussinesq buoyance term according to Equation 1.
2 In the Settings window for Volume Force, locate the Domain Selection section.
0 x
rho*g_const*alphap*(T-Tc) y
Porous Medium 1
1 In the Model Builder window, under Component 1 (comp1)>
Heat Transfer in Porous Media (ht) click Porous Medium 1.
2 In the Settings window for Porous Medium, locate the Model Input section.
3 From the pA list, choose User defined. In the associated text field, type p0.
4 Locate the Heat Convection section. From the u list, choose Velocity field (br).
5 Locate the Heat Conduction, Fluid section. From the k list, choose User defined. In the
associated text field, type kth.
6 Locate the Thermodynamics, Fluid section. From the list, choose User defined. In the
associated text field, type rho.
7 From the Cp list, choose User defined. In the associated text field, type Cp.
8 From the list, choose User defined. In the associated text field, type gamma.
9 Locate the Immobile Solids section. In the p text field, type 1-epsilon.
10 Locate the Heat Conduction, Porous Matrix section. From the kp list, choose User defined.
Locate the Thermodynamics, Porous Matrix section. From the p list, choose User defined.
From the Cp, p list, choose User defined.
Temperature 1
1 In the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundary 2 only.
3 In the Settings window for Temperature, locate the Temperature section.
4 In the T0 text field, type Th.
Temperature 2
1 In the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundaries 3 and 5 only.
3 In the Settings window for Temperature, locate the Temperature section.
4 In the T0 text field, type Tc.
Temperature 3
1 In the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundary 1 only.
3 In the Settings window for Temperature, locate the Temperature section.
4 In the T0 text field, type Th-(Th-Tc)*s.
Temperature 4
1 In the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundary 4 only.
3 In the Settings window for Temperature, locate the Temperature section.
4 In the T0 text field, type Tc-(Tc-Th)*s.
MESH 1
Use a finer mesh setting to resolve the convection pattern well.
Step 1: Stationary
Set up an auxiliary continuation sweep for the alphap parameter to improve stability.
RESULTS
Velocity (br)
The first default plot group shows the velocity magnitude. Refine the resolution for the
surface plot to get a smooth velocity field. Add an arrow plot to see the flow direction and
compare with Figure 3.
Surface
1 In the Model Builder window, expand the Velocity (br) node, then click Surface.
2 In the Settings window for Surface, click to expand the Quality section.
3 From the Resolution list, choose Finer.
4 In the Velocity (br) toolbar, click Plot.
Arrow Surface 1
1 In the Model Builder window, right-click Velocity (br) and choose Arrow Surface.
2 In the Velocity (br) toolbar, click Plot.
Pressure (br)
Because the cavity is closed, the pressure distribution is solely due to gravity.
Temperature (ht)
The third default plot group shows the temperature field as a surface plot (Figure 2).