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.

accessing previous time data in time dependent simulation

Please login with a confirmed email address before reporting spam

I am running a time dependent simulation and keeping track of two functions of time call them f1 and f2. I would like to be able to access previous time slices of the function f1 and pass them to f2 in the simulation. In other words at time t2 I need to access the value of the function f(t1) where t1<t2 and use that as an argument to f2 (ie f2(t2)=f2(f1(t1))). Is this possible?

Does anyone know how to do this?

  • JB

1 Reply Last Post Feb 26, 2019, 12:15 p.m. EST
Edgar J. Kaiser Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 5 years ago Feb 26, 2019, 12:15 p.m. EST

John,

yes it is possible. I recommend looking into this blog contribution by Walter Frei: https://www.comsol.de/blogs/using-the-previous-solution-operator-in-transient-modeling/

Good luck Edgar

-------------------
Edgar J. Kaiser
emPhys Physical Technology
www.emphys.com
John, yes it is possible. I recommend looking into this blog contribution by Walter Frei: https://www.comsol.de/blogs/using-the-previous-solution-operator-in-transient-modeling/ Good luck Edgar

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.