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.

How to define recursive functions similar to loops in the components of COMSOL

Please login with a confirmed email address before reporting spam

I want to define a value that changes over time, which requires calling the value of the previous time step. The variable formula is as follows: d(t)=d(t-1)*t+4. At present, I still haven't found a solution, and I hope you can provide guidance. Thanks


2 Replies Last Post 25 giu 2024, 03:55 GMT-4
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 10 months ago 17 giu 2024, 09:16 GMT-4

Check this blog contribution: https://www.comsol.com/blogs/using-the-previous-solution-operator-in-transient-modeling

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
Check this blog contribution: https://www.comsol.com/blogs/using-the-previous-solution-operator-in-transient-modeling

Please login with a confirmed email address before reporting spam

Posted: 10 months ago 25 giu 2024, 03:55 GMT-4

Thank you very much for your help, thank you

Thank you very much for your help, thank you

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.