Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Piecewise function
Posted 19 juil. 2012, 12:23 UTC−4 Version 3.5a, Version 4.2a 2 Replies
Please login with a confirmed email address before reporting spam
Hi, Forum,
I tried two ways for specifying time varying mass flux boundary condition and got different results.
In the first way, I specify it directly as
6000*(t>=0[d]&&t<50[d])+4000*(t>=50[d] && t<75[d])
In the second way, I specify it using a piecewise function func
Start End Function
0 50 6000
50 75 4000
and then use func(t]1/d]) in the mass flux text field.
I wonder if someone has encountered this problem before.
Thanks.
I tried two ways for specifying time varying mass flux boundary condition and got different results.
In the first way, I specify it directly as
6000*(t>=0[d]&&t<50[d])+4000*(t>=50[d] && t<75[d])
In the second way, I specify it using a piecewise function func
Start End Function
0 50 6000
50 75 4000
and then use func(t]1/d]) in the mass flux text field.
I wonder if someone has encountered this problem before.
Thanks.
2 Replies Last Post 20 avr. 2014, 10:54 UTC−4