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 Jun 25, 2024, 3:55 a.m. EDT
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 5 months ago Jun 17, 2024, 9:16 a.m. EDT

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: 4 months ago Jun 25, 2024, 3:55 a.m. EDT

Thank you very much for your help, thank you

Thank you very much for your help, thank you

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.