Solved With COMSOL Multiphysics 4.4 Tin
Solved With COMSOL Multiphysics 4.4 Tin
A square cavity containing both solid and liquid tin is submitted to a temperature
difference between left and right boundaries. Fluid and solid parts are solved in
separate domains sharing a moving melting front (see Figure 1). The position of this
boundary through time is calculated according to the Stefan energy balance condition.
Convection
Liquid Solid
Liquid Solid
Model Definition
The geometry presented in Figure 2 shows a square of side length 10 cm filled with
pure tin. The left and right boundaries are maintained at 508 K and 503 K,
respectively. Because the fusion temperature of pure tin is 505 K, both liquid and solid
phases co-exist in the square.
Thermal insulation
Fusion
temperature
Hot (505 K)
temperature
(508 K)
Liquid Solid
Cold
temperature
(503 K)
Thermal insulation
The liquid part on the left is governed by the Navier-Stokes equations in the
Boussinesq approximation:
∂u T
ρ0 + ρ 0 ( u ⋅ ∇ ) u = – ∇p + ∇ ⋅ μ ( ∇u + ( ∇u ) ) + ρg
∂t
∇⋅u = 0
ρ = ρ0 β ( T – Tf )
In these expressions, ρ0 (kg/m3) is the reference density of the fluid, ρ (kg/m3) is the
linearized density formula used for the gravity force, β (1/K) is the tin coefficient of
thermal expansion, and Tf (K) denotes the fusion temperature of tin.
As the metal melts, the solid-liquid interface moves toward the solid side. The energy
balance at this front is expressed by
ρ 0 ΔHv ⋅ n = ( Φ l – Φ s ) ⋅ n (1)
where ΔH is the latent heat of fusion, equal to 60 kJ/kg, v (m/s) is the front velocity
vector, n is the normal vector at the front, and Φl and Φs (W/m2) are the heat fluxes
coming from the liquid and solid sides, respectively (see Figure 4).
Φl
ΔH
Φs
Liquid Solid
Melting front
Table 1 reviews the material properties of tin (Ref. 2) used in this model.
TABLE 1: MATERIAL PROPERTIES OF TIN
At the end of the simulation, the melting front does not move anymore because
balance between left and right adjacent fluxes has been reached.
In Figure 6, the temperature profile is represented jointly by a heat flux arrow plot.
To handle the melting front movement, a mesh deformation is necessary. During such
a transformation, matter from solid tin is removed while the same amount of liquid tin
is added to the fluid. The appropriate tool for deforming the mesh without reflecting
any expansion or contraction effects to the material properties is the Deformed
Geometry interface.
References
1. F. Wolff and R. Viskanta, “Solidification of a Pure Metal at a Vertical Wall in the
Presence of Liquid Superheat,” Int.J. Heat and Mass Transfer, vol. 31, no. 8,
pp. 1735–1744, 1988.
2. V. Alexiades, N. Hannoun, and T.Z. Mai, “Tin Melting: Effect of Grid Size and
Scheme on the Numerical Solution,” Proc. 5th Mississippi State Conf. Differential
Equations and Computational Simulations, pp. 55–69, 2003.
Modeling Instructions
From the File menu, choose New.
NEW
1 In the New window, click the Model Wizard button.
MODEL WIZARD
1 In the Model Wizard window, click the 2D button.
2 In the Select physics tree, select Heat Transfer>Conjugate Heat Transfer>Laminar Flow
(nitf).
3 Click the Add button.
4 In the Select physics tree, select Mathematics>Deformed Mesh>Deformed Geometry
(dg).
5 Click the Add button.
6 Click the Study button.
7 In the tree, select Preset Studies for Selected Physics>Time Dependent.
GLOBAL DEFINITIONS
Parameters
1 On the Home toolbar, click Parameters.
2 In the Parameters settings window, locate the Parameters section.
3 In the table, enter the following settings:
GEOMETRY 1
Square 1
1 In the Model Builder window, under Component 1 right-click Geometry 1 and choose
Square.
2 In the Square settings window, locate the Size section.
3 In the Side length edit field, type 0.1.
4 Click to expand the Layers section. In the table, enter the following settings:
MATERIALS
Material 1
1 In the Model Builder window, under Component 1 right-click Materials and choose
New Material.
2 Select Domain 2 only.
3 In the Material settings window, locate the Material Contents section.
4 In the table, enter the following settings:
Material 2
1 Right-click Materials and choose New Material.
2 Select Domain 1 only.
3 Right-click Component 1>Materials>Material 2 and choose Rename.
4 Go to the Rename Material dialog box and type Tin (liquid) in the New name edit
field.
5 Click OK.
Before defining the material properties of liquid tin, indicate which is the fluid
domain to let COMSOL Multiphysics flag what properties you need to specify.
C O N J U G A T E H E A T TR A N S F E R
Fluid 1
Select Domain 1 only.
MATERIALS
Tin (liquid)
1 In the Model Builder window, under Component 1>Materials click Tin (liquid).
C O N J U G A T E H E A T TR A N S F E R
Initial Values 1
1 In the Model Builder window, under Component 1>Conjugate Heat Transfer click Initial
Values 1.
2 In the Initial Values settings window, locate the Initial Values section.
3 In the p edit field, type p_ref.
Define the initial temperature as a function of Xg, the first coordinate on the
undeformed geometry.
4 In the T edit field, type Th-Xg/0.1[m]*(Th-Tc).
Volume Force 1
1 On the Physics toolbar, click Domains and choose Volume Force.
2 Select Domain 1 only.
3 In the Volume Force settings window, locate the Volume Force section.
4 Specify the F vector as
0 x
rho_Sn*g_const*beta_Sn*(T-Tf) y
Temperature 1
1 On the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundary 1 only.
3 In the Temperature settings window, locate the Temperature section.
4 In the T0 edit field, type Th.
Temperature 2
1 On the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundary 4 only.
3 In the Temperature settings window, locate the Temperature section.
4 In the T0 edit field, type Tf.
Show advanced physics options as follows to enable weak constraints on the melting
front. This creates the Lagrange multiplier for temperature, which evaluates the heat
flux jump between the adjacent liquid and solid domains more accurately.
5 In the Model Builder window’s 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. Select the Use weak constraints check box.
Temperature 3
1 On the Physics toolbar, click Boundaries and choose Temperature.
2 Select Boundary 7 only.
3 In the Temperature settings window, locate the Temperature section.
4 In the T0 edit field, type Tc.
DEFORMED GEOMETRY
Free Deformation 1
1 On the Physics toolbar, click Domains and choose Free Deformation.
2 In the Free Deformation settings window, locate the Domain Selection section.
3 From the Selection list, choose All domains.
MESH 1
1 In the Model Builder window, under Component 1 click Mesh 1.
2 In the Mesh settings window, locate the Mesh Settings section.
3 From the Element size list, choose Fine.
4 Click the Build All button.
STUDY 1
RESULTS
Velocity (nitf)
The first default plot shows the velocity profile in the fluid region. To reproduce
Figure 5, add arrows of the velocity field to visualize the convective flow direction.
Temperature (nitf)
The second default plot shows the temperature profile. To reproduce Figure 6, add
arrows of the heat flux field to see the relation between temperature and velocity.
2D Plot Group 3
1 On the Home toolbar, click Add Plot Group and choose 2D Plot Group.
2 In the Model Builder window, under Results right-click 2D Plot Group 3 and choose
Mesh.
3 In the Mesh settings window, locate the Color section.
4 From the Element color list, choose None.
5 From the Wireframe color list, choose Blue.
6 Right-click Results>2D Plot Group 3>Mesh 1 and choose Filter.
20 Click OK.
The plot should look like that in the figure below.
Deformed mesh.