Moving boundary diffusion equation (transformation of coordinates)

Click For Summary
SUMMARY

The forum discussion focuses on implementing a numerical code for the diffusion equation with moving boundaries, specifically addressing the transformation of coordinates from spherical to Landau coordinates. The transformation involves scaling variables such as \(\phi = c/C_0\), \(\tau = Dt/R_0^2\), and \(x = (r-R_0)/R_0\). The final result, as suggested by Fischer, Zinovik, and Poulikakos (2009), is derived through a change of variables to \(\eta(x,\tau)\) and \(\sigma(x,\tau)\), leading to a complex expression for the second partial derivative that must be handled carefully to reproduce the expected results.

PREREQUISITES
  • Understanding of the diffusion equation in spherical coordinates
  • Familiarity with coordinate transformations in partial differential equations
  • Knowledge of numerical methods for solving differential equations
  • Proficiency in applying the chain rule for derivatives
NEXT STEPS
  • Study the derivation of the diffusion equation in spherical coordinates
  • Research coordinate transformations in partial differential equations
  • Learn about numerical methods for solving moving boundary problems
  • Examine the paper by Fischer, Zinovik, and Poulikakos (2009) for detailed insights
USEFUL FOR

Researchers, mathematicians, and engineers working on diffusion processes, particularly those involving moving boundaries, as well as students studying numerical methods in applied mathematics.

babagoslow
Messages
13
Reaction score
0
I'm trying to implement a numerical code for the diffusion equation with moving boundaries. I have no problems with the numerical implementation, but with the transformation of coordinates. In spherical coordinates, the diffusion equation is
\frac{\partial c}{\partial t} = D \left(\frac{2}{r}\frac{\partial c}{\partial r} + \frac{\partial^2 c}{\partial r^2} \right).

After scaling these equations with \phi = c/C_0, \tau = Dt/R_0^2, x = (r-R_0)/R_0 I get

\frac{\partial\phi}{\partial \tau} = \frac{2}{1+x} \frac{\partial\phi}{\partial x} + \frac{\partial^2 \phi}{\partial x^2}

Now transform the x coordinate to the Landau (not that Landau) coordinate \eta(x,\tau) defined as

\eta(x,\tau) = \frac{x - X(\tau)}{X_\infty - X(\tau)}.

The idea of the transformation is to move the boundary X(\tau), which is variable only in time \tau and keep the length scale X_\infty fixed. This is particularly useful, for instance, in problems involving a gas bubble losing volume by diffusion, where the bubble's radius is variable in time.

There's a paper out there (Fischer, Zinovik and Poulikakos 2009) which suggests that the final result should be

\frac{\partial \phi}{\partial \tau} = \left[ \frac{2}{(X_\infty - X(\tau))(1+\eta (X_\infty - X(\tau))+ X)} + \frac{1-\eta}{X_\infty - X(\tau)}\frac{dX}{d\tau} \right] \frac{\partial\phi}{\partial\eta} + \frac{1}{(X_\infty - X(\tau))^2} \frac{\partial^2 \phi}{\partial \eta^2}. <br />

However, I have some trouble reproducing this result. Can someone guide me through the change of coordinates? I have problems particularly with the second partial derivative.
 
Physics news on Phys.org
babagoslow said:
I'm trying to implement a numerical code for the diffusion equation with moving boundaries. I have no problems with the numerical implementation, but with the transformation of coordinates. In spherical coordinates, the diffusion equation is
\frac{\partial c}{\partial t} = D \left(\frac{2}{r}\frac{\partial c}{\partial r} + \frac{\partial^2 c}{\partial r^2} \right).

After scaling these equations with \phi = c/C_0, \tau = Dt/R_0^2, x = (r-R_0)/R_0 I get

\frac{\partial\phi}{\partial \tau} = \frac{2}{1+x} \frac{\partial\phi}{\partial x} + \frac{\partial^2 \phi}{\partial x^2}

Now transform the x coordinate to the Landau (not that Landau) coordinate \eta(x,\tau) defined as

\eta(x,\tau) = \frac{x - X(\tau)}{X_\infty - X(\tau)}.

The idea of the transformation is to move the boundary X(\tau), which is variable only in time \tau and keep the length scale X_\infty fixed. This is particularly useful, for instance, in problems involving a gas bubble losing volume by diffusion, where the bubble's radius is variable in time.

There's a paper out there (Fischer, Zinovik and Poulikakos 2009) which suggests that the final result should be

\frac{\partial \phi}{\partial \tau} = \left[ \frac{2}{(X_\infty - X(\tau))(1+\eta (X_\infty - X(\tau))+ X)} + \frac{1-\eta}{X_\infty - X(\tau)}\frac{dX}{d\tau} \right] \frac{\partial\phi}{\partial\eta} + \frac{1}{(X_\infty - X(\tau))^2} \frac{\partial^2 \phi}{\partial \eta^2}. <br />

However, I have some trouble reproducing this result. Can someone guide me through the change of coordinates? I have problems particularly with the second partial derivative.

It helps, to avoid confusion, to change to two new independent variables, so let's take (x,\tau) \to (\eta, \sigma) with \sigma(x,\tau) = \tau.

The chain rule gives
<br /> \frac{\partial \phi}{\partial x} = \frac{\partial \phi}{\partial \eta} \frac{\partial \eta}{\partial x} + \frac{\partial \phi}{\partial \sigma} \frac{\partial \sigma}{\partial x}<br /> = \frac{1}{X_\infty - X(\sigma)} \frac{\partial \phi}{\partial \eta} \\<br /> \frac{\partial \phi}{\partial \tau} = \frac{\partial \phi}{\partial \eta} \frac{\partial \eta}{\partial \tau} + \frac{\partial \phi}{\partial \sigma} \frac{\partial \sigma}{\partial \tau}<br /> = -\frac{(1- \eta) X&#039;(\sigma)}{X_\infty - X(\sigma)} \frac{\partial \phi}{\partial \eta} + \frac{\partial \phi}{\partial \sigma}<br />
since
<br /> \frac{\partial \eta}{\partial \tau} = \frac{\partial}{\partial \tau} \left(\frac{x - X(\tau)}{X_\infty - X(\tau)}\right) = <br /> \frac{1}{(X_\infty - X)^2} ((X_\infty - X)(-X&#039;) - (x - X)(-X&#039;)) \\<br /> = \frac{-X&#039;(\sigma)}{X_\infty - X(\sigma)} \frac{X_\infty - x}{X_\infty - X(\sigma)}<br /> = \frac{-X&#039;(\sigma)}{X_\infty - X(\sigma)}(1-\eta)<br />

For the second derivative,
<br /> \frac{\partial^2 \phi}{\partial x^2} = \frac{\partial}{\partial x} \frac{\partial \phi}{\partial x}<br /> = \frac{\partial}{\partial x} \left( \frac{1}{X_\infty - X(\sigma)} \frac{\partial \phi}{\partial \eta} \right) \\<br /> = \frac{\partial \eta}{\partial x} \frac{\partial}{\partial \eta} \left( \frac{1}{X_\infty - X(\sigma)} \frac{\partial \phi}{\partial \eta} \right) <br /> + \frac{\partial \sigma}{\partial x} \frac{\partial}{\partial \sigma} \left( \frac{1}{X_\infty - X(\sigma)} \frac{\partial \phi}{\partial \eta} \right) \\<br /> = \frac{1}{(X_\infty - X(\sigma))^2} \frac{\partial^2 \phi}{\partial \eta^2}<br />

Substitution into the original equation and rearrangement will yield the given result.
 
Last edited:
Hi Pasmith, thanks, I understand it now!
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
6
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 0 ·
Replies
0
Views
921
  • · Replies 19 ·
Replies
19
Views
5K
Replies
13
Views
4K