energyFluxFromNonlinearFlux
converts nonlinear flux into energy flux
Declaration
[Ep,Em,E0] = energyFluxFromNonlinearFlux(Fp,Fm,F0,options)
Parameters
Fp
nonlinear flux into the Ap coefficientsFm
nonlinear flux into the Am coefficientsF0
nonlinear flux into the A0 coefficientsdeltaT
(optional) include the deltaT term in the Euler time step
Returns
Ep
energy flux into the Ap coefficientsEm
energy flux into the Am coefficientsE0
energy flux into the A0 coefficients
Discussion
Multiplies the nonlinear flux (Fp,Fm,F0) by the appropriate coefficients to convert into an energy flux.
Optional parameter deltaT added by Bailey Avila: This equation is C17 in the manuscript, but with addition of 1st term on LHS of C16 converted to energy using Apm_TE_factor or A0_TE_factor This differs from energyFlux due to the importance of the 2FF*deltaT in equation C16 at the initial condition.