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.
Manually assigning "from material"
Posted Jan 29, 2011, 7:52 p.m. EST Materials Version 4.1 1 Reply
Please login with a confirmed email address before reporting spam
I am trying to solve the Helmholtz equation. One parameter it has is the absorption coefficient "a", which I would like to be material dependent (this is the inhomogeneous Helmholtz equation). Specifically, it should be dependent on epsilonr, the relative permittivity.
I am not lucky enough to have a pull down menu that says "from material" in this case. I looked into the equations of some modules and saw that you could do something like "mat.epsilonr". When I try it, it doesn't work.
I know how to access material properties via "mod1.mat1.def.epsilonr11", but I need it to be geometry dependent.
Previously, I got away with the rather inelegant boolean expression "if(dom==1,epsilonr=1,epsilonr=8-8*i)". This at least works, but not for boundaries with different materials.
Please let me know if you have any ideas on how to do this.
I am not lucky enough to have a pull down menu that says "from material" in this case. I looked into the equations of some modules and saw that you could do something like "mat.epsilonr". When I try it, it doesn't work.
I know how to access material properties via "mod1.mat1.def.epsilonr11", but I need it to be geometry dependent.
Previously, I got away with the rather inelegant boolean expression "if(dom==1,epsilonr=1,epsilonr=8-8*i)". This at least works, but not for boundaries with different materials.
Please let me know if you have any ideas on how to do this.
1 Reply Last Post Jan 30, 2011, 3:44 a.m. EST