MD , thermal transport

How to calculate themal conductivity in ionized WSe2? I have prepared a code to find its thermal conductivity but want changes should I have to do it if I assign charges in it?? Or any resources where ionized material is analyzed using MD.