Robert Koslover
Certified Consultant
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
10 mars 2022, 11:50 UTC−5
If you are already successfully plotting the electric potential along a line, then you should be able to very easily replace the expression for the potential with an expression for the electric field, and then plot that. If this perhaps overly-simple advice isn't enough to guide you in solving your problem, then I encourage you to post your .mph file to the forum so that everyone can see the details of your model and can offer you more specific and useful help.
-------------------
Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
If you are already successfully plotting the electric *potential* along a line, then you should be able to very easily replace the expression for the potential with an expression for the *electric field*, and then plot that. If this perhaps overly-simple advice isn't enough to guide you in solving your problem, then I encourage you to post your .mph file to the forum so that everyone can see the details of your model and can offer you more specific and useful help.
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
10 mars 2022, 13:28 UTC−5
Updated:
3 years ago
10 mars 2022, 14:55 UTC−5
Hello Derek,
Two quick remarks:
- While the potential is a scalar, the electric field is a vector quantity, so you can't plot it with a surface plot (though you could plot its norm, or any other scalar quantity derived from its components); consider using an arrow plot or a streamline plot. You will find the electric field is then one of the ready-to-use quantities for those types of plots. There are training videos on the topic of arrow plots and streamline plots in the Learning Center.
- Copper being a vastly better conductor than air, typically you leave the copper electrodes out of the simulation entirely (Their potential being known a priori) and replace them by boundary conditions on the electrostatics problem solved on the air domain only. See this capacitor model for an example.
Best,
Jeff
-------------------
Jeff Hiller
Hello Derek,
Two quick remarks:
1. While the potential is a scalar, the electric field is a vector quantity, so you can't plot it with a surface plot (though you could plot its norm, or any other scalar quantity derived from its components); consider using an arrow plot or a streamline plot. You will find the electric field is then one of the ready-to-use quantities for those types of plots. There are training videos on the topic of arrow plots and streamline plots in the [Learning Center](https://www.comsol.com/learning-center).
2. Copper being a vastly better conductor than air, typically you leave the copper electrodes out of the simulation entirely (Their potential being known a priori) and replace them by boundary conditions on the electrostatics problem solved on the air domain only. See [this capacitor model](https://www.comsol.com/model/tunable-mems-capacitor-123) for an example.
Best,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
12 mars 2022, 18:34 UTC−5
Thank you both for the advice. I am trying out your suggestions now, much appreciated.
My only further question is that when I am trying to plot the electric field using 1D Plot Tool, Line Graph, there is no option for distance on the x axis. I would like to plot the electric field on the y axis and the distance on the x axis.
Any further help appreciated.
Regards,
Thank you both for the advice. I am trying out your suggestions now, much appreciated.
My only further question is that when I am trying to plot the electric field using 1D Plot Tool, Line Graph, there is no option for distance on the x axis. I would like to plot the electric field on the y axis and the distance on the x axis.
Any further help appreciated.
Regards,
Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
3 years ago
14 mars 2022, 08:44 UTC−4
Hello,
It sounds like you need to add to your model a "Cut Line 2D" dataset, corresponding to the line along which you want to plot the quantity. But remember my earlier remark: the electric field is not a scalar; a line plot will allow you to plot a scalar quantity derived from the electric field (such as its norm for instance), but not the electric field itself.
Best,
Jeff
-------------------
Jeff Hiller
Hello,
It sounds like you need to add to your model a "Cut Line 2D" dataset, corresponding to the line along which you want to plot the quantity. But remember my earlier remark: the electric field is not a scalar; a line plot will allow you to plot a scalar quantity derived from the electric field (such as its norm for instance), but not the electric field itself.
Best,
Jeff