Skip to content

Commit c6f0ae9

Browse files
Comments and intro updated in terzaghi1D
1 parent 169f947 commit c6f0ae9

1 file changed

Lines changed: 29 additions & 3 deletions

File tree

examples/matlab/terzaghi1D.m

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
1-
% Terzaghi 1D: using MOLE operators
1+
% -------------------------------------------------------------------------
2+
% Terzaghi One-Dimensional Consolidation Example
3+
%
4+
% Consolidation is the process of transient fluid flow through a porous
5+
% medium that deforms over time.
6+
%
7+
% A constant compressive face load of P0 = 10 MPa is applied at the
8+
% left boundary (x = 0 m) of a saturated porous soil matrix.
9+
%
10+
% Zero displacement is assumed at the right boundary (x = L = 25 m),
11+
% representing a fixed wall or support.
12+
%
13+
% The matrix is assumed to be fully saturated, and fluid drainage is
14+
% permitted only at the loaded boundary (x = 0 m).
15+
%
16+
% The MOLE Laplacian operator is used to compute the excess pore pressure
17+
% p(x, t), satisfies a one-dimensional diffusion equation for pressure.
18+
%
19+
% The domain is defined on the interval x ∈ [0, L] meters.
20+
%
21+
% The simulation compares the MOLE-based numerical solution to an
22+
% analytical benchmark solution derived using Fourier series.
23+
% -------------------------------------------------------------------------
24+
25+
%%
226
clc;
327
close all;
428

@@ -32,8 +56,10 @@
3256
g = 9.81; % Gravity [m/s^2]
3357

3458
%% Numerical (MOLE) Solution
35-
L = lap(k, m, dx);
36-
G = grad(k, m, dx);
59+
L = lap(k, m, dx); % Mimetic Laplacian operator for diffusion
60+
G = grad(k, m, dx); % Mimetic gradient operator for Darcy flux
61+
62+
% Boundary modifications to Laplacian
3763
L(1,:) = 0; L(end,:) = 0;
3864

3965
p_numerical = zeros(length(xgrid), length(times_sec)); % Pressure field [Pa]

0 commit comments

Comments
 (0)