Contents:
Function calculates the derivative of smax.
Parent simulation frame
Current time
Current smax to be used if not None
Derivative of smax