-
Notifications
You must be signed in to change notification settings - Fork 5
/
Transformer3WTypeInput.java
297 lines (272 loc) · 9.49 KB
/
Transformer3WTypeInput.java
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
/*
* © 2021. TU Dortmund University,
* Institute of Energy Systems, Energy Efficiency and Energy Economics,
* Research group Distribution grid planning and operation
*/
package edu.ie3.datamodel.models.input.connector.type;
import edu.ie3.datamodel.models.StandardUnits;
import edu.ie3.datamodel.models.input.AssetTypeInput;
import java.util.Objects;
import java.util.UUID;
import javax.measure.quantity.*;
import tech.units.indriya.ComparableQuantity;
/** Describes the type of a {@link edu.ie3.datamodel.models.input.connector.Transformer3WInput} */
public class Transformer3WTypeInput extends AssetTypeInput {
/** Rated apparent power of the high voltage winding (typically in kVA) */
private final ComparableQuantity<Power> sRatedA; // Hv
/** Rated apparent power of the medium voltage winding (typically in kVA) */
private final ComparableQuantity<Power> sRatedB; // Mv
/** Rated apparent power of the low voltage windings (typically in kVA) */
private final ComparableQuantity<Power> sRatedC; // Lv
/** Rated voltage magnitude of the high voltage winding (typically in kV) */
private final ComparableQuantity<ElectricPotential> vRatedA; // Hv
/** Rated voltage magnitude of the medium voltage winding (typically in kV) */
private final ComparableQuantity<ElectricPotential> vRatedB; // Mv
/** Rated voltage magnitude of the low voltage winding (typically in kV) */
private final ComparableQuantity<ElectricPotential> vRatedC; // Lv
/** Short-circuit resistance of the high voltage winding (typically in Ohm) */
private final ComparableQuantity<ElectricResistance> rScA; // Hv
/** Short-circuit resistance of the medium voltage winding (typically in Ohm) */
private final ComparableQuantity<ElectricResistance> rScB; // Mv
/** Short-circuit resistance of the low voltage winding (typically in Ohm) */
private final ComparableQuantity<ElectricResistance> rScC; // Lv
/** Short-circuit reactance of the high voltage winding (typically in Ohm) */
private final ComparableQuantity<ElectricResistance> xScA; // Hv
/** Short-circuit reactance of the medium voltage winding (typically in Ohm) */
private final ComparableQuantity<ElectricResistance> xScB; // Mv
/** Short-circuit reactance of the low voltage winding (typically in Ohm) */
private final ComparableQuantity<ElectricResistance> xScC; // Lv
/** Phase-to-ground conductance (typically in nS) */
private final ComparableQuantity<ElectricConductance> gM;
/** Phase-to-ground susceptance (typically in nS) */
private final ComparableQuantity<ElectricConductance> bM;
/** Voltage magnitude deviation per tap position (typically in %) */
private final ComparableQuantity<Dimensionless> dV;
/** Voltage angle deviation per tap position (typically in °) */
private final ComparableQuantity<Angle> dPhi;
/** Neutral tap position */
private final int tapNeutr;
/** Minimum available tap position */
private final int tapMin;
/** Maximum available tap position */
private final int tapMax;
/**
* @param uuid of the input entity
* @param id of this type
* @param sRatedA Rated apparent power of the high voltage winding
* @param sRatedB Rated apparent power of the medium voltage winding
* @param sRatedC Rated apparent power of the low voltage winding
* @param vRatedA Rated voltage magnitude of the high voltage winding
* @param vRatedB Rated voltage magnitude of the medium voltage winding
* @param vRatedC Rated voltage magnitude of the low voltage winding
* @param rScA Short-circuit resistance of the high voltage winding
* @param rScB Short-circuit resistance of the medium voltage winding
* @param rScC Short-circuit resistance of the low voltage winding
* @param xScA Short-circuit reactance of the high voltage winding
* @param xScB Short-circuit reactance of the medium voltage winding
* @param xScC Short-circuit reactance of the low voltage winding
* @param gM Phase-to-ground conductance
* @param bM Phase-to-ground susceptance
* @param dV Voltage magnitude deviation per tap position
* @param dPhi Voltage angle deviation per tap position
* @param tapNeutr Neutral tap position
* @param tapMin Minimum available tap position
* @param tapMax Maximum available tap position
*/
public Transformer3WTypeInput(
UUID uuid,
String id,
ComparableQuantity<Power> sRatedA,
ComparableQuantity<Power> sRatedB,
ComparableQuantity<Power> sRatedC,
ComparableQuantity<ElectricPotential> vRatedA,
ComparableQuantity<ElectricPotential> vRatedB,
ComparableQuantity<ElectricPotential> vRatedC,
ComparableQuantity<ElectricResistance> rScA,
ComparableQuantity<ElectricResistance> rScB,
ComparableQuantity<ElectricResistance> rScC,
ComparableQuantity<ElectricResistance> xScA,
ComparableQuantity<ElectricResistance> xScB,
ComparableQuantity<ElectricResistance> xScC,
ComparableQuantity<ElectricConductance> gM,
ComparableQuantity<ElectricConductance> bM,
ComparableQuantity<Dimensionless> dV,
ComparableQuantity<Angle> dPhi,
int tapNeutr,
int tapMin,
int tapMax) {
super(uuid, id);
this.sRatedA = sRatedA.to(StandardUnits.S_RATED);
this.sRatedB = sRatedB.to(StandardUnits.S_RATED);
this.sRatedC = sRatedC.to(StandardUnits.S_RATED);
this.vRatedA = vRatedA.to(StandardUnits.RATED_VOLTAGE_MAGNITUDE);
this.vRatedB = vRatedB.to(StandardUnits.RATED_VOLTAGE_MAGNITUDE);
this.vRatedC = vRatedC.to(StandardUnits.RATED_VOLTAGE_MAGNITUDE);
this.rScA = rScA.to(StandardUnits.RESISTANCE);
this.rScB = rScB.to(StandardUnits.RESISTANCE);
this.rScC = rScC.to(StandardUnits.RESISTANCE);
this.xScA = xScA.to(StandardUnits.REACTANCE);
this.xScB = xScB.to(StandardUnits.REACTANCE);
this.xScC = xScC.to(StandardUnits.REACTANCE);
this.gM = gM.to(StandardUnits.CONDUCTANCE);
this.bM = bM.to(StandardUnits.SUSCEPTANCE);
this.dV = dV.to(StandardUnits.DV_TAP);
this.dPhi = dPhi.to(StandardUnits.DPHI_TAP);
this.tapNeutr = tapNeutr;
this.tapMin = tapMin;
this.tapMax = tapMax;
}
public ComparableQuantity<Power> getsRatedA() {
return sRatedA;
}
public ComparableQuantity<Power> getsRatedB() {
return sRatedB;
}
public ComparableQuantity<Power> getsRatedC() {
return sRatedC;
}
public ComparableQuantity<ElectricPotential> getvRatedA() {
return vRatedA;
}
public ComparableQuantity<ElectricPotential> getvRatedB() {
return vRatedB;
}
public ComparableQuantity<ElectricPotential> getvRatedC() {
return vRatedC;
}
public ComparableQuantity<ElectricResistance> getrScA() {
return rScA;
}
public ComparableQuantity<ElectricResistance> getrScB() {
return rScB;
}
public ComparableQuantity<ElectricResistance> getrScC() {
return rScC;
}
public ComparableQuantity<ElectricResistance> getxScA() {
return xScA;
}
public ComparableQuantity<ElectricResistance> getxScB() {
return xScB;
}
public ComparableQuantity<ElectricResistance> getxScC() {
return xScC;
}
public ComparableQuantity<ElectricConductance> getgM() {
return gM;
}
public ComparableQuantity<ElectricConductance> getbM() {
return bM;
}
public ComparableQuantity<Dimensionless> getdV() {
return dV;
}
public ComparableQuantity<Angle> getdPhi() {
return dPhi;
}
public int getTapNeutr() {
return tapNeutr;
}
public int getTapMin() {
return tapMin;
}
public int getTapMax() {
return tapMax;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof Transformer3WTypeInput that)) return false;
if (!super.equals(o)) return false;
return tapNeutr == that.tapNeutr
&& tapMin == that.tapMin
&& tapMax == that.tapMax
&& sRatedA.equals(that.sRatedA)
&& sRatedB.equals(that.sRatedB)
&& sRatedC.equals(that.sRatedC)
&& vRatedA.equals(that.vRatedA)
&& vRatedB.equals(that.vRatedB)
&& vRatedC.equals(that.vRatedC)
&& rScA.equals(that.rScA)
&& rScB.equals(that.rScB)
&& rScC.equals(that.rScC)
&& xScA.equals(that.xScA)
&& xScB.equals(that.xScB)
&& xScC.equals(that.xScC)
&& gM.equals(that.gM)
&& bM.equals(that.bM)
&& dV.equals(that.dV)
&& dPhi.equals(that.dPhi);
}
@Override
public int hashCode() {
return Objects.hash(
super.hashCode(),
sRatedA,
sRatedB,
sRatedC,
vRatedA,
vRatedB,
vRatedC,
rScA,
rScB,
rScC,
xScA,
xScB,
xScC,
gM,
bM,
dV,
dPhi,
tapNeutr,
tapMin,
tapMax);
}
@Override
public String toString() {
return "Transformer3WTypeInput{"
+ "uuid="
+ getUuid()
+ ", id="
+ getId()
+ ", sRatedA="
+ sRatedA
+ ", sRatedB="
+ sRatedB
+ ", sRatedC="
+ sRatedC
+ ", vRatedA="
+ vRatedA
+ ", vRatedB="
+ vRatedB
+ ", vRatedC="
+ vRatedC
+ ", rScA="
+ rScA
+ ", rScB="
+ rScB
+ ", rScC="
+ rScC
+ ", xScA="
+ xScA
+ ", xScB="
+ xScB
+ ", xScC="
+ xScC
+ ", gM="
+ gM
+ ", bM="
+ bM
+ ", dV="
+ dV
+ ", dPhi="
+ dPhi
+ ", tapNeutr="
+ tapNeutr
+ ", tapMin="
+ tapMin
+ ", tapMax="
+ tapMax
+ '}';
}
}