[petsc-users] DMDA with cell-centered finite volume method?

2012-01-17 Thread Klaij, Christiaan
> > Is it possible to use DMDAs in the context of a cell-centered > > finite volume method? For example, a 2D grid with 9-by-9 grid > > points would have 8-by-8 unknowns, located in the cell > > centers. After reading the documentation, I got the impression > > that the unknowns must be situated a

[petsc-users] DMDA with cell-centered finite volume method?

2012-01-17 Thread Jed Brown
On Tue, Jan 17, 2012 at 02:04, Klaij, Christiaan wrote: > Thanks Jed, but how would I store the grid point coordinates? The grid > could > be non-uniform (stretching, deforming) so I still need a 9-by-9 DM to store > the grid point coordinates, right? > If you want to store coordinates that way,

[petsc-users] DMDA with cell-centered finite volume method?

2012-01-16 Thread Klaij, Christiaan
Is it possible to use DMDAs in the context of a cell-centered finite volume method? For example, a 2D grid with 9-by-9 grid points would have 8-by-8 unknowns, located in the cell centers. After reading the documentation, I got the impression that the unknowns must be situated at the grid points, o

[petsc-users] DMDA with cell-centered finite volume method?

2012-01-16 Thread Jed Brown
On Mon, Jan 16, 2012 at 02:16, Klaij, Christiaan wrote: > Is it possible to use DMDAs in the context of a cell-centered > finite volume method? For example, a 2D grid with 9-by-9 grid > points would have 8-by-8 unknowns, located in the cell > centers. After reading the documentation, I got the i