Error using delaunayTriangulation when calling mesh() on a pcbStack
Hi! this is the first time I ask a question here I hope im doing everthing right. Well, I’m trying to simulate the EH fields of a 2 layer pcb coil, I import the files and make the pcbStack with the following code:
P = gerberRead("gerber/6L_planar_transformerv3-F_Cu.gbr", …
"gerber/6L_planar_transformerv3-In1_Cu.gbr", …
"gerber/6L_planar_transformerv3-PTH.drl");
pb2 = pcbStack(P);
f_cu=pb2.Layers{2};
in1_cu=pb2.Layers{4};
p = pcbStack;
p.BoardThickness=0.203e-3*1+1e-3;
p.ViaDiameter=0.1e-3;
d1 = dielectric("FR4");
d1.Thickness = 0.203e-3;
air = dielectric("Air");
air.Thickness = 1e-3;
p.BoardShape = antenna.Rectangle(Length=60e-3, Width=60e-3,Center=[0.1187 -0.0775]);
%p.Layers = {f_cu,d1,in1_cu,d1,in2_cu,d1,in3_cu,d1,d1,in4_cu,d1,b_cu};
p.Layers={air,f_cu,d1,in1_cu,air}
p.FeedDiameter = 0.1e-3;
p.FeedLocations = [146.1e-3 -72e-3 2;]
p.ViaLocations = [143e-3 -77.5e-3 2 4;
117.5e-3 -77.5e-3 2 4]
show(p)
The reason I’m importing the pcbStack like that is that I’m planning on simulating a planar transformer EH fields and the gerberRead() only allows for 2 layered pcb, this way i can add more layers by importing more gerber files. However when I run
mesh(p)
After some 20 minutes of the program running, it returns the following errors:
Error using delaunayTriangulation
Enforcing Delaunay constraints leads to unstable repeated constraint intersections.
This may be due to near coincident intersecting constraints or near duplicate points.
Error in em.internal.meshprinting.inter6_full_mesh
Error in em.internal.meshprinting.multiLayerMetalImprint
Error in em.PCBStructures/generateMeshForStripFeedAndVia
Error in pcbStack/meshGenerator (line 1340)
Mesh = generateMeshForStripFeedAndVia(obj,mesherInput);
Error in em.MeshGeometry/updateMeshForPcbStack
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
And since some functions of the RF toolbox like current() EHFields() first call mesh() I cant run simulations of my design. I don’t know if the size could be the reason of the delaunayTriangulation failure or something is wrong with my setupHi! this is the first time I ask a question here I hope im doing everthing right. Well, I’m trying to simulate the EH fields of a 2 layer pcb coil, I import the files and make the pcbStack with the following code:
P = gerberRead("gerber/6L_planar_transformerv3-F_Cu.gbr", …
"gerber/6L_planar_transformerv3-In1_Cu.gbr", …
"gerber/6L_planar_transformerv3-PTH.drl");
pb2 = pcbStack(P);
f_cu=pb2.Layers{2};
in1_cu=pb2.Layers{4};
p = pcbStack;
p.BoardThickness=0.203e-3*1+1e-3;
p.ViaDiameter=0.1e-3;
d1 = dielectric("FR4");
d1.Thickness = 0.203e-3;
air = dielectric("Air");
air.Thickness = 1e-3;
p.BoardShape = antenna.Rectangle(Length=60e-3, Width=60e-3,Center=[0.1187 -0.0775]);
%p.Layers = {f_cu,d1,in1_cu,d1,in2_cu,d1,in3_cu,d1,d1,in4_cu,d1,b_cu};
p.Layers={air,f_cu,d1,in1_cu,air}
p.FeedDiameter = 0.1e-3;
p.FeedLocations = [146.1e-3 -72e-3 2;]
p.ViaLocations = [143e-3 -77.5e-3 2 4;
117.5e-3 -77.5e-3 2 4]
show(p)
The reason I’m importing the pcbStack like that is that I’m planning on simulating a planar transformer EH fields and the gerberRead() only allows for 2 layered pcb, this way i can add more layers by importing more gerber files. However when I run
mesh(p)
After some 20 minutes of the program running, it returns the following errors:
Error using delaunayTriangulation
Enforcing Delaunay constraints leads to unstable repeated constraint intersections.
This may be due to near coincident intersecting constraints or near duplicate points.
Error in em.internal.meshprinting.inter6_full_mesh
Error in em.internal.meshprinting.multiLayerMetalImprint
Error in em.PCBStructures/generateMeshForStripFeedAndVia
Error in pcbStack/meshGenerator (line 1340)
Mesh = generateMeshForStripFeedAndVia(obj,mesherInput);
Error in em.MeshGeometry/updateMeshForPcbStack
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
And since some functions of the RF toolbox like current() EHFields() first call mesh() I cant run simulations of my design. I don’t know if the size could be the reason of the delaunayTriangulation failure or something is wrong with my setup Hi! this is the first time I ask a question here I hope im doing everthing right. Well, I’m trying to simulate the EH fields of a 2 layer pcb coil, I import the files and make the pcbStack with the following code:
P = gerberRead("gerber/6L_planar_transformerv3-F_Cu.gbr", …
"gerber/6L_planar_transformerv3-In1_Cu.gbr", …
"gerber/6L_planar_transformerv3-PTH.drl");
pb2 = pcbStack(P);
f_cu=pb2.Layers{2};
in1_cu=pb2.Layers{4};
p = pcbStack;
p.BoardThickness=0.203e-3*1+1e-3;
p.ViaDiameter=0.1e-3;
d1 = dielectric("FR4");
d1.Thickness = 0.203e-3;
air = dielectric("Air");
air.Thickness = 1e-3;
p.BoardShape = antenna.Rectangle(Length=60e-3, Width=60e-3,Center=[0.1187 -0.0775]);
%p.Layers = {f_cu,d1,in1_cu,d1,in2_cu,d1,in3_cu,d1,d1,in4_cu,d1,b_cu};
p.Layers={air,f_cu,d1,in1_cu,air}
p.FeedDiameter = 0.1e-3;
p.FeedLocations = [146.1e-3 -72e-3 2;]
p.ViaLocations = [143e-3 -77.5e-3 2 4;
117.5e-3 -77.5e-3 2 4]
show(p)
The reason I’m importing the pcbStack like that is that I’m planning on simulating a planar transformer EH fields and the gerberRead() only allows for 2 layered pcb, this way i can add more layers by importing more gerber files. However when I run
mesh(p)
After some 20 minutes of the program running, it returns the following errors:
Error using delaunayTriangulation
Enforcing Delaunay constraints leads to unstable repeated constraint intersections.
This may be due to near coincident intersecting constraints or near duplicate points.
Error in em.internal.meshprinting.inter6_full_mesh
Error in em.internal.meshprinting.multiLayerMetalImprint
Error in em.PCBStructures/generateMeshForStripFeedAndVia
Error in pcbStack/meshGenerator (line 1340)
Mesh = generateMeshForStripFeedAndVia(obj,mesherInput);
Error in em.MeshGeometry/updateMeshForPcbStack
Error in em.MeshGeometry/protectedmesh
Error in em.MeshGeometryAnalysis/mesh (line 66)
protectedmesh(obj,varargin{:});
And since some functions of the RF toolbox like current() EHFields() first call mesh() I cant run simulations of my design. I don’t know if the size could be the reason of the delaunayTriangulation failure or something is wrong with my setup pcb, rf-toolbox, pcbstack, delaunaytriangulation MATLAB Answers — New Questions