Sorry if this has already been asked. I did try and search for this but couldn't find anything which is strange because it seems like a really obvious problem.
I have a working model of a thermal system, and a formula which depends on the average temperature of a certain component. I have defined a piecewise function (in Component 1) for this and would like to automatically apply this function to the temperature result in a results node table. If I "create plot" then COMSOL places a result node which plots the function and shows me that it exists as comp1.sr_vp as in this image. But if I try and apply this function to a result I get the error
Evaluation of result expression failed. Unknown function or operator. - Name: comp1.sr_vp
And the function is not visible in the list of functions defined under Component 1 in the "replace" menu.
I must be missing something obvious here but I don't know what. Any help is appreciated.