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.

variable = const after a time t

Please login with a confirmed email address before reporting spam

Hello,

is there a posibility to define a variable in that way that it cant be changed after a time t1.
somehow like this:

"variable = if(t<t1,(T2<273), const)"

after the time t1 the variable should have the value of t1, which was defined by (T2<273)

3 Replies Last Post 26.11.2015, 05:46 GMT-5
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 10.10.2014, 07:27 GMT-4
Hi

if you build your variable (i.e. via a global equation) as a time integration variable, you can set the increment to "0" after a certain time by a boolean equation, else I see only the saturation to a given (and previously known) value as you write it out.

--
Good luck
Ivar
Hi if you build your variable (i.e. via a global equation) as a time integration variable, you can set the increment to "0" after a certain time by a boolean equation, else I see only the saturation to a given (and previously known) value as you write it out. -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 10.10.2014, 08:16 GMT-4
Thanks Ivar for the good idea.

i used
on1=(t<t1)*(T2<T_krit)-on1t (global equation)

and

a = on1/t1 (variable)
if a==1 then i am fine
Thanks Ivar for the good idea. i used on1=(t

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 26.11.2015, 05:46 GMT-5
hello,
i ve again a similar problem.
a variable var should be ve a constant value t1 after the time t1.
but t1 is not known before. it should depend on a variable var2. t1 should be at that time on which var2 is changing its value. (d(var2,t)!=0)
but the problem here is that var2 is changing like a stepfunction.
does anyone ve any idea?
hello, i ve again a similar problem. a variable var should be ve a constant value t1 after the time t1. but t1 is not known before. it should depend on a variable var2. t1 should be at that time on which var2 is changing its value. (d(var2,t)!=0) but the problem here is that var2 is changing like a stepfunction. does anyone ve any idea?

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.