Implicit finite difference method

Click For Summary

Discussion Overview

The discussion revolves around the implicit finite difference method applied to the wave equation. Participants explore the formulation of the method, its implementation in programming, and the accuracy of numerical results obtained from simulations.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents the implicit finite difference method for the wave equation, questioning if the index $j$ can range from $0$ to $J$ at step 1.
  • Another participant suggests that $j$ should range from $1$ to $J-1$ to ensure all values are defined, as values for $v(x_{-1})$ and $v(x_{J+1})$ are not available.
  • A participant outlines the method's implementation in C, detailing the wave equation and the steps involved in calculating approximations.
  • Concerns are raised about the correctness of the calculated vector $b$ used in solving the linear system for approximations.
  • Participants share their computed results for specific values of $J$ and $N$, questioning the accuracy of their approximations and comparing results with others.
  • Discrepancies arise regarding the values of approximations for different steps, with participants providing their own calculations and questioning each other's results.
  • Participants discuss the formulation of the linear system, including the coefficients of the matrix and how they relate to the finite difference method.
  • There is a debate over the rearrangement of the equations used to derive the coefficients of the matrix, with participants expressing uncertainty about their calculations.

Areas of Agreement / Disagreement

Participants express differing views on the range of $j$ in the method, the correctness of numerical results, and the formulation of the linear system. The discussion remains unresolved with multiple competing views and calculations presented.

Contextual Notes

Participants' calculations depend on specific assumptions about the wave equation and the finite difference method. There are unresolved questions regarding the definitions of certain terms and the accuracy of numerical approximations.

  • #31
I like Serena said:
Yep. That is correct.

Great! (Yes) Thank you for your help! (Happy)

I like Serena said:
Btw, any reason that the return value is "void *" instead of "void"?
And that you execute "pointer++" when you make no use of the incremented value?

I used pointers to return the array and use it in the main function..
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
961
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K