QG Regularization (Math)

tags: interpolation

In this note, we will construct a QG regularization on sea surface height by using the QG PDE which relates SSH to potential vortity and the stream function. We will convert all variables within the QG PDE to SSH.


Edits

I document some mistakes I made from the derivation as pointed out by me or others

4-09-2022

  • FIXED: Redouane: I made a sign error for the PV in terms of the stream function
    • Wrong:
      q=2ψ+c2ψ
      Correction:
      q=2ψc2ψ
  • FIXED: Redouane: I made an error with one of the constants
    • Wrong:
      c1=f/g
      Correction:
      c1=g/f
    • Wrong:
      c3=f/gLr2
      Correction:
      c3=g/fLr2
  • FIXED: Redouane: The the
    det\boldsymbolJ(u,u)=0
    , duh
    • det\boldsymbolJ(u,u)=xuyuyuxu=0

22-09-2022

  • FIXED: Emmanuel C.: I made another sign error when factoring out the constant,
    c1
    , which resulted in a wrong final term:
    • Wrong:
      t2u\colorred+c2tu+c1det\boldsymbolJ(u,2u)=0
    • Corrected:
      t2u\colorgreenc2tu+c1det\boldsymbolJ(u,2u)=0

Function

The learned function,

\boldsymbolfθ, will map the spatial coordinates,
xϕRDϕ
, and time coordinate,
tR
, to sea surface height,
uR
.

u=\boldsymbolfθ(xϕ,t)


Loss

The standard loss term is data-driven

Ldata=MSE(u,u^)=1Nn=1N(u\boldsymbolfϕ(xϕ,t))2

However, there is no penalization to make the field behave the way we would expect. We also want a regularization which makes the field,

u, behave how we would expect. This can be achieved by adding a physics-informed loss regularization term to the total loss.

L=Ldata+λLphy

This loss term can be minimized by effectively minimizing a PDE function. For example:

\boldsymbolfphy(x,t):=tu(x,t)+N[u(x,t)]=0

where

t is the derivative of the field,
u
, wrt to time and
N[]
are some partial differential equations. We are interested in minimizing the full PDE, which we denote
\boldsymbolfphy
, st it is 0. So the standard loss function applies.

Lphy=1Nn=1N(\boldsymbolfphy(x,t))2

The PDE for this method will be the quasi-geostrophic (QG) equation which the potential vorticity and a stream function. In the following section, we will show how this equation can be modified to act as a physics-informed regularization term on the loss function.


QG Equation

We have the following PDE for the QG dynamics:

tq+detJ(ψ,q)=0

where

q(x,t)R2×RR is the potential vorticity (PV),
ψ(x,t)R2×RR
is the stream function,
t
is the partial derivative wrt
t
,
\boldsymbolJ
, is the Jacobian operator and
det\boldsymbolJ(,)
is the determinant of the Jacobian.

Objective: We want to convert this PDE in terms of sea surface height (SSH) instead of PV and the stream function.


QG Equation 4 SSH (TLDR)

Note: For the ease of notation, let's denote

u as the SSH. The above PDE can be written in terms of
u

c2tut2uc1det\boldsymbolJ(u,2u)=0

where

c1=gf and
c2=1LR2
.


Derivation

Stream Function

Let's define the relationship between the SSH,

u, and the stream function
ψ
.

ψ=gfu=c1u

where

c1=gf. If we plug in the SSH into the PDE, we get:

tq+detJ(c1u,q)=0

To simplify the notation, we will factor out the constant,

c1, from the determinant Jacobian term.

tq+c1detJ(u,q)=0


Proof: Constants and determinant Jacobians

detJ(c1u,q)=xc1uyqyc1uxqdetJ(c1u,q)=c1xuyqc1yuxqc1detJ(u,q)=c1(xuyqyuxq)

Note: we used the property that

(cf)=cf.

QED.


Potential Vorticity

Now, let's define the relationship between the stream function and the PV. This is given by:

q=2ψ1LR2ψ=2ψc2ψ

where

2 is the Laplacian operator and
c2=1LR2
. If we plug in SSH,
u
, into the stream function, as defined above, we get:

q=2(c1u)c2(c1u)=c12uc3u

where

c3=c1c2=gfLR2. We can plug in the PV,
q
, into the PDE in terms of SSH,
u
.

t(c12uc3u)+c1detJ(u,c12uc3u)=0


Now, we can expand this equation but first let's break this up into two terms:

t(c12uc3u)Term I+c1detJ(u,c12uc3u)Term II=0

Now we will tackle both of these terms one at a time.


Term I

So term I is:

f1:=t(c12uc3u)

We can expand this via the partial derivative,

t.

f1:=c1t2uc3tu

So plugging this back into the PDE gives us:

c1t2u+c3tu+c1detJ(u,c12uc3u)Term II=0


Term II

We can factorize this determinant Jacobian term.

c1detJ(u,c12uc3u)=c1det\boldsymbolJ(u,c12u)det\boldsymbolJ(c1u,c3u)

And furthermore, we can factor out the constants

c1detJ(u,c12uc3u)=c12det\boldsymbolJ(u,2u)c1c3det\boldsymbolJ(u,u)

And lastly, we can remove the final term because the determinant Jacobian of the same function is zero. So we have:

c1detJ(u,c12uc3u)=c12det\boldsymbolJ(u,2u)


Proof: Determinant Jacobian Expansion

det\boldsymbolJ(u,u)=xuyuyuxu=xuyuxuyu=0

QED.


Proof: Determinant Jacobian Expansion

So term II is:

f2:=detJ(c1u,c12uc3u)

We know the definition of the determinant of the Jacobian for a vector-valued function,

\boldsymbolf=[f1(x,y),f2(x,y)]:R2R2, as there is an identity.

detJ(f1(x,y),f2(x,y))=xf1yf2yf1xf2

If use this identity with term II, we get:

detJ(c1u,c12uc3u)=x(c1u)y(c12uc3u)y(c1u)x(c12uc3u)

Again, let's split this up into two subterms and tackle them one-by-one.

detJ(c1u,c12uc3u)=x(c1u)y(c12uc3u)Term IIay(c1u)x(c12uc3u)Term IIa


Term IIa

We have the following term for Term IIa:

f2a:=x(c1u)y(c12uc3u)

We can expand the terms to get the following:

f2a:=x(c1u)y2(c1u)x(c1u)y(c3u)

And we can simplify, by factoring out constants, to get:

f2a:=c12xuy2uc1c3xuyu


Term IIb

f2b:=y(c1u)x(c12uc3u)

We can expand the terms to get the following:

f2b:=c12yux2uc1c3yuxu


Combined (Term IIa, IIb)

We can substitute all of these two terms into our original expression

detJ(c1u,c12u+c3u)==f2af2b=(c12xuy2uc1c3xuyu)(c12yux2uc1c3yuxu)=c12xuy2uc1c3xuyuc12yux2u+c1c3yuxu

If we group the terms by operators,

,2, then we get:

detJ(c1u,c12uc3u)=c12xuy2uc12yux2u2c1c3xuyuc1c3yuxu

So each of these terms are determinant Jacobian terms,

det\boldsymbolJ.

detJ(c1u,c12uc3u)=c12det\boldsymbolJ(u,2u)c1c3det\boldsymbolJ(u,u)

We have the final form for our PDE in terms of SSH,

u, which combines terms I and II.

Finally, we can see that the final term is zero because it's the determinant Jacobian of itself. So we are left with:

detJ(c1u,c12uc3u)=c12det\boldsymbolJ(u,2u)

QED.


Final Form

So we have the final form for our PDE in terms of SSH.

c1t2uc3tu+c12det\boldsymbolJ(u,2u)=0

We will factor out a constant term

t2uc2tu+c1det\boldsymbolJ(u,2u)=0

I will multiply everything by a negative 1 so that we have a PDE of the form:

tu+N()=0 This give us:

c2tut2uc1det\boldsymbolJ(u,2u)=0