You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there may be a missing 1 / sum(params.H) factor in the potential energies part of MultiLayerQG.energies.
This is because in the n-layer case, multiplying the PV equations by $\psi_n H_n/H$ (with $H = \Sigma H_n$) and adding them together to form the energy equation gives potential energy terms that look like
I think there may be a missing
1 / sum(params.H)
factor in the potential energies part ofMultiLayerQG.energies
.This is because in the n-layer case, multiplying the PV equations by$\psi_n H_n/H$ (with $H = \Sigma H_n$ ) and adding them together to form the energy equation gives potential energy terms that look like
The total energy is nearly conserved as expected in two-layer decaying turbulence simulations if the
1 / sum(params.H)
is added.Does this check? If so, I can open a pull request.
The text was updated successfully, but these errors were encountered: