electrostatic potential in air-凯发k8网页登录
this example shows how to find the electrostatic potential in an air-filled annular quadrilateral frame.
the pde governing this problem is the poisson equation
here, is the space charge density, and is the absolute dielectric permittivity of the material. the toolbox uses the relative permittivity of the material , such that , where is the absolute permittivity of the vacuum. the relative permittivity for air is 1.00059. note that the permittivity of the air does not affect the result in this example as long as the coefficient is constant.
assuming that there is no charge in the domain, the poisson equation simplifies to the laplace equation: for this example, use the following boundary conditions:
the electrostatic potential at the inner boundary is 1000v.
the electrostatic potential at the outer boundary is 0v.
create an electromagnetic model for electrostatic analysis.
emagmodel = createpde("electromagnetic","electrostatic");
import and plot a geometry of a simple frame.
importgeometry(emagmodel,"frame.stl"); pdegplot(emagmodel,"edgelabels","on")
specify the vacuum permittivity value in the si system of units.
emagmodel.vacuumpermittivity = 8.8541878128e-12;
specify the relative permittivity of the material.
electromagneticproperties(emagmodel,"relativepermittivity",1.00059);
specify the electrostatic potential at the inner boundary.
electromagneticbc(emagmodel,"voltage",1000,"edge",[1 2 4 6]);
specify the electrostatic potential at the outer boundary.
electromagneticbc(emagmodel,"voltage",0,"edge",[3 5 7 8]);
generate the mesh.
generatemesh(emagmodel);
solve the model. plot the electric potential using the contour
parameter to display equipotential lines.
r = solve(emagmodel); u = r.electricpotential; pdeplot(emagmodel,"xydata",u,"contour","on")