Skip to content

Commit 03e7fae

Browse files
committed
new version, see release notes
1 parent a67d0ce commit 03e7fae

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

docs/src/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ printBusData(analysis) # Print bus data
5858
```julia
5959
using JuliaGrid
6060

61-
@power(MW, MVAr) # Specify the power units
62-
system = powerSystem("case14.h5") # Build the power system model
61+
@power(MW, MVAr) # Specify the power units
62+
system = powerSystem("case14.h5") # Build the power system model
6363

64-
analysis = dcPowerFlow(system) # Build the power flow model
65-
powerFlow!(analysis; power = true) # Compute powers and voltage angles
64+
analysis = dcPowerFlow(system) # Build the power flow model
65+
powerFlow!(analysis; power = true) # Compute powers and voltage angles
6666

67-
@generator(active = 20.0) # Define the template
68-
addGenerator!(analysis; bus = 1) # Add the new generator
67+
@generator(active = 20.0) # Define the template
68+
addGenerator!(analysis; bus = "Bus 1 HV") # Add the new generator
6969

70-
powerFlow!(analysis; power = true) # Recompute powers and voltage angles
70+
powerFlow!(analysis; power = true) # Recompute powers and voltage angles
7171

72-
printBusSummary(analysis) # Print bus summary data
72+
printBusSummary(analysis) # Print bus summary data
7373
```
7474

7575
---
@@ -83,8 +83,8 @@ system = powerSystem("case14.h5") # Build the power system
8383
analysis = acOptimalPowerFlow(system, Ipopt.Optimizer) # Build the optimal power flow model
8484
powerFlow!(analysis; current = true, verbose = 3) # Compute voltages and currents
8585

86-
@branch(resistance = 0.01, reactance = 0.2) # Define the template
87-
addBranch!(analysis; from = 1, to = 5) # Add the new branch
86+
updateBranch!(analysis, label = 2, reactance = 0.5) # Update branch parameters
87+
updateGenerator!(analysis, label = 3, maxActive = 0.3) # Update generator parameters
8888

8989
powerFlow!(analysis; current = true, verbose = 3) # Recompute voltages and currents
9090
```

0 commit comments

Comments
 (0)