Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Step function that switches at derivative value
Posted 31.08.2022, 20:21 GMT-4 Modeling Tools & Definitions 1 Reply
Please login with a confirmed email address before reporting spam
Hi,
I am trying to define a step function for a parameter that changes when the time derivative of a variable changes (rather than at time = 0 or the usual use of step function). It only changes for one domain of the geometry. All other regions have a constant value of the parameter, e.
Here is the step function for the region:
e = { 0.06 if Vm' >= 0; 0.3 if Vm' <0}
So it will act like an On/Off switch basically as the value of Vm changes with the course of time.