Applying hydrodynamic constraints to coupled energy budget analysis and to physics-informed machine learning based forecasting