forked from leghtas/pyHFSS
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathparticipation_ratio.clc
97 lines (97 loc) · 2.74 KB
/
participation_ratio.clc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
$begin 'Named_Expression'
Name('U_E')
Expression('Integrate(Volume(AllObjects), Real(Dot(epsi*(<Ex,Ey,Ez>), Conj(<Ex,Ey,Ez>))))')
Fundamental_Quantity('E')
MaterialOp('Permittivity (epsi)', 1)
Fundamental_Quantity('E')
Operation('Conj')
Operation('Dot')
Operation('Real')
EnterVolume('AllObjects')
Operation('VolumeValue')
Operation('Integrate')
$end 'Named_Expression'
$begin 'Named_Expression'
Name('U_H')
Expression('Integrate(Volume(AllObjects), Real(Dot(mu*(<Hx,Hy,Hz>), Conj(<Hx,Hy,Hz>))))')
NameOfExpression('<Hx,Hy,Hz>')
MaterialOp('Permeability (mu)', 1)
NameOfExpression('<Hx,Hy,Hz>')
Operation('Conj')
Operation('Dot')
Operation('Real')
EnterVolume('AllObjects')
Operation('VolumeValue')
Operation('Integrate')
$end 'Named_Expression'
$begin 'Named_Expression'
Name('P_J')
Expression('/(Abs(-(U_E, U_H)), *(U_E, 2))')
NameOfExpression('U_E')
NameOfExpression('U_H')
Operation('-')
Operation('Abs')
NameOfExpression('U_E')
Scalar_Constant(2)
Operation('*')
Operation('/')
$end 'Named_Expression'
$begin 'Named_Expression'
Name('Pin_Participation')
Expression('/(*(Integrate(Surface(Cylinder_port_copper_Dump_4), Pow(ComplexMag_H, 2)), skindepth), Integrate(Volume(AllObjects), Pow(Mag_H, 2)))')
NameOfExpression('ComplexMag_H')
Scalar_Constant(2)
Operation('Pow')
EnterSurface('Cylinder_port_copper_Dump_4')
Operation('SurfaceValue')
Operation('Integrate')
Scalar_Function(FuncValue='skindepth')
Operation('*')
NameOfExpression('Mag_H')
Scalar_Constant(2)
Operation('Pow')
EnterVolume('AllObjects')
Operation('VolumeValue')
Operation('Integrate')
Operation('/')
$end 'Named_Expression'
$begin 'Named_Expression'
Name('U_E_sap_dump')
Expression('Integrate(Volume(Sapphire_Dump), Real(Dot(epsi*(<Ex,Ey,Ez>), Conj(<Ex,Ey,Ez>))))')
Fundamental_Quantity('E')
MaterialOp('Permittivity (epsi)', 1)
Fundamental_Quantity('E')
Operation('Conj')
Operation('Dot')
Operation('Real')
EnterVolume('Sapphire_Dump')
Operation('VolumeValue')
Operation('Integrate')
$end 'Named_Expression'
$begin 'Named_Expression'
Name('U_E_sap_qubit')
Expression('Integrate(Volume(Sapphire_Qubit), Real(Dot(epsi*(<Ex,Ey,Ez>), Conj(<Ex,Ey,Ez>))))')
Fundamental_Quantity('E')
MaterialOp('Permittivity (epsi)', 1)
Fundamental_Quantity('E')
Operation('Conj')
Operation('Dot')
Operation('Real')
EnterVolume('Sapphire_Dump')
Operation('VolumeValue')
Operation('Integrate')
$end 'Named_Expression'
$begin 'Named_Expression'
Name('P_sapp_Dump')
Expression('/(U_E_sap_dump, U_E)')
NameOfExpression('U_E_sap_dump')
NameOfExpression('U_E')
Operation('/')
$end 'Named_Expression'
$begin 'Named_Expression'
Name('P_sapp_Qubit')
Expression('/(U_E_sap_qubit, U_E)')
NameOfExpression('U_E_sap_qubit')
NameOfExpression('U_E')
Operation('/')
$end 'Named_Expression'