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

How evaluate time when a variable assumes a given value

$
0
0
Hi,

It is known that the function "at" evaluates a function for a specific time value. Ex: at(1.5s, u). However, I'm looking for a way to get the instant of time (tx) when a variable (Var) (such as current density) takes an x value, during the simulation running.

I need to known this time "ti" to star another process during the simulation run.

More specifically, the problem is:
During the simulation, when J = const1 then time "ti" starts counting (from zero) for the expression rho = const2.* exp (ti / const3). Where Jc, const1 and const2 are constant. The simulation is NOT restarted. Only time variable (or watch) "ti" starts to be counted when the event J = const1 occurs.

Regards,

Viewing all articles
Browse latest Browse all 3988

Trending Articles



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