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.

Function for initial values

Please login with a confirmed email address before reporting spam

Hi everyone,

I was trying to define a function for my initial values but it doesn't work. I created a analytical function called an1 under Component1 -> Definitions. Then i wanted to use this function for my initial values in heat transfer.
I typed in '293.15[K] + an1'. Now it's displayed yellow and says 'unknown variable an1'.

Does anyone know how to deal with that?

I appreciate your help

Max


1 Reply Last Post 12 ago 2014, 06:52 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 12 ago 2014, 06:52 GMT-4
I figured it out by myself :-)

You have to add the variable of which your function depends on, such that 'an1(z)'.
I figured it out by myself :-) You have to add the variable of which your function depends on, such that 'an1(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.