The hamilton-type principle in fluid dynamics : fundamentals and applications to magnetohydrodynamics, thermodynamics, and astrophysics - Fierros Palacios, Angel