i'm having hard time to figure out what is happening in a black body in thermodynamic equilibrium. Let me tell what i know so far: by definition the black body emits and absorb all radiation from and to the environment continuously in a energetic balanced way, i learned that we can model this situation with standing waves: on the surface of the black body the electric field is constantly zero.
1) I visualize a part of the energy as stored in the electromagnetic field inside the black body. Is this energy all the energy of the black body? I think no because if we assume a black body full of gas for example, some energy will be stored in the kynetic and potential energy of the particles.
2) In the classical argument of the Rayleigh-Jeans in HyperPhysics by mean of the equipartition principle each mode will have the same average energy $KT$.Do the modes count as degree of freedom? Why? I think all degree of freedom of the system are only the translation, rotation and vibration of the molecules of the gas (I really don't get this mix of kynetic theory of gas and electromagnetism). If i assume as example of black body a cavity this get more sense to me but still i don't get the whole picture.
3) Are the modes of the standing waves the molecules vibrational modes?If yes, why? How can i visualize that? This would means that all the energy of the black body is stored in thermal energy (translational,rotational,vibrational) and the standing waves are just a way to represent this energy (though i wouldn't get how this account for translational and rotational).
I really don't get the whole picture, the mechanism behind this phenomena.