Skip to content

Commit c2f7992

Browse files
committed
add descriptions and outputs
1 parent bfcba0b commit c2f7992

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ print(circuit.results(["Voltages", "Losses"]))
9494
circuit.clear()
9595
```
9696

97+
Running this code yields the following printed output:
98+
```
99+
{'Voltages': {'source': 499.7123955784113, 'load0': 120.73408045756985}, 'Losses': {'Active Power Loss': 465617.30157676246, 'Reactive Power Loss': 969502.2898991327}}
100+
```
101+
102+
Note that the losses here are expressed in Watts, and the Voltages in Volts. The circuit observes some loss due to a much higher source voltage than load voltage, with most of the loss being reactive power loss. The circuit is created with a step-down transformer in the line by default, which enables the source and load to maintain isolated voltage levels at rest.
103+
97104
## Defaults-Based Circuit Creation
98105
```python
99106
circuit = PyGridSim()
@@ -111,6 +118,13 @@ print(circuit.results(["Voltages", "Losses"]))
111118
circuit.clear()
112119
```
113120

121+
The following output is printed:
122+
```
123+
{'Voltages': {'source': 2418.845494533779, 'load0': 169.53107121049976}, 'Losses': {'Active Power Loss': 351310.95859906287, 'Reactive Power Loss': 730351.7183868886}}
124+
```
125+
126+
The defaults-based ranges for source and load nodes are higher than the ones specified in the above customization example, explaining the higher voltages set for both nodes. We once again observe some loss in the system, with most of that being in reactive power loss.
127+
114128
# Resources
115129

116130
For more details about **PyGridSim** and all its possibilities

sim.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"Voltages": {
3-
"source": 1912.250959225854,
4-
"load0": 164.87512862167387
3+
"source": 9999.598243195385,
4+
"load0": 8294.334838925915
55
},
66
"Losses": {
7-
"Active Power Loss": 181552.68984510849,
8-
"Reactive Power Loss": 377394.0863595363
7+
"Active Power Loss": 9059444.425434513,
8+
"Reactive Power Loss": 31084427.834760502
99
}
1010
}

0 commit comments

Comments
 (0)