nonlinearFluxWithGradientMasks
returns the flux of each coefficient as determined by the nonlinear flux operation
Declaration
[Fp,Fm,F0] = nonlinearFluxWithGradientMasks(ApmUMask,A0UMask,ApmUxMask,A0UxMask)
Parameters
ApmUMaskmask for the wave portion of \(\vec{u}\) in \(\vec{u} \cdot \nabla \vec{u}\)A0UMaskmask for the geostrophic portion of \(\vec{u}\) in \(\vec{u} \cdot \nabla \vec{u}\)ApmUxMaskmask for the wave portion of \(\nabla \vec{u}\) in \(\vec{u} \cdot \nabla \vec{u}\)A0UxMaskmask for the geostrophic portion of \(\nabla \vec{u}\) in \(\vec{u} \cdot \nabla \vec{u}\)
Returns
Fpflux into the Ap coefficientsFmflux into the Am coefficientsF0flux into the A0 coefficients
Discussion
The masks are applied to the coefficients Ap,Am,A0 before computing the nonlinear flux, \(\vec{u} \cdot \nabla \vec{u}\). This function offers more fine-grained control than -nonlinearFluxWithMask.
The nonlinear flux used is the unforced, invicid equations.