Models - Porous.solute Transport
Models - Porous.solute Transport
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 model tracks a solute in a prescribed groundwater flow over 1000 days accounting
for longitudinal and transversal dispersivity.
This set up is often used as a benchmark case to verify different implementations for
modeling species transport. It compares the results with an analytical solution (Ref. 1).
Model Definition
The model geometry is a square with a side length of 4 km. Because the groundwater flow
is prescribed, the model solves for species transport only with a predefined flow field of
magnitude 0,5 2 m/d.
Figure 2: Resulting concentration distribution after 1000 days (black contours) compared
with the analytical solution (white contours). Red arrows visualize the prescribed flow
direction.
Reference
1. J.L. Wilson and P.J. Miller, “Two-dimensional plume in uniform ground-water flow,”
Journal of the Hydraulics Division, ASCE, 1978.
ROOT
1 From the File menu, choose Open.
2 Browse to the model’s Application Libraries folder and double-click the file
solute_transport_preset.mph.
ADD COMPONENT
In the Home toolbar, click Add Component and choose 2D.
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 Locate the Position section. From the Base list, choose Center.
5 Click Build All Objects.
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 Chemical Species Transport>
Transport of Diluted Species in Porous Media (tds).
4 Click Add to Component 1 in the window toolbar.
5 In the Home toolbar, click Add Physics to close the Add Physics window.
u x
v y
5 Locate the Dispersion section. From the Dispersion tensor list, choose Dispersivity.
6 In the L text field, type aL.
7 In the T text field, type aT.
Inflow 1
1 In the Physics toolbar, click Boundaries and choose Inflow.
2 Select Boundaries 1 and 3 only.
Outflow 1
1 In the Physics toolbar, click Boundaries and choose Outflow.
2 Select Boundaries 2 and 4 only.
The source term is defined as initial value. First, define the 2D Gauss distribution as a
function.
DEFINITIONS
Analytic 2 (an2)
1 In the Home toolbar, click Functions and choose Global>Analytic.
2 In the Settings window for Analytic, type gaussian in the Function name text field.
3 Locate the Definition section. In the Expression text field, type 1/(2*pi*esrc^2)*
exp(-(x^2+y^2)/(2*esrc^2)).
Initial Values 1
1 In the Model Builder window, under Component 1 (comp1)>
Transport of Diluted Species in Porous Media (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 M*gaussian(x-x0,y-y0).
Define a variable for the analytical solution which makes it easier to compare the results in
postprocessing.
DEFINITIONS
Variables 1
1 In the Model Builder window, under Component 1 (comp1) right-click Definitions and
choose Variables.
2 In the Settings window for Variables, locate the Variables section.
To resolve the spatial distribution, a fine mesh is required. Use a mapped mesh.
MESH 1
Mapped 1
In the Model Builder window, under Component 1 (comp1) right-click Mesh 1 and choose
Mapped.
Size
1 In the Settings window for Size, click to expand the Element Size Parameters section.
2 In the Maximum element size text field, type 20.
3 Click Build All.
Add a time-dependent study to run the simulation over 1000 days. Restrict the maximum
time step, for an accurate solution.
ADD STUDY
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>
Time Dependent.
4 Click Add Study in the window toolbar.
5 In the Home toolbar, click Add Study to close the Add Study window.
STUDY 1
Solution 1 (sol1)
1 In the Study toolbar, click Show Default Solver.
2 In the Model Builder window, expand the Solution 1 (sol1) node, then click Time-
Dependent Solver 1.
RESULTS
Concentration (tds)
To create Figure 2 proceed as follows.
2D Plot Group 3
1 In the Home toolbar, click Add Plot Group and choose 2D Plot Group.
2 In the Settings window for 2D Plot Group, type Concentration compared in the Label
text field.
Arrow Surface 1
1 Right-click Concentration compared and choose Arrow Surface.
2 In the Settings window for Arrow Surface, click Replace Expression in the upper-right
corner of the Expression section. From the menu, choose Model>Component 1>
Transport of Diluted Species in Porous Media>tds.u,tds.v - Velocity field.
Contour 1
1 In the Model Builder window, right-click Concentration compared and choose Contour.
2 In the Settings window for Contour, locate the Expression section.
3 In the Unit field, type mmol/m^3.
4 Locate the Levels section. From the Entry method list, choose Levels.
5 In the Levels text field, type 0.001 0.01 0.1 0.5 1 2 4 6 8.
6 Locate the Coloring and Style section. From the Contour type list, choose Tube.
7 From the Coloring list, choose Uniform.
8 From the Color list, choose Black.
Contour 2
1 Right-click Concentration compared and choose Contour.
2 In the Settings window for Contour, click Replace Expression in the upper-right corner of
the Expression section. From the menu, choose Model>Component 1>Definitions>
Variables>c_analytic - Analytic solution - mol/m³.