The Hamiltonian density is the continuous analogue for fields; it is a function of the fields, the conjugate "momentum" fields, and possibly the space and time coordinates themselves. For one scalar field φ (x, t), the Hamiltonian density is defined from the Lagrangian density by