∂u

Partial Differential Equations

Your Progress in this Chapter

0%

0 / 12 units completed

Chapter Overview

Solution Of PDE by Laplace Transform

Section 10.1 of 419 min2 code examples

Solution of Partial Differential Equations by Laplace Transform

The Laplace Transform is a powerful integral transform used to convert partial differential equations (PDEs) into algebraic equations, which are often easier to solve. This method is particularly useful for solving linear PDEs with constant coefficients and specific boundary conditions. While the Laplace Transform method is not a numerical methods we have decided to included it in this because of its similarity to method of lines.

1. Definition of the Laplace Transform

The Laplace Transform of a function f(t) is defined as:

F(s)=L{f(t)}=0estf(t)dtF(s) = \mathcal{L}\{f(t)\} = \int_{0}^{\infty} e^{-st} f(t) dt

where s is a complex number frequency parameter.

2. Applying the Laplace Transform to PDEs

To solve a PDE using the Laplace Transform, we follow these steps:

  1. Take the Laplace Transform of both sides of the PDE with respect to time variable t.
  2. Solve the resulting algebraic equation in the Laplace domain.
  3. Apply the inverse Laplace Transform to obtain the solution in the time domain.

3. Example: Solving the Heat Equation

Consider the one-dimensional heat equation:

ut=α2ux2\frac{\partial u}{\partial t} = \alpha \frac{\partial^2 u}{\partial x^2}

with initial condition u(x,0) = \sin(\pi x) and boundary conditions u(0,t) = u(1,t) = 0.

Solution Steps:

Step 1: Take the Laplace Transform

L{ut}=sU(x,s)u(x,0)=sU(x,s)sin(πx)\mathcal{L}\left\{\frac{\partial u}{\partial t}\right\} = sU(x,s) - u(x,0) = sU(x,s) - \sin(\pi x)
L{α2ux2}=α2Ux2\mathcal{L}\left\{ \alpha \frac{\partial^2 u}{\partial x^2} \right\} = \alpha \frac{\partial^2 U}{\partial x^2}

Step 2: Transform the boundary conditions

U(0,s)=U(1,s)=0U(0,s) = U(1,s) = 0

Step 3: Solve the Ordinary Differential Equation

sU(x,s)sin(πx)=α2Ux2sU(x,s) - \sin(\pi x) = \alpha \frac{\partial^2 U}{\partial x^2}

Rearranging gives:

2Ux2sαU(x,s)=1αsin(πx)\frac{\partial^2 U}{\partial x^2} - \frac{s}{\alpha}U(x,s) = -\frac{1}{\alpha}\sin(\pi x)

Homogeneous solution and particular solution methods can be applied here.

α2Ux2sU(x,s)=0\alpha \frac{\partial^2 U}{\partial x^2} - sU(x,s) = 0

Complementary Solution:

U(x,s)=C1(s)sinh(sαx)+C2(s)cosh(sαx)U(x,s) = C_1(s) \sinh\left(\sqrt{\frac{s}{\alpha}}x\right) + C_2(s) \cosh\left(\sqrt{\frac{s}{\alpha}}x\right)

Particular Solution: We assume U_p(x) = A\sin(\pi x) + B\cos(\pi x)

by substitution in the equation we have

π2(Asin(πx)+Bcos(πx))sα(Asin(πx)+Bcos(πx))=1αsin(πx)-\pi^2(A\sin(\pi x) + B\cos(\pi x)) - \frac{s}{\alpha} \left(A\sin(\pi x) + B\cos(\pi x) \right) = -\frac{1}{\alpha}\sin(\pi x)

it follows that B = 0 and A = 1/(s + \pi^2\alpha)

General Solution is thus:,

C1(s)sinh(sαx)+C2(s)cosh(sαx)+sin(πx)s+π2αC_1(s) \sinh\left(\sqrt{\frac{s}{\alpha}}x\right) + C_2(s) \cosh\left(\sqrt{\frac{s}{\alpha}}x\right) + \frac{\sin(\pi x)}{s + \pi^2\alpha}

Step 4: Applying the boundary conditions:

  1. at x = 0:
U(0,s)=C1(0)+C2(1)+0=0    C2=0;U(0, s) = C_1(0) + C_2(1) + 0 = 0 \implies C_2 = 0;
  1. at x = 1:
C1(s)sinh(sα)=0    C1=0C_1(s) \sinh\left(\sqrt{\frac{s}{\alpha}}\right) = 0 \implies C_1 = 0

hence,

U(x,s)=sin(πx)s+π2αU(x,s) = \frac{\sin(\pi x)}{s + \pi^2\alpha}

Step 5: Apply the inverse Laplace Transform to find u(x,t)

u(x,t)=L1{sin(πx)s+π2α}=sin(πx)L1{1s+π2α}u(x, t) = \mathcal{L}^{-1}\left\{\frac{\sin(\pi x)}{ s + \pi^2\alpha} \right\} = \sin(\pi x)\mathcal{L}^{-1}\left\{ \frac{1}{s + \pi^2\alpha} \right\}
u(x,t)=eαπ2tsin(πx)u(x, t) = e^{-\alpha\pi^2 t}\sin(\pi x)

Example 1C#

1
2
3
4
5
6
7
8
9
10
Code is ready to run
OutputFrom the book
Temperature_Laplace.png

Numerical Inversion Laplace Transform : Dimensionless Water Influx Estimation

Water influx in an oil reservoir is the migration of water from an aquifer into the pore spaces of the reservoir rock containing oil. This water movement is primarily driven by pressure differences between the aquifer and the reservoir as the oil is produced and reservoir pressure declines. The water influx can provide pressure support, helping to maintain reservoir pressure and sustain oil production. Hence, understanding and accurate estimation of water influx is crucial for optimizing oil recovery strategies and the long-term economic viability of an oil field. For use in material balance computation in edge drive configuration, reservoir engneering books provide plots for Wd as a function of dimensionless radius and time

In an edge drive configuration with the aquifer closed at its outer boundary, the governing equation gives:

Pt=1rr(rPr)\cfrac{\partial P} {\partial t} = \cfrac{ 1} { r}\cfrac{\partial} {\partial r}\left(r \cfrac{\partial P} {\partial r} \right)
P(t=0,r)=0,P(t,r=1)=1,Pr(t,r=rD)=0P(t = 0, r) = 0, P(t, r = 1) = 1, \cfrac{\partial P} {\partial r} (t, r = r_D) = 0

The solution in laplace space:

P(s,r)=Φ1I0(rs)+Φ2K0(rs)P(s, r) = \Phi_1 I_0(r\sqrt{ s}) + \Phi_2 K_0(r\sqrt{ s})

Using the boundary conditions to evaluate the constants and substitute them:

P(s,r)=K1(rDs)I0(rs)+I1(rDs)K0(rs)s(K1(rDs)I0(s)+I1(rDs)K0(s))P(s, r) = \cfrac{ K_1(r_D\sqrt{ s}) I_0(r\sqrt{ s}) +I_1(r_D\sqrt{ s}) K_0(r\sqrt{ s})}{ s(K_1(r_D\sqrt{ s}) I_0(\sqrt{ s}) +I_1(r_D\sqrt{ s}) K_0(\sqrt{ s}))}

From Darcy law, we know that the rate of water influx is proportional to the negative rate of change of pressure with respect to radial position at the reservoir aquifer boundary, hence total water influx after a time t is thus:

W(t)=0tDPr(τ,r=1)τW(t) = \int_{ 0}^{ t_D}-\cfrac{\partial P} {\partial r} (\tau, r = 1) \partial \tau

This can be accomplised by performing the integration in laplace space before inverting to time space.

W(t)=L1(1sPr(s,r=1))W(t) = \mathcal{L}^{-1}\left(\frac{-1}{s} \cfrac{\partial P}{\partial r}(s, r = 1) \right)
W(t)=L1(1ssI1(rDs)K1(s)K1(rDs)I1(s)(I1(rDs)K0(s)+K1(rDs)I0(s)))W(t) = \mathcal{ L} ^{ -1}\left(\frac{ 1} { s\sqrt{ s} } \cfrac{ I_1(r_D\sqrt{ s}) K_1(\sqrt{ s}) -K_1(r_D\sqrt{ s}) I_1(\sqrt{ s})} { (I_1(r_D\sqrt{ s}) K_0(\sqrt{ s}) +K_1(r_D\sqrt{ s}) I_0(\sqrt{ s}))} \right)

Lets see how to compute water influx, and generate the started water influx plot as shown above

Example 2C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Code is ready to run
OutputFrom the book
Dimensionless-Water-Influx.png