<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Sep 10, 2018 at 12:10 PM Sepideh Kavousi <<a href="mailto:skavou1@lsu.edu">skavou1@lsu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_4597558103991811404divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<div id="m_4597558103991811404divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Matthew,</p>
<p style="margin-top:0;margin-bottom:0">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?
<br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">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)?</p></div></div></div></blockquote><div><br></div><div>DMForest is only able to do what you tell it to do. In the most basic usage, you can tell it which cells to</div><div>refine and which to coarsen. We have a more sophisticated interface which takes an error approximator</div><div>and some limits for coarsening and refining, but that is not fully release yet. You can see it working in TS ex11.</div><div>The documentation for adaptivity is definitely missing. This is because we are still working out what the best</div><div>way to do these things is.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_4597558103991811404divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr"><div id="m_4597558103991811404divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Thanks,</p>
<p style="margin-top:0;margin-bottom:0">Sepideh<br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_4597558103991811404divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Matthew Knepley <<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>><br>
<b>Sent:</b> Thursday, September 6, 2018 6:46:55 PM<br>
<b>To:</b> Sepideh Kavousi<br>
<b>Cc:</b> PETSc<br>
<b>Subject:</b> Re: [petsc-users] DMForest</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="m_4597558103991811404x_gmail_quote">
<div dir="ltr">On Thu, Sep 6, 2018 at 6:04 PM Sepideh Kavousi <<a href="mailto:skavou1@lsu.edu" id="m_4597558103991811404LPlnk804956" class="m_4597558103991811404OWAAutoLink" target="_blank">skavou1@lsu.edu</a>> wrote:<br>
</div>
<blockquote class="m_4597558103991811404x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_4597558103991811404x_m_5925412994003425249divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Hello,</p>
<p style="margin-top:0;margin-bottom:0">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 <span>petsc/src/dm/impls/forest/examples/tutorials</span> but I found one tutorial which did not have so much information. I also found
<span>src/ts/examples/tutorials/ex11.c</span> but it was for DMPlex, and finite volume method.
<br>
</p>
<p style="margin-top:0;margin-bottom:0">I wonder if there is another example for DMForest?
<br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>TS ex11 works for Plex or Forest.</div>
<div><br>
</div>
<div> Thanks,</div>
<div><br>
</div>
<div> Matt</div>
<div> </div>
<blockquote class="m_4597558103991811404x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_4597558103991811404x_m_5925412994003425249divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Thanks,<br>
</p>
</div>
</div>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="m_4597558103991811404x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener</div>
<div><br>
</div>
<div><a href="http://www.cse.buffalo.edu/~knepley/" id="m_4597558103991811404LPlnk803265" class="m_4597558103991811404OWAAutoLink" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>