[petsc-users] DOF in DMDACreate3d and staggered grid
Jed Brown
jedbrown at mcs.anl.gov
Sat Jun 16 08:24:53 CDT 2012
It depends how you want to solve the problem. I usually group all dofs
together. There is a 2D Stokes+Thermodynamics example in SNES ex30 (or 31?).
On Jun 16, 2012 8:11 AM, "TAY wee-beng" <zonexo at gmail.com> wrote:
> Hi,
>
> I'm abit unclear about dof used in DMDACreate3d. If I have u,v,w for my
> CFD code, does it mean that I should have dof = 3? Or can i create 3
> local/global vector using DMCreateGlobalVector and DMCreateLocalVector to
> define u,v,w?
>
> Does it matter if I'm using staggered grids? Also, if I am only using
> PETSc for u,v,w (and not pressure, which uses HYPRE), does it mean a
> difference?
>
> I remember there 's an example using staggered grid somewhere but I can't
> find it now. May I know which PETSc 's example it is?
>
> Thanks!
>
> --
> Yours sincerely,
>
> TAY wee-beng
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120616/90afbb27/attachment.html>
More information about the petsc-users
mailing list