A fully transient model for advanced engine thermal management