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 2024年6月25日 GMT-4 03:55
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 5 months ago 2024年6月17日 GMT-4 09:16

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: 5 months ago 2024年6月25日 GMT-4 03:55

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.