All Questions
3 questions
4
votes
2
answers
1k
views
Solving Ax = b with sparse A and sparse b
Let's suppose I'm numerically solving the Poisson equation for a delta function source:
$$ \nabla^2 f(x) = \delta(x-x') $$
I can represent the Laplacian $\nabla^2$ using the finite difference method ...
4
votes
1
answer
4k
views
Iteratively solving 3D Poisson equation in MATLAB
I have written a function that sets up a sparse matrix A and RHS b for the 3D Poisson equation in a relatively efficient way. The set-up is nothing fancy: I have extended the 2D 5-point stencil to an ...
2
votes
1
answer
664
views
Assembling sparse matrix in PETSC for Poisson equation
I am a novice at PETSC, and I have been trying to write an FVM code for steady heat conduction in 2D using PETSC (square, regular grid, Dirichlet boundaries)
Since the large matrix , say A, will be ...