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.

Cummulative Sum in Comsol

Please login with a confirmed email address before reporting spam

Is it possible to achieve (within comsol) a cumulative sum of a time varying data.
Can I use SUM in Comsol to implement that ?

Any suggestion will be appreciated !

Best regards,
N. N

2 Replies Last Post 2016年3月14日 GMT-4 10:34
Gunnar Andersson COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2016年3月14日 GMT-4 03:23
Is it possible to achieve (within comsol) a cumulative sum of a time varying data.
Can I use SUM in Comsol to implement that ?


You can achieve this by adding an ODE: Suppose that you want to compute the cumulative sum (integral) of f(t). Then add the ODE d(fsum,t) = f(t). The ODE can be global or distributed.


[QUOTE]Is it possible to achieve (within comsol) a cumulative sum of a time varying data. Can I use SUM in Comsol to implement that ?[/QUOTE] You can achieve this by adding an ODE: Suppose that you want to compute the cumulative sum (integral) of f(t). Then add the ODE d(fsum,t) = f(t). The ODE can be global or distributed.

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 2016年3月14日 GMT-4 10:34
Hi Gunnar,
Thanks a lot for your help !

Best Regards

N.N
Hi Gunnar, Thanks a lot for your help ! Best Regards N.N

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.