[petsc-users] DMForest

Matthew Knepley knepley at gmail.com
Mon Sep 10 11:30:46 CDT 2018


On Mon, Sep 10, 2018 at 12:10 PM Sepideh Kavousi <skavou1 at lsu.edu> wrote:

> Matthew,
>
> It must be definitely because of my limited knowledge but, as an engineer,
> the documentation for DMForest is not clear to me. Does DMforest change the
> mesh of domain dynamically as the system changes?
>
>
> I am studying solidification problem by solving cahn-hillard equation.
> The solid phase starts from a point and it grows in the liquid phase by
> time. Does DMForest dynamically refine mesh at regions close to interface
> and coarse at domain far from the interface ( interface is moving)?
>

DMForest is only able to do what you tell it to do. In the most basic
usage, you can tell it which cells to
refine and which to coarsen. We have a more sophisticated interface which
takes an error approximator
and some limits for coarsening and refining, but that is not fully release
yet. You can see it working in TS ex11.
The documentation for adaptivity is definitely missing. This is because we
are still working out what the best
way to do these things is.

  Thanks,

    Matt


> Thanks,
>
> Sepideh
> ------------------------------
> *From:* Matthew Knepley <knepley at gmail.com>
> *Sent:* Thursday, September 6, 2018 6:46:55 PM
> *To:* Sepideh Kavousi
> *Cc:* PETSc
> *Subject:* Re: [petsc-users] DMForest
>
> On Thu, Sep 6, 2018 at 6:04 PM Sepideh Kavousi <skavou1 at lsu.edu> wrote:
>
> Hello,
>
> I have a Petsc code solving PDE using FD method, and I generated the
> structures grid with DMDA. I was planning to implement adaptive mesh
> refinement to the same structures mesh but the documentation on the
> DMForest is not easy to find. I checked the
> petsc/src/dm/impls/forest/examples/tutorials but I found one tutorial
> which did not have so much information. I also found
> src/ts/examples/tutorials/ex11.c but it was for DMPlex, and finite volume
> method.
>
> I wonder if there is another example for DMForest?
>
>
> TS ex11 works for Plex or Forest.
>
>   Thanks,
>
>      Matt
>
>
> Thanks,
>
>
>
> --
> 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/>
>


-- 
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/20180910/af3655eb/attachment.html>


More information about the petsc-users mailing list