[ecco-support] Change-of-variable formulas for adjoint sensitivities
Christopher Wolfe
christopher.wolfe at stonybrook.edu
Tue Jul 7 10:43:25 EDT 2020
Hi Matt and Hong:
Thanks for the pointers. I had initially thought something similar: the sensitivities are linear, so you should just be able to do calculus operations on them. On further reflection, though, the units don’t work out. Going back to the wind stress curl example, if the cost function has units C, the sensitivities to wind stress are ∂J/∂τ and have units of C per N m^–2 = C m^2 N^–1. The sensitivities to wind stress curl, w, are ∂J/∂w and should have units of C per N m^–3 = C m^3 N^–1. However, if you just take the curl of the sensitivities, you get units of C m N^–1, which are off by a factor of m^2.
It’s straightforward to work out the transformation rule for the derivative of τ in 1D using finite differences. The sensitivity of J to τ at the ith grid point is
On a N+1 point grid, we can use the chain rule to write the sensitivity to the derivative of the stress at a point j, τ’_j, as
On a C-grid,
from which it follows that
The derivative of τ with respect to τ’ is therefore
and the transformed sensitivity is
This has the correct units, but is effectively an integral of the original sensitivities rather than a derivative. I ran into trouble in 2D because writing the stress in terms of the curl requires solving an elliptic problem and things got a little hairy.
Christopher
> On Jul 6, 2020, at 6:47 PM, Zhang, Hong (US 398K) <hong.zhang at jpl.nasa.gov> wrote:
>
> Hi Chris,
> You might check this paper about transformed gradient:
> https://agupubs.onlinelibrary.wiley.com/doi/full/10.1002/jgrc.20240 <https://agupubs.onlinelibrary.wiley.com/doi/full/10.1002/jgrc.20240>paragraph [26] and figure6, figure7.
> hope it helps
> Hong
> On Jul 7, 2020, at 12:27 AM, Matthew Mazloff <mmazloff at ucsd.edu> wrote:
>
> Ariane V, Bruce C, and I worked this out some time ago (~2013), so the details are blurry. But I am fairly certain that it works out fine to just take the curl of the sensitivity of J to the wind stress. That should give you the sensitivity to the curl. The operation is linear - we should be able to work this out.... Happy to discuss, though like I said, last time I thought about this was ~2013.
>
> Matt
>
>
>> On Jul 6, 2020, at 3:20 PM, Christopher Wolfe <christopher.wolfe at stonybrook.edu <mailto:christopher.wolfe at stonybrook.edu>> wrote:
>>
>> Hi all:
>>
>> Does any know of a simple formula (or reference) for a changing the dependent variables of adjoint sensitivities? For example, suppose you have the sensitivities of a cost function, J, to zonal and meridional wind stress. Is there a straightforward way to use these to calculate the sensitivity of J to the wind stress curl? I figured that there ought to be, but I got buried under a mountain of functional analysis and worried I was overthinking it.
>>
>> Not sure if this is the right forum. If not, I’m happy to ask the wider MITgcm-support list.
>>
>> Thanks in advance for any pointers!
>>
>> Cheers,
>> Christopher
>>
>>
>> ----------------------------------------------------------------------------
>> Christopher L. Pitt Wolfe
>> Associate Professor (Physical Oceanography)
>> School of Marine and Atmospheric Sciences
>> Stony Brook University
>> christopher.wolfe at stonybrook.edu <mailto:christopher.wolfe at stonybrook.edu> 631-632-3152
>> ----------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> ecco-support mailing list
>> ecco-support at mit.edu <mailto:ecco-support at mit.edu>
>> https://urldefense.com/v3/__http://mailman.mit.edu/mailman/listinfo/ecco-support__;!!Mih3wA!RKX18C0_XXsGfewHyTyCwfVfJtluJFVduMGaEw8VdxbnL8NKQZlru_0TFNBRZuFMhw$
>
> _______________________________________________
> ecco-support mailing list
> ecco-support at mit.edu
> http://mailman.mit.edu/mailman/listinfo/ecco-support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0007.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pdd_mathcal_J_ta.pdf
Type: application/pdf
Size: 35793 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0006.pdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0008.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.pdf
Type: application/pdf
Size: 59077 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0007.pdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0009.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.pdf
Type: application/pdf
Size: 57902 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0008.pdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0010.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-3.pdf
Type: application/pdf
Size: 66603 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0009.pdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0011.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-4.pdf
Type: application/pdf
Size: 72906 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0010.pdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0012.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-5.pdf
Type: application/pdf
Size: 65360 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0011.pdf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/ecco-support/attachments/20200707/cb804440/attachment-0013.html
More information about the ecco-support
mailing list