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.

PIESEWISE FUNCTION AS BOUNDARY CONDITION

Hazidatul Akma Hamlan

Please login with a confirmed email address before reporting spam

How can a funtion be applied in a boundary expression?

I want to apply following step function in my temperature boundary condition:
T= 300+beta+t t<50
T=450 t>=50

How can this be applied?

1 Reply Last Post Mar 25, 2015, 10:41 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 10 years ago Mar 25, 2015, 10:41 a.m. EDT
for example

T= (300+beta+t)*(t<50)+450*( t>=50)

Better is to define a function in the "Definitions" section, piecewise is an option.
I recommend using a smooth step function.

Regards

Jesn
for example T= (300+beta+t)*(t=50) Better is to define a function in the "Definitions" section, piecewise is an option. I recommend using a smooth step function. Regards Jesn

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.