electrostatic potential in air-filled frame
this example shows how to find the electrostatic potential in an air-filled annular quadrilateral frame by using the unified workflow.
the pde governing this problem is poisson's equation
–∇ · (ε∇v) = ρ.
here, ρ is the space charge density, and ε is the absolute dielectric permittivity of the material. the toolbox uses the relative permittivity of the material εr, such that ε = εrε0, where ε0 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, poisson's equation simplifies to the laplace equation: δv = 0. for this example, use these boundary conditions:
the electrostatic potential at the inner boundary is 1000 v.
the electrostatic potential at the outer boundary is 0 v.
create a finite element analysis model for electrostatic analysis. include a geometry of a frame.
model = femodel(analysistype="electrostatic", ... geometry="frame.stl");
plot the geometry of the frame with edge labels.
pdegplot(model.geometry,edgelabels="on");
specify the vacuum permittivity value in the si system of units.
model.vacuumpermittivity = 8.8541878128e-12;
specify the relative permittivity of the material.
model.materialproperties = ...
materialproperties(relativepermittivity=1.00059);
specify the electrostatic potential at the inner boundary.
model.edgebc([1 2 4 6]) = edgebc(voltage=1000);
specify the electrostatic potential at the outer boundary.
model.edgebc([3 5 7 8]) = edgebc(voltage=0);
generate the mesh. this assignment updates the mesh stored in the
geometry
property of the model.
model = generatemesh(model);
solve the model. plot the electric potential distribution using the
contour
parameter to display equipotential lines.
r = solve(model);
u = r.electricpotential;
pdeplot(model.mesh,xydata=u,contour="on")