To view the realtime operation and 3D view of the sensor nodes and packet flow within the wirless network Omnet++ or Qualnet are the best tool but these are licensed one. for simple simulation like calculating QoS and measering the performance of WSN the NS-2 or NS-3 is preferable one.
You can start by using Castalia and OMNET++ when clustering is considered. For example, nodes belong to each cluster in LEACH use RSSI to select the best cluster head.