Hi PF!(adsbygoogle = window.adsbygoogle || []).push({});

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 Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Finite Difference Question

Loading...

Similar Threads - Finite Difference Question | Date |
---|---|

A Runge Kutta finite difference of differential equations | Monday at 6:31 PM |

A Convergence order of central finite difference scheme | Nov 8, 2017 |

A Finite Difference | Oct 30, 2017 |

A Better way to find Finite Difference | Oct 16, 2017 |

**Physics Forums - The Fusion of Science and Community**