Thank you for your answer, Amrita! That command worked.
I have another question: now once the simulation is done and I want to calculate the expansion results to then grab them using getresult, how can I do it programmatically? Manually I can do it by right-clicking, but I'd like to to it programmatically in a loop.
Thanks again for your help!