[petsc-users] Adaptive controllers in TS
Miguel Angel Salazar de Troya
salazardetroya at gmail.com
Sun Oct 19 19:06:16 CDT 2014
Thanks for your response
I'm struggling with this problem because the literature is not clear for me
on how to calculate the discrete adjoint with adaptive time stepping
algorithms. They cover the details when automatic differentiation tools are
used. They mention that because the time step depend on the solution, it
also depends on the parameter. Hence, there are terms that represent the
derivative of the time step w.r.t. the parameters. What it is confusing is
that they mention these terms must be removed. I don't understand this. I'm
planning to hard-code the discrete adjoint problem (and use the TS if
possible).
I know this might not be the place to ask this. Maybe Hong can help me here.
Miguel
On Sun, Oct 19, 2014 at 1:41 PM, Jed Brown <jed at jedbrown.org> wrote:
> Miguel Angel Salazar de Troya <salazardetroya at gmail.com> writes:
>
> > Hi all
> >
> > I'm trying to find out what is the adaptive controller scheme used in the
> > Runge-Kutta time stepping algorithm. Basically I want to know the
> function
> > that determines the next time step. I see that the next time step is set
> > with the function TSAdaptChoose(), which calls the pointer function
> > (*choose)() within the structure _TSAdaptOps, but where is this set?
>
> via TSAdaptSetType. The default will be TSAdaptChoose_Basic
> (adaptbasic.c). You can find this information easily by running in a
> debugger.
>
> > I need to know this for an adjoint analysis to calculate gradients. I was
> > wondering if there is an example of such analysis with the TS structure.
> > I've seen that the RK source file includes a funciton to interpolate the
> > solution, something that is necessary in an adjoint analysis, hence my
> > question about the example.
>
> Interpolation arises for "continuous" adjoints. Be aware that if you
> want consistent gradients, you'll want a discrete adjoint, which
> integrates backward in time using the adjoint RK method. The stages of
> the adjoint RK method coincide with the forward method, so no
> interpolation is needed.
>
> Hong (Cc'd) is developing an example that can integrate discrete adjoint
> equations and we intend to eventually incorporate that functionality
> into the library.
>
--
*Miguel Angel Salazar de Troya*
Graduate Research Assistant
Department of Mechanical Science and Engineering
University of Illinois at Urbana-Champaign
(217) 550-2360
salaza11 at illinois.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141019/e56fabeb/attachment.html>
More information about the petsc-users
mailing list