[petsc-users] Unstructured grid info
Matthew Knepley
knepley at gmail.com
Fri Mar 29 10:06:33 CDT 2019
On Fri, Mar 29, 2019 at 10:59 AM Praveen C via petsc-users <
petsc-users at mcs.anl.gov> wrote:
> Dear all
> I have a rather basic query. I want to write a cell-centered code on 2d
> hybrid (tri+quad) unstructured grids. It will be only explicit time
> stepping but I want to use petsc to manage the grid, solutions variables
> and parallelization. Will use gmsh for meshing. Could you tell me where to
> look for some help/tutorials/examples for such an application ?
>
We do not have any examples like this. It will likely involve some
debugging, but not too much.
1) Make sure we can read your GMsh. You want the latest release (coming out
on Monday) or the master branch for this,
since the GMsh reader is greatly improved.
2) If you only want PETSc to layout data and manage parallelism, then all
you have to do is create a PetscSection for
your data layout and call DMSetSection(). Everything else should work,
although as I said we have no tests of hybrid
meshes like this right now.
3) Consider contributing a simple example to ts/examples/tutorials since
then everything would be tested, and it would provide
an easy way for me to run similar problems and fix any bugs you find.
Thanks,
Matt
> Thanks
> praveen
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190329/9f008bbb/attachment.html>
More information about the petsc-users
mailing list