Hamiltonian dynamics is a well-known topic within mathematics and physics. Combining this concept with concepts from system and control theory has led to the port-Hamiltonian system class. For systems described by ordinary differential equations this approach is well-studied and has resulted in new control strategies. For systems described by partial differential equations there are several promising approaches, but the theory is much less mature than for ordinary differential equations. In this project we used energy-bases analysis to receive new results for evolution equations with energy conservation and with evolution equations with energy dissipation. In particular, the questions of well-posedness and stability are addressed.