filterEnergyForSourcesSinksReservoirs
This function returns values assuming three reservoirs: geo, wave, and.
Declaration
[sources, sinks, inertial_tx, inertial_cascade, ddt, energy] = filterEnergyForSourcesSinksReservoirs(self,options)
Parameters
selfWVDiagnostics objectcustomNames(optional) input argumentcustomNames(default: configureDictionary(“string”,”string”))fluxTolerance(optional) input argumentfluxTolerance(default: 1e-2)timeIndices(optional) indices specifying which time indices to use (default: Inf)shouldShowReservoirEnergy(optional) energy or enstrophy reservoir selection (default: true)shouldShowExactValues(optional) input argumentshouldShowExactValues(default: true)shouldSeparateClosureRegion(optional) input argumentshouldSeparateClosureRegion(default: true)
Returns
sourcesoutput valuesourcessinksoutput valuesinksinertial_txoutput valueinertial_txinertial_cascadeoutput valueinertial_cascadeddtoutput valueddtenergydiagnosed energy as a function of time and/or scale
Discussion
This function can probably be deprecated after we modernize to the fluxesForReservoirGroup
This function returns values assuming three reservoirs: geo, wave, and damping. The damping resevoir is just scales below a threshold, wave or geostrophic. It also returns the exact and exact-damp resevoirs. The forcing struct has the the forcing on the three/two different reservoirs The inertial struct has the flux from the two reservoirs (wave geostrophic) to each other and to the damping region. The forcing struct also include the nonlinear advection, which has the flux to the damping region. The ddt struct contains the change in total energy, closing the energy budget.