Entropy optimized dissipative flow of effective Prandtl number with melting heat transport and Joule heating