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.

thermal properties depandent of T°

Please login with a confirmed email address before reporting spam

hi,
i work on COMSOL 3.5a and 3.5 to make a model with heat transfer and i need to introduce thermal properties of material which change with temperature (exp: K(T)), in scalar expression i should enter the equation of K(T) :
K(T)=(6.158*T+4803.6)*(T>=293&T<873)+(-0.306*T^2+624.19*T-300709)*(T>=873&T<1173)+(-1e-4*T^3+0.654*T^2-950.08*T+463551)*(T>=1173&T<1673)

i specify that K takes different values for 293<T<873 , 873<T<1173 , 1173<T<1673
i need your help to check if my expression of K is correct or not


thank's all

3 Replies Last Post 6 avr. 2011, 09:33 UTC−4
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 5 avr. 2011, 01:43 UTC−4
Hi

you have a simple way to check your equation: enter it into a "new function" and plot it out.
When I try I get an error message, remains how to debug it, I would chop it up in segments, check each one by one and then add next segment, you will rapidly find out ;)

I would anyhow propose that you define it as a function of interpolation or piecewise analytical type.

--
Good luck
Ivar
Hi you have a simple way to check your equation: enter it into a "new function" and plot it out. When I try I get an error message, remains how to debug it, I would chop it up in segments, check each one by one and then add next segment, you will rapidly find out ;) I would anyhow propose that you define it as a function of interpolation or piecewise analytical type. -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 5 avr. 2011, 05:09 UTC−4
hi,
thank's for your help, i tried what told me but no way it diverge. When i put equation (+) another equation and put the temperature condition , Comsol add the equations or it separate them according to temperature ?????
hi, thank's for your help, i tried what told me but no way it diverge. When i put equation (+) another equation and put the temperature condition , Comsol add the equations or it separate them according to temperature ?????

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 6 avr. 2011, 09:33 UTC−4
Hi

I believe its because you need to write && and not &

I get the following for:

(6.158*T+4803.6)*(T>=293&&T<873)+(-0.306*T^2+624.19*T-300709)*(T>=873&&T<1173)+(-1e-4*T^3+0.654*T^2-950.08*T+463551)*(T>=1173&&T<1673)



--
Good luck
Ivar
Hi I believe its because you need to write && and not & I get the following for: (6.158*T+4803.6)*(T>=293&&T=873&&T=1173&&T

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.