Jump to content
christiankeh

How to use solver step size as a variable within a model?

Recommended Posts

Dear all,

 

what is the best way to use the current solver step size of a model within the model itself for further calculation?

A minimum example would be very much appreciated!
 

Thank you in advance!

Christian

Share this post


Link to post
Share on other sites

For those, who are interested:

I just found the block that I was looking for - SimulatorInfo from the palette Activate\ActivationOperations contains all the necessary information.

 

Best

Christian

Share this post


Link to post
Share on other sites

In palette ActivationOperations component SimulatorInfo.

 

Possible infos are (according to help):

  • step-size: provides last accepted step-size in the simulator.
  • hot-restart: if the solver is [re]started forgetting all past memory about the solution.
  • phase: the phase with which the model is called/evaluated.
  • effective-time-tolerance: the real value of "Time-Tolerance" used by the simulator if it is set to AUTO

Best regards,
Ronald

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×