Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 27, 2012, 7:39 a.m. EDT
Is it possible to read this information (surface charge density) off of a floating conductor using COMSOL?
Yes, it is possible, and the way to do it is pretty much what you described. So there's nothing wrong with your approach per se.
[quote]Is it possible to read this information (surface charge density) off of a floating conductor using COMSOL?[/quote]
Yes, it is possible, and the way to do it is pretty much what you described. So there's nothing wrong with your approach per se.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 27, 2012, 4:00 p.m. EDT
Thanks. I guess the trick is trying to find out what's going wrong. I have been able to plot the surface charge density on every surface except the conductor. There's always an error. I wonder if it has something to do with the program not solving on the conducting domains? Maybe there's some obscure selection I must make in the solution tab. It's not immediately clear to me. Also, the integration on the surface of the conductors does not work either.
Thanks. I guess the trick is trying to find out what's going wrong. I have been able to plot the surface charge density on every surface except the conductor. There's always an error. I wonder if it has something to do with the program not solving on the conducting domains? Maybe there's some obscure selection I must make in the solution tab. It's not immediately clear to me. Also, the integration on the surface of the conductors does not work either.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 30, 2012, 3:04 a.m. EDT
I have been able to plot the surface charge density on every surface except the conductor.
In electrostatics, you should see no surface charges (or rather, interface charges) except for the surfaces of conductors.
I wonder if it has something to do with the program not solving on the conducting domains?
No, that's exactly what the program is supposed to do: solve the Laplace equation for the electric potential inside a volume (the dielectric) bounded by surfaces of conductors (where the value of the electric potential is a given constant).
You seem reluctant to upload your model, which you will have your reasons for. Regardless, the best thing to do in a case like this is make a simplified model. I'd suggest a (metallic) sphere inside a box. Apply voltage and ground at opposite faces of the box, set the spherical surface to "floating potential" (zero total charge), solve the electrostatic problem outside the sphere, and plot the surface charge density. You should see a sphere that is positively charged on one half of its surface, negatively charged on the other. This should help you figure out what's wrong with your model.
[quote]I have been able to plot the surface charge density on every surface except the conductor.[/quote]
In electrostatics, you should see no surface charges (or rather, interface charges) except for the surfaces of conductors.
[quote]I wonder if it has something to do with the program not solving on the conducting domains?[/quote]
No, that's exactly what the program is supposed to do: solve the Laplace equation for the electric potential inside a volume (the dielectric) bounded by surfaces of conductors (where the value of the electric potential is a given constant).
You seem reluctant to upload your model, which you will have your reasons for. Regardless, the best thing to do in a case like this is make a simplified model. I'd suggest a (metallic) sphere inside a box. Apply voltage and ground at opposite faces of the box, set the spherical surface to "floating potential" (zero total charge), solve the electrostatic problem outside the sphere, and plot the surface charge density. You should see a sphere that is positively charged on one half of its surface, negatively charged on the other. This should help you figure out what's wrong with your model.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 30, 2012, 12:20 p.m. EDT
Thanks so much for your responses!
I tried the simplified model as you suggested, with a copper sphere inside of a box of air. I set the boundaries of the box to ground, except for one side which I gave a potential. I set the boundaries of the sphere to floating potential, as in my other model. I used electrostatics to solve only the domain of air, not the domain inside of the conductor.
When I tried to do a surface plot on the sphere of surface charge density, I recreated the same error from my other model. I attached this simplified model to this post. It's a bit strange, but I'm guessing there's a fundamental error in my geometry or boundaries and materials set-up that is causing the error in both models.
Thanks so much for your responses!
I tried the simplified model as you suggested, with a copper sphere inside of a box of air. I set the boundaries of the box to ground, except for one side which I gave a potential. I set the boundaries of the sphere to floating potential, as in my other model. I used electrostatics to solve only the domain of air, not the domain inside of the conductor.
When I tried to do a surface plot on the sphere of surface charge density, I recreated the same error from my other model. I attached this simplified model to this post. It's a bit strange, but I'm guessing there's a fundamental error in my geometry or boundaries and materials set-up that is causing the error in both models.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Jul 31, 2012, 3:49 a.m. EDT
I ran your model, as is, and got the result you can see in the attached figure. I guess this what you (and I both) were expecting.
However, I'm using the latest Comsol version, 4.3, whereas you seem to be on 4.2a. Luckily, I still have the old version installed, and when I ran the model there, I could reproduce the error you described ("Failed to evaluate variable. [...] mod1.es.nD"). I would think this is (or was) a bug.
As to if and why there's a bug, you can only get a definitive answer from Comsol's developers, via Support. But if I was to venture a guess, it would be that, in the old version, the surface charge density was not defined properly on (some or all) interior boundaries.
I suspect that because, when you switch on "Equation View" (from the "Show" drop-drown menu in the Model Builder tab), you can see that the surface charge density is defined whenever you add a boundary condition such as "Ground" or "Electric Potential", but not for the "Floating Potential". This is different in 4.3.
The Equation View is also your way in to working around the bug in 4.2a. Just define a new variable (say, nD) on all boundaries, and copy the expression from the Equation View: es.unx*(down(es.Dx)-up(es.Dx))+es.uny*(down(es.Dy)-up(es.Dy))+es.unz*(down(es.Dz)-up(es.Dz)). By the way, this is just the defintion of the surface charge density, n·(D₁-D₂), at an interface between media 1 and 2 with normal vector n, expressed in terms of Comsol's internal variables. You can also plot the above expression directly.
I ran your model, as is, and got the result you can see in the attached figure. I guess this what you (and I both) were expecting.
However, I'm using the latest Comsol version, 4.3, whereas you seem to be on 4.2a. Luckily, I still have the old version installed, and when I ran the model there, I could reproduce the error you described ("Failed to evaluate variable. [...] mod1.es.nD"). I would think this is (or was) a bug.
As to if and why there's a bug, you can only get a definitive answer from Comsol's developers, via Support. But if I was to venture a guess, it would be that, in the old version, the surface charge density was not defined properly on (some or all) interior boundaries.
I suspect that because, when you switch on "Equation View" (from the "Show" drop-drown menu in the Model Builder tab), you can see that the surface charge density is defined whenever you add a boundary condition such as "Ground" or "Electric Potential", but not for the "Floating Potential". This is different in 4.3.
The Equation View is also your way in to working around the bug in 4.2a. Just define a new variable (say, nD) on all boundaries, and copy the expression from the Equation View: es.unx*(down(es.Dx)-up(es.Dx))+es.uny*(down(es.Dy)-up(es.Dy))+es.unz*(down(es.Dz)-up(es.Dz)). By the way, this is just the defintion of the surface charge density, n·(D₁-D₂), at an interface between media 1 and 2 with normal vector n, expressed in terms of Comsol's internal variables. You can also plot the above expression directly.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
Aug 1, 2012, 12:05 p.m. EDT
Thank you so much for your help! This makes me feel a little better about myself since I couldn't figure out where I was going wrong.
I was having a problem defining my own variable (and with the variables unx, uny, unz), but plotting the expression manually gives me exactly the result I needed.
Thanks for helping me solve this problem! I hadn't done much with the equation view before, but now I see it's value.
Thank you so much for your help! This makes me feel a little better about myself since I couldn't figure out where I was going wrong.
I was having a problem defining my own variable (and with the variables unx, uny, unz), but plotting the expression manually gives me exactly the result I needed.
Thanks for helping me solve this problem! I hadn't done much with the equation view before, but now I see it's value.