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.

Conductivity as a function of coordinates

Please login with a confirmed email address before reporting spam

Hi everyone,
I want to define the conductivity in such a way that it be A along a line and B everywhere else. If I import an image of the line and set conductivity (m + n*im1(x,y)) it works perfectly well. Now, I am looking for a similar performance using a built-in function. For example, if I use analytic function of an1 = x and define conductivity as an1(x), conductivity follows this pattern everywhere not only along a line. So, I tried if(y==x, an1(x), m, n). This method works only if the mesh size be extremely fine.
Any suggestion? I would be grateful if you could advise me.
Thank you,
Gita

2 Replies Last Post 10.07.2012, 13:29 GMT-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 10.07.2012, 03:42 GMT-4
Hi

can you try to sort it out in COMSOl nomenclature way, it would help for us to understand.
First are you in 2D or 3D ?
and when you say a "line" is this along a boundary in 2D = geometrically a line, or a line of a boundary in 3D ?

When you enter a variable (i.e.V) in a BC entry it expects normally a field (V(x,y,z,t)) mapping the selected entities

--
Good luck
Ivar
Hi can you try to sort it out in COMSOl nomenclature way, it would help for us to understand. First are you in 2D or 3D ? and when you say a "line" is this along a boundary in 2D = geometrically a line, or a line of a boundary in 3D ? When you enter a variable (i.e.V) in a BC entry it expects normally a field (V(x,y,z,t)) mapping the selected entities -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 10.07.2012, 13:29 GMT-4
Hi Ivar,

Thank you for your reply.

I am in 3D. It might be easier if you to look at one of COMSOL's examples: hot_circuit.mph. In this example, an image was used to define the thermal conductivity. How can I make this pattern for the thermal conductivity using functions? I do not want to import an image of the patch but define it by a series of functions and then determine the conductivity on the basis of the previously define functions. Does it make sense?

Thank you in advance for your help,
Gita
Hi Ivar, Thank you for your reply. I am in 3D. It might be easier if you to look at one of COMSOL's examples: hot_circuit.mph. In this example, an image was used to define the thermal conductivity. How can I make this pattern for the thermal conductivity using functions? I do not want to import an image of the patch but define it by a series of functions and then determine the conductivity on the basis of the previously define functions. Does it make sense? Thank you in advance for your help, Gita

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.