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
Posted 08.07.2012, 08:09 GMT-4 Modeling Tools & Definitions, Parameters, Variables, & Functions Version 4.2 2 Replies
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
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