storage and loss modulus

Dear Lammps Users,
I am computing viscosity using box deformation method and would like to calculate storage and loss modulus. Is there someone who has done it before and would like to share his insights on how one can compute these properties??

I have been through the mailing list and yet I have not been able to find something concrete. Would it be possible for someone to share an example command set??

Thanking you all

Best regards
Raghav