src/csma/examples/csma-multicast.cc
Line 92 and following, I'll cite:
NS_LOG_INFO ("Configure multicasting.");
//
// Now we can configure multicasting. As described above, the multicast
// source is at node zero, which we assigned the IP address of 10.1.1.1
// earlier. We need to define a multicast group to send packets to. This
// can be any multicast address from 224.0.0.0 through 239.255.255.255
// (avoiding the reserved routing protocol addresses).
and then the multicast is set up. It's not user-friendly (i.e., there is no JoinMulticastGroup), but mind that using multicast isn't just joining a group. It is also setting up the multicast routers (and this is the hard part).
At the moment there is no multicast routing protocol (e.g., MLD, PIM) in ns-3.
T.