How to calculate the electrical conductivity of polymer?

Does any perl script can finish this task? I want to calculate the electrical conductivity of my polymer box constructed by AC module and forcite module after molecular dynamical procedure?