Finite Difference Approach for a Moving Boundary Problem

Click For Summary

Discussion Overview

The discussion revolves around a finite difference approach to solving a moving boundary problem in a one-dimensional space and time context. Participants explore the implementation of boundary conditions and the accuracy of different finite difference schemes in relation to the governing partial differential equation (PDE).

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant, Josh, describes using a central finite difference scheme for interior nodes and forward/backward differences for the boundary nodes in a moving boundary problem.
  • Another participant suggests extending the grid with fictitious points at the boundaries to impose boundary conditions using central finite differences.
  • Josh clarifies that the boundary conditions are a zero condition at the right tip and a one condition at the left tip, and seeks feedback on the legitimacy of his approach.
  • A participant notes that while Josh's method should work, maintaining accuracy at moving boundaries may require different stencils, which could affect the symmetry of the matrix used in numerical solutions.
  • There is a request for clarification on the specific form of the boundary condition related to the zero boundary condition.
  • Josh provides the governing equation of the problem, indicating that it involves a PDE with an integral constraint affecting the position of the left tip and a linear solution for both tips.

Areas of Agreement / Disagreement

Participants express differing views on the appropriateness of the finite difference approach and the handling of boundary conditions, indicating that multiple competing views remain regarding the best method to apply in this context.

Contextual Notes

Participants have not fully resolved the implications of using different stencils at the boundaries, nor have they established a consensus on the best approach to implement the boundary conditions in the finite difference scheme.

member 428835
Hi PF!

I was wondering if anyone could help me with a finite difference question? The problem I am doing is a 1-D space and time problem, so ##z## (space variable, from left to right) and ##t## (time) are my independent variables and my dependent variable is ##h##, the height, governed by a PDE I don't think we need to get into. There is a moving boundary at both ends of ##z##, however.

My question is, in writing a code I am doing a central finite difference scheme for all interior nodes and then for the node on the far left I am taking a forward difference and for the node are the far right I am taking a backward difference in order to evaluate these endpoints.

Is this a legitimate approach or is there something I am missing?

Thanks so much for your input!

Josh
 
Physics news on Phys.org
What is your boundary condition? You could extend your grid by adding an aditional fictitious point at each end and by imposing the boundary condition in terms of central finite differences you get the condition for the actual end points.
 
The boundary conditions are the right tip is zero and the left is 1. I believe I understand what you're proposing; not a bad idea.

Is there anything wrong with the technique I have used though? For some reason my code isn't working and I'm troubleshooting it. I can give this technique a try, though, but is there something wrong that you can see from what I've explained?
 
The method you described should work, I have no experience with moving boundary conditions. To maintain the accuracy probably one uses a different stencil at the boundary. This modifies the symmetry of the matrix and in case of a dedicated matrix solver you can get into trouble. You can reduce the accurary at the boundary by using a first order stencil which preserve the symmetry of the matrix.

Can you write here the equation which you try to solve?
 
The "zero boundary condition" means ##f(z_b)=0## or ##f(z_b)\rightarrow 0## at boundary ##z_b##?
 
Last edited:
The equation is $$h_t = h_{zz} \cdot h + 2 (h_z)^2$$. There is an integral constraint that dictates the position of the left tip, and a linear solution in time and space solves this PDE, which implies the right tip is linear; thus I linearly extrapolate to find it.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K