All Questions
Tagged with c finite-difference
6 questions
2
votes
1
answer
450
views
Solving nonlinear PDE with finite difference based on Newton-Krylov
I am now working on solving MHD equations with finite difference method, which include nonlinear equations:
$$
\frac{\partial\rho}{\partial t}+\nabla\cdot\left[\left(\rho_0+\rho\right){v}\right]-\...
1
vote
1
answer
967
views
Jacobi iteration for finite difference: when to stop?
I implemented a finite difference scheme to solve Poisson's equation in a 2D grid in C. I solve the system by using Jacobi iteration. Everything works fine until I use a while loop to check whether it ...
0
votes
2
answers
312
views
CHOLMOD implementation
I am working on a domain decomposition code in C that uses CHOLMOD to approximate grid values for a PDE in each sub-domain. The issue I have is that the methods use Matrix Market format, which is not ...
4
votes
1
answer
4k
views
Free open source C/C++ library to solve 2d Poisson equation using the finite difference method
I have been writing some code in C for particle-in-cell simulation.
One of the steps of the PIC algorithm requires to solve (numerically) Poisson's equation
$$
\Delta \varphi = - 4 \pi \rho.
$$
...
4
votes
2
answers
4k
views
Developing finite volume (FVM) code in C . General advice
I need to develop a FVM code in C (The multiscale FVM method for heterogeneous media). I know that:
Only uniform rectangular grids will be considered (2d now, later 3d)
Sparse systems will be large
...
3
votes
3
answers
627
views
How to obtain finite difference, which is continuous
I want to calculate a finite difference (something like this SO Post). My data is as follows: I have x-values that are powers of two (4, 8, 16, 32 and 64). Corresponding to them are y-values, such ...