Can FDM solve any type of PDE same as FEM?

  • Context: Undergrad 
  • Thread starter Thread starter zoltrix
  • Start date Start date
  • Tags Tags
    Fdm Fem Pde Type
Click For Summary

Discussion Overview

The discussion revolves around the capabilities of the Finite Difference Method (FDM) compared to the Finite Element Method (FEM) in solving partial differential equations (PDEs). Participants explore the limitations, applicability, and potential for universal schemes within these numerical methods.

Discussion Character

  • Debate/contested
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • Some participants clarify that FDM refers to the Finite Difference Method and FEM to the Finite Element Method, both used for numerical solutions to differential equations.
  • One participant suggests that there is no universal FDM scheme applicable to all types of PDEs, contrasting it with the Runge-Kutta method for ordinary differential equations (ODEs).
  • Another participant notes that while all FEM schemes yield results, their accuracy and speed can vary based on the shape of the integration domain.
  • A participant questions whether FDM is suitable for all classifications of second-order linear PDEs, such as elliptic, parabolic, and hyperbolic types.
  • There is a suggestion that using FDM in practice may require mapping a smoothly varying grid onto the region of interest, which could limit its usefulness for irregular boundaries.
  • Some participants propose that FDM is more suited for rectangular domains, while FEM is preferred for more complicated geometries.
  • A participant inquires about the possibility of writing a general solver function for PDEs in programming languages like C or Python, seeking resources for further learning.
  • Links to online resources and books related to FDM and numerical methods for PDEs are shared by participants.
  • One participant asks about the advantages of FDM/FEM over software like Mathematica or Maple for solving PDEs.

Areas of Agreement / Disagreement

Participants express differing views on the universality of FDM compared to FEM, with some agreeing that FDM has limitations based on the problem's geometry, while others emphasize the need for specificity in discussing FDM's applicability to various PDE types. The discussion remains unresolved regarding the overall capabilities of FDM versus FEM.

Contextual Notes

Participants highlight the importance of the integration domain's shape and the specific characteristics of the PDEs being solved, indicating that assumptions about the methods' applicability may vary based on these factors.

zoltrix
Messages
85
Reaction score
7
hello

aside from some constraints such as an irregular integration domain, can FDM solve any type of PDE same as FEM ?
 
  • Like
Likes   Reactions: Delta2
Physics news on Phys.org
To avoid any possible confusion here, what do you mean by FDM and FEM?

I’m guessing PDE is for partial differential equations.
 
I think FDM is for Finite Difference Method, and FEM for Finite Element Method. Both methods for numerical solutions to Differential Equations.
 
  • Informative
Likes   Reactions: berkeman
If you work out the discretized (Galerkin) finite element scheme with linear basis functions for say the Laplace equation on a single cell of an equidistant quadrilateral mesh, how does this compare to for example the central difference scheme for the same cell? If you write it out for both methods you will see the differences and similarities. To be complete, you can also write out the resulting finite volume scheme for comparison.

Note that there are many finite element methods and many finite difference schemes. A specific Finite Element Method is limited in the types of equations that can be solved by it, just as a specific Finite Difference Method is limited in the types of equations that can be solved with it.
 
  • Informative
  • Like
Likes   Reactions: jasonRF and Delta2
so, do you mean that it does not exist an universal FDM scheme which fits all types of PDE ?
same as the Runge Kutta method, for example, which is applicable to all types of ODE
is it just a matter of accuracy or some PDE schemes may be unstable for some type of PDE ?
as far as I know all FEM schemes yield results even though some are more accurate or faster than others depending upon the shape of the integration domain
 
zoltrix said:
so, do you mean that it does not exist an universal FDM scheme which fits all types of PDE ?

as far as I know all FEM schemes yield results even though some are more accurate or faster than others depending upon the shape of the integration domain
You are holding FDM to a much higher standard than FEM.

Asking in full generality is probably hindering the response to this question because people are worried about edge cases. Be more specific about what you are concerned about.
 
consider linear equation of second order
a common classification is : elliptic-parabolic-hyperbolic

is FDM suitable for all these types of PDE ?
 
  • Like
Likes   Reactions: Delta2
Yes
 
  • Like
Likes   Reactions: Delta2
Is it also possible to write in c or python a general function :

solver(eqn,a,b,c,d...)

or at least a specific "solver" for each type of PDE's whereas "eqn" is the generic partial linear differential equation of second order and a,b,c,d... its parameters ?
if so , can you suggest a book or a website ?
 
  • #11
Thanks bigfooted

it is exactly what I was looking for
 
  • Like
Likes   Reactions: berkeman
  • #12
It seems to me, to use the FDM in practice, you are going to have to be able to map a smoothly varying grid analytically onto the region of interest (using coordinate transformations, or whatever). FDM is not going to be very useful for very unusually shaped region boundaries, which is why FEM was really developed.
 
  • Like
Likes   Reactions: bigfooted
  • #14
hello

what is the advantage ,if any, of FDM / FEA over Mathematica / Maple to solve partial differential equations ?
 

Similar threads

  • · Replies 36 ·
2
Replies
36
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
8K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K