energyFluxFromNonlinearFlux
converts nonlinear flux into energy flux
Declaration
[Ep,Em,E0] = energyFluxFromNonlinearFlux(Fp,Fm,F0,options)
Parameters
Fpnonlinear flux into the Ap coefficientsFmnonlinear flux into the Am coefficientsF0nonlinear flux into the A0 coefficientsdeltaT(optional) include the deltaT term in the Euler time step
Returns
Epenergy flux into the Ap coefficientsEmenergy flux into the Am coefficientsE0energy 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.