Closed IpssDev closed 10 years ago
https://github.com/InterPSS-Project/ipss-plugin/commit/3acb96d8fd987111bcde820d49cf517ca46fe96a
A new test case PSXfrPControlTest_Inv.java created for the investigation. See comments in the file. The FlowDirection attribute is currently not persisted correctly.
Thanks Mike. This is the cause. Will you consider printing out this attribute in the net.net2String() method for the psxfr control object? It might be helpful for debug purpose.
The attribute is already available under the name "Direction".
AclfBranch Info: Total 2
id: 0001->0002(1)
number: 0
name: Branch 1
desc:
status: true (visited: false, weight: (0.0, 0.0), intFlag: 0, sortNumber: 0) (extensionObject: null)
circuitNumber: 1
branchCode: PSXformer
z: 0.0500 + j0.1000
Ratio : from side 1.0000 to side 1.0000 pu
fromAngle : 1.89023 deg
toAngle : 0.0000 deg
Z multiplying factor 1.0000 Z Adj Table number 0 pu
fromShuntY: 0.0000 + j0.0000 pu
toShuntY: 0.0000 + j0.0000 pu
mvaRating1,mvaRating2,mvaRating3: 0.0000, 0.0000, 0.0000
LF results
p+jq(f->t) : 0.40026 + j0.50697 pu 40026.32807 + j50697.0670 kva
p+jq(t->f) : -0.3794 + j-0.46525 pu -37940.1783 + j-46524.76746 kva
current : 3729.29821 Amps
PSXfr PControl Adjust Info:
id: 0001->0002(1)
number: 0
name:
desc:
status: true
AccFactor : 3.0
Typec : PointControl
Direction : From->To
PSpec : 0.4000 pu
Angle(Deg) : max: 5.0000 actaul: 1.89023 min: -0.5000 Deg
PControl : from side
meteredOn : from side
PActual : 0.40026 + j0.50697 pu 40026.32807 + j50697.0670 kva
Mike, there are two test cases need your help. The most updated commit is this one f73cde85907f0e46e3132d109b092837799a4d40. In the branch updateBeanModel, under org.interpss.plugin.beanModel, please see PSXfrPControlTest.java. There are two test cases: fromSideCaseTest_Bean() and fromSideCaseTest_NoBean(). The fist test read input and form a AclfNetwork object. The later one reads input and form an AclfNetwork object, then convert it to Bean model and then convert it back to a AclfNetwork object. However, The later one failed. That is strange to me since I print out the two AclfNetwork object and they are almost identical. Please see my comment there. Same thing happens in SwitchedShuntTest.java.