- #1
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
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