totalEnergyOfFlowComponent
Compute the energy carried by one flow component.
Declaration
energy = totalEnergyOfFlowComponent(flowComponent)
Parameters
flowComponentcomponent whose coefficient masks select the energy
Returns
energyhorizontally averaged, depth-integrated energy per unit reference density
Discussion
Compute the energy carried by one flow component.
The calculation applies the component’s maskAp, maskAm, and maskA0 to the transform coefficients and sums the corresponding energy factors.
waveEnergy = wvt.totalEnergyOfFlowComponent(wvt.waveComponent);
geostrophicEnergy = wvt.totalEnergyOfFlowComponent(wvt.geostrophicComponent);