MCPcopy Create free account
hub / github.com/Qucs/qucs / circularloop

Method circularloop

qucs/components/circularloop.cpp:27–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27circularloop::circularloop()
28{
29 Description = QObject::tr("Printed loop inductor");
30
31 //Loop
32 Arcs.append(new Arc(-18, -25, 35, 35, -370, 16*230,QPen(Qt::darkBlue,3)));
33
34 Lines.append(new Line(-30, 0, -16, 0,QPen(Qt::darkBlue,4)));
35 Lines.append(new Line( 16, 0, 30, 0,QPen(Qt::darkBlue,4)));
36
37 Ports.append(new Port(-30, 0));
38 Ports.append(new Port( 30, 0));
39
40 x1 = -30; y1 =-30;
41 x2 = 30; y2 = 5;
42
43 tx = x1;
44 ty = y1+40;
45 Model = "CIRCULARLOOP";
46 Name = "CIRCULARLOOP";
47
48 Props.append(new Property("Subst", "Subst1", true,
49 QObject::tr("Substrate")));
50 Props.append(new Property("W", "25 um", false,
51 QObject::tr("Width of line")));
52 Props.append(new Property("a", "500 um", false,
53 QObject::tr("Radius")));
54 Props.append(new Property("Temp", "26.85", false,
55 QObject::tr("simulation temperature in degree Celsius")));
56
57}
58
59circularloop::~circularloop()
60{

Callers

nothing calls this directly

Calls 1

QPenClass · 0.85

Tested by

no test coverage detected