Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Counter variable

$
0
0

Hello,

I would like to create a variable that accumulates or counts the number of times a condition is satisfied. I need the cumulative value as it will also retro-feed the simulation. In other words, Every certain number of times it will change a parameter. Something like:

a = a + if(dl.Hp>5,1,0).

Is this possible in COMSOL ?


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>