Quantcast
Channel: Solving, solving\ - Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 3988

Define a variable that is dependent on number of timesteps

$
0
0
Hi COMSOL community

I have a time-dependent optimization model which simulation time (not computational time) is dependent on a Stop Condition, i.e. my simulation time differs depending on which parameters the optimization solver changes during the computation .

My question is, if it is possible to use the simulation time in mathematical operations e.g. to define a Variable??

For example, lets say I want to define a Variable as:

A = ht.ndflux_acc_d / "simulation time [s]"


Hope someone can be of help.

Viewing all articles
Browse latest Browse all 3988

Trending Articles



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