In its first part, this article develops a variational formulation for the incompressible Euler system in fluid mechanics. The results are based on standard tools of calculus of variations and constrained optimization. In a second step, we present a variational formulation for a compressible Euler system in fluid mechanics assuming an approximately constant scalar field of temperature. In the subsequent sections we also present a variational formulation for a relativistic fluid motion. Finally, in the last sections, we develop a duality principle applied to a Ginzburg-Landau type equation.