System variable related with nstep

In the mainfile, we can set
tEnd = 10;
nStep = 100;

In the model, we can access t as a system variable,
But if I wanna access the current step number(e.g. I want to apply a force changing with the step), how?

Hi,

In the AnyBodyStudy class, there is a property ‘iStep’ which represents the current step.

Best regards,
Moonki

P.S) Please update your profile(organization, lab name, professor name) to let us know where your are. Thanks for your understanding.

Thank you very much. I will update my information as soon as possible