Skip to content

Commit

Permalink
examples/ieee13: use "node" instead of "bus"
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Jan 16, 2024
1 parent 88647d2 commit 5a1b5bf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/ieee13.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ fn run_ieee13(dss: &IDSS) -> Result<(), DSSError> {
println!("Circuit name: {}", circ.Name()?);
println!("Number of buses: {}", circ.NumBuses()?);
println!("Number of nodes: {}", circ.NumNodes()?);
println!("\nBus name, bus voltage (pu)");
let bus_names = circ.AllBusNames()?;
let bus_vpu = circ.AllBusVmagPu()?;
for b in 0..bus_names.len() {
println!("{}, {:.3}", bus_names[b], bus_vpu[b]);
println!("\nNode name, node voltage (pu)");
let node_names = circ.AllNodeNames()?;
let node_vpu = circ.AllBusVmagPu()?;
for b in 0..node_names.len() {
println!("{}, {:.3}", node_names[b], node_vpu[b]);
}
Ok(())
}
Expand Down

0 comments on commit 5a1b5bf

Please sign in to comment.