This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Hello, please I need to know how can I implement a finite difference scheme in a fenics program

–2 votes

If i have the second derevative per respect to time of u equal to
[u(n-1)-2u(n)+u(n+1)]/dt^2

how can I implement this in fenics if Ineed to solve the elastodynamic equation?

Thank you

asked May 31, 2017 by halarammouz FEniCS Novice (170 points)

1 Answer

0 votes

Hi, FEniCS is finite element, not finite difference solver.

But anyway, you can get some equivalent of finite differences using a proper discontinuous galerkin method. But it is not a question to be discussed here.

answered May 31, 2017 by mhabera FEniCS User (1,890 points)

How do you get an equivalent FD and FEM system using DG?

...