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+2 09:55
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 3 months ago 2024年6月17日 GMT+2 15: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: 2 months ago 2024年6月25日 GMT+2 09:55

Thank you very much for your help, thank you

Thank you very much for your help, thank you

Reply

Please read thediscussion forum rulesbefore posting.

Pleaselog into 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 theSupport Centerfor a more comprehensive response from the Technical Support team.

Baidu
map