Combining ODE with a IF function
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Combining ODE with a IF function
Dear all,
May I ask if anyone knows how to combine this 'if' function with these differential equations? k3 is a spring where the stiffness depends on the position of mass 3. In the attachment, I managed to achieve this in Python, but I didn't manage to do this in Mathcad.
Could someone help me so that I know for next time?"
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
Mathcad Usage
-
Mechanical_Engineering
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Dear Werner_E
Thank you it worked perfectly and I have only one remaining question. If I want to add the damping coefficient as add on in a function depending on speed it won't allow me to do this. It is not required for now but if i want to add this how do you handle this?
Thank you in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
c3 and k3 are now functions dependent on the current value of x3(t).
So you must change every occurrence of c3 to c3(x3(t)) and the same for k3