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.

how to define a parameter with multiple variables ?

Please login with a confirmed email address before reporting spam

hi
I met a thorny problem.
I'm modeling a heat transfer model with 2D axisymmetric. Thermal conductivity is a function with temperature and spaces. In the R and Z directions, the thermal conductivity is a linear function. And so with temperature.
I'm looking forward to your response. Thank you.

1 Reply Last Post Apr 2, 2011, 5:23 a.m. EDT
Ruud Borger COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Apr 2, 2011, 5:23 a.m. EDT
Dear Mr. Wang,

You can certainly implement such a parameter. If you click on the arrow next to the material, there will be a subnode called "Basic". If you right-click "Basic", then you get the option to add a function. Since it is a linear function in your case, an analytic function will do. Using an interpolation is also possible of course.

In Arguments, enter names for the arguments, for instance r1 and z1. Likewise, enter the expression, for instance r1*z1. By default, the function is called an1, but I can recommend to give it a different name like 'k', for thermal conductivity.

Then, in the material properties, called your function by entering k(r,z).



Important note: it is only when you call the function in the material property that the arguments will be defined! For instance, if you entered k(T,p) in the material property, then temperature and pressure would be used as arguments. The fact that you named them "r1" and "z1" in the function definitions is just that: names, no meaning (yet).

Hope that helps,

Ruud Börger
COMSOL BV
Dear Mr. Wang, You can certainly implement such a parameter. If you click on the arrow next to the material, there will be a subnode called "Basic". If you right-click "Basic", then you get the option to add a function. Since it is a linear function in your case, an analytic function will do. Using an interpolation is also possible of course. In Arguments, enter names for the arguments, for instance r1 and z1. Likewise, enter the expression, for instance r1*z1. By default, the function is called an1, but I can recommend to give it a different name like 'k', for thermal conductivity. Then, in the material properties, called your function by entering k(r,z). Important note: it is only when you call the function in the material property that the arguments will be defined! For instance, if you entered k(T,p) in the material property, then temperature and pressure would be used as arguments. The fact that you named them "r1" and "z1" in the function definitions is just that: names, no meaning (yet). Hope that helps, Ruud Börger COMSOL BV

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.