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:
1 decade ago
Oct 22, 2011, 3:28 a.m. EDT
Hi
if you want a wariable to change with time, you simply write out the equation with the internal variable "t" such as
Q = Qa[W/m^2/s] * t + Q0[W/m^2]
the units might change depending on your model and BC conditions.
If you want to "turn on and/or off" a source at a given time or during a period of time, then define a "step()", or "pulse" operator to add in the "Definition - Function" node and multiply the Qa by this step function, i.e.
Q = Qa[W/m^2] * step(t[1s]) + Q0[W/m^2]
Note the change of units, AND the t[1/s] as operators/functions want that the call variables are unitless, in this case I enforce it to seconds, but min or hours are also possible (check the units symbols in the doc)
To begin with COMSOL you need to read the doc a few times to get used to the notations, it takes some time, but it's fully worth it
--
Good luck
Ivar
Hi
if you want a wariable to change with time, you simply write out the equation with the internal variable "t" such as
Q = Qa[W/m^2/s] * t + Q0[W/m^2]
the units might change depending on your model and BC conditions.
If you want to "turn on and/or off" a source at a given time or during a period of time, then define a "step()", or "pulse" operator to add in the "Definition - Function" node and multiply the Qa by this step function, i.e.
Q = Qa[W/m^2] * step(t[1s]) + Q0[W/m^2]
Note the change of units, AND the t[1/s] as operators/functions want that the call variables are unitless, in this case I enforce it to seconds, but min or hours are also possible (check the units symbols in the doc)
To begin with COMSOL you need to read the doc a few times to get used to the notations, it takes some time, but it's fully worth it
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Oct 22, 2011, 11:20 a.m. EDT
Hi, Ivar
Thank you very much for your reply.
Hi, Ivar
Thank you very much for your reply.