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.

define a piecewise function (z) with a variable limit (t)

Please login with a confirmed email address before reporting spam

Hi,

If I want to run a time dependent study and the boundary condition is a function of both space dimension and time, as following:
F=z if 0<z<1*t
F=1*t if 1*t<z
how do I make it? Thanks.

Jinfu Xiao

1 Reply Last Post 21.01.2014, 09:41 GMT-5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 21.01.2014, 09:41 GMT-5
Hello,

You try

if(z<0, F=0, (if(z<1*t),F=z,F=1*t))

Best regards

Julien
Hello, You try if(z

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.