  Electric and magnetic current densities are an essential part of
electromagnetic theory. The goal of the present paper is to define and
investigate stored energies that are valid for structures that can support both
electric and magnetic current densities. Stored energies normalized with the
dissipated power give us the Q factor, or antenna Q, for the structure. Lower
bounds of the Q factor provide information about the available bandwidth for
passive antennas that can be realized in the structure. The definition that we
propose is valid beyond the leading order small antenna limit. Our starting
point is the energy density with subtracted far-field form which we obtain an
explicit and numerically attractive current density representation. This
representation gives us the insight to propose a coordinate independent stored
energy. Furthermore, we find here that lower bounds on antenna Q for structures
with e.g. electric dipole radiation can be formulated as convex optimization
problems. We determine lower bounds on both open and closed surfaces that
support electric and magnetic current densities.
  The here derived representation of stored energies has in its electrical
small limit an associated Q factor that agrees with known small antenna bounds.
These stored energies have similarities to earlier efforts to define stored
energies. However, one of the advantages with this method is the above
mentioned formulation as convex optimization problems, which makes it easy to
predict lower bounds for antennas of arbitrary shapes. The present formulation
also gives us insight into the components that contribute to Chu's lower bound
for spherical shapes. We utilize scalar and vector potentials to obtain a
compact direct derivation of these stored energies. Examples and comparisons
end the paper.
