plotEnergyOverTime
Plot energy for each reservoir over time.
Declaration
fig = plotEnergyOverTime(self,options)
Parameters
selfWVDiagnostics objectenergyReservoirs(optional) vector of EnergyReservoir objects (default: [geostrophic, wave, total]) (default: [EnergyReservoir.geostrophic_mda, EnergyReservoir.wave, EnergyReservoir.total])shouldIncludeExactTotalEnergy(optional) include exact total energy (default: true)timeIndices(optional) indices specifying which time indices to use (default: Inf)visible(optional) figure visibility (default: “on”)
Returns
fighandle to the generated figure
Discussion
Plots the energy in each specified reservoir as a function of time.