Hello,
The problem is resolved now and the algorithm is back running as before under VS (it was developed under Clion IDE).
My next step is to try to program a window in VS, that have a library of electrical components like, bus, Line, Generator, transformer, etc... The user will drag any component on the screen and draw a single line diagram (Like one Generator1 connected to a bus1, a line will be connected between bus1 and bus2, a load L1 will be connected to bus2). Each shall have shall have a data input window for data entry. All data entered shall be linked to the algorithm for calculation...it should be very similar to product developed by the following:
http://www.ucancode.net/ELECTROIC_POWER_VC_DELPHI_SOURCE_CODE.htm
I never used the VS windows programming - But I want to learn and built my own Power system software and start my dream project.
I want to know where to start, how to learn programming, training etc...
Thank
This is an example of the calculation results for 3 buses, 2 generator and 2 loads
Vi(0) = (1.05,0)
|Vi|: 1.05
<Vi: 0
Vi(1) = (1.04625,-0.0108843)
|Vi|: 1.0463
<Vi: -0.59604
Vi(2) = (1.04812,-0.00544219)
|Vi|: 1.04814
<Vi: -0.297495
Bus injected MW/MVAR (1) = (120,40.271)
Bus injected MW/MVAR (2) = (-120,-40)
Bus injected MW/MVAR (3) = (0,0)
S MW/MVAR (1) = (120,41.3919)
S MW/MVAR (2) = (-120,-39.9999)
S MW/MVAR (3) = (-0.000255253,-4.53517e-05)
Load on Bus MW/MVAR (1) = (200,100)
Load on Bus MW/MVAR (2) = (200,100)
Generator(0) MW on bus # 1 = (320,140.271)
Generator(1) MW on bus # 2 = (80,60)
Line Flow = (0,1)(11.4286,3.94208) Line Flow = (1,0)(-11.4286,-3.80952) Line Losses = (0,1)(0,0.132564)
Line Flow = (0,2)(5.7143,1.97104) Line Flow = (2,0)(-5.7143,-1.9379) Line Losses = (0,2)(0,0.0331413)
Line Flow = (1,2)(-5.71426,-1.90476) Line Flow = (2,1)(5.71426,1.9379) Line Losses = (1,2)(0,0.0331409)
Total line Line Losses = ((0,0.198846)
Line chanrging(0) MW/MVAR on bus # 1 = (0,0)
Line Disipation (0) MW/MAR on bus # 1 = (0,0.132564)
Line chanrging(1) MW/MVAR on bus # 1 = (0,0)
Line Disipation (1) MW/MAR on bus # 1 = (0,0.0331413)
Line chanrging(2) MW/MVAR on bus # 2 = (0,0)
Line Disipation (2) MW/MAR on bus # 2 = (0,0.0331409)
Total Load MW/MVAR = (400,200)
Total Geneartion MW/MVAR = (400,200.271)
Generation - Load MW/MVAR = (0,0.270978)
Total Line Disipation = (0,0.198846)
Total Line Charging = (0,-0)
Mis_match = (0,0.0721318)
Press any key to continue . . .