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.

material property setting?

Please login with a confirmed email address before reporting spam

Hi,

I want to customized set the material's property in a 2D model. the material property is a function of position (coordinate-dependent).

e.g.

the conductivity in a 2D model changed through x-direction:

conductivity=f(x), x is the x-coordinate.


How to do that in comsol 4.2?

is there any example in model library?


Thank you very much




4 Replies Last Post 24 févr. 2014, 12:55 UTC−5
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 15 déc. 2011, 15:17 UTC−5
Hi

try it out, take a simple case i.e with a cylinder in 2D-axi, define a material conductivity as "sigma(z)" or for example:

sigma0 + sigma_slope * ( z - z0 ) / ( Ztop - Zbottom )

(since the axis in 2d-axi is along Z this should vary the conductivity along the axis), apply a constant current and check the voltage

here z0 is the starting point for z calculation, Ztop and Zbottom the Z coordinates of the cylinder top and bottom, hence the difference is the cylinder length

I believe this should work like that, I cannot check as I'm not now in front of my COMSOL WS ;)

--
Good luck
Ivar
Hi try it out, take a simple case i.e with a cylinder in 2D-axi, define a material conductivity as "sigma(z)" or for example: sigma0 + sigma_slope * ( z - z0 ) / ( Ztop - Zbottom ) (since the axis in 2d-axi is along Z this should vary the conductivity along the axis), apply a constant current and check the voltage here z0 is the starting point for z calculation, Ztop and Zbottom the Z coordinates of the cylinder top and bottom, hence the difference is the cylinder length I believe this should work like that, I cannot check as I'm not now in front of my COMSOL WS ;) -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 15 déc. 2011, 16:16 UTC−5
It works, Thanks a million!!!
It works, Thanks a million!!!

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17 avr. 2012, 08:02 UTC−4
Hi Ivar.
I want to model a material which its properties are varying according to the spatial coordinates (x, y, z). The material has temperature dependent properties. In COMSOL 4.2 how can I do this task? I am new in COMSOL and I need the detailed comments.
Regards.
Hi Ivar. I want to model a material which its properties are varying according to the spatial coordinates (x, y, z). The material has temperature dependent properties. In COMSOL 4.2 how can I do this task? I am new in COMSOL and I need the detailed comments. Regards.

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 24 févr. 2014, 12:55 UTC−5
Hello,

I have the same problem but I can't fix it by using the same procedure.

I have a 2D rectangle and I want to change the thermal conductivity along the x axis as a function of x.

I changed the predefined thermal conductivity with both expressions: "k(x)" and "k0+k_slope*(x-x0)/(xinitial-xfinal)". when I used the second one I also defined in Model->Definitions k0, k_slope, xinitial and xfinal but it doesn't work.

Am I missing something? Do I have to define anything else?

Thank you very much for your help,

Edoardo
Hello, I have the same problem but I can't fix it by using the same procedure. I have a 2D rectangle and I want to change the thermal conductivity along the x axis as a function of x. I changed the predefined thermal conductivity with both expressions: "k(x)" and "k0+k_slope*(x-x0)/(xinitial-xfinal)". when I used the second one I also defined in Model->Definitions k0, k_slope, xinitial and xfinal but it doesn't work. Am I missing something? Do I have to define anything else? Thank you very much for your help, Edoardo

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.