Skip to content

Commit 7fa7ee3

Browse files
committed
updated EMT docs partially
1 parent 3f47145 commit 7fa7ee3

16 files changed

Lines changed: 684 additions & 316 deletions

File tree

GridKit/Model/EMT/Bus/README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ N &> 0 \\
2626
\end{aligned}
2727
```
2828

29-
### Model Derived Parameters
29+
### Derived Parameters
3030

3131
None.
3232

33-
### Submodels
33+
## Submodels
34+
35+
None.
36+
37+
### Submodel Validation
3438

3539
None.
3640

@@ -86,14 +90,29 @@ None.
8690

8791
## Initialization
8892

89-
The initial bus voltage is given by the parameter vector $\mathbf{v}_0$:
93+
### Input Initialization
9094

9195
```math
92-
\mathbf{v}(0)=\mathbf{v}_0
96+
\begin{aligned}
97+
\mathbf{i}^{\mathrm{inj}}_m
98+
&\leftarrow \text{connected-device current starts},
99+
\quad m\in\{1,\ldots,M\}
100+
\end{aligned}
93101
```
94102

95-
Only $\mathbf{v}(0)$ is initialized. The solver computes the initial
96-
bus-voltage derivative from the differential residual.
103+
### Internal Initialization
104+
105+
Initialization assigns the parameterized bus-voltage start:
106+
107+
```math
108+
\mathbf{v} \leftarrow \text{parameterized bus-voltage start}
109+
```
110+
111+
The differential residual determines the initial bus-voltage derivative.
112+
113+
### Output Initialization
114+
115+
None.
97116

98117
## Monitors
99118

GridKit/Model/EMT/Component/Line/LineDistributed/README.md

Lines changed: 92 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# LineDistributed Model
22

3-
`LineDistributed` represents a distributed EMT line with characteristic
4-
admittance $\mathbf{y}_c$ and propagation model $\mathbf{h}$.
3+
`LineDistributed` represents an $N$-phase, $K$-conductor distributed EMT line.
54

65
## Block Diagram
76

@@ -11,27 +10,41 @@ Figure 1: LineDistributed model
1110

1211
## Model Parameters
1312

14-
Symbol | Units | JSON | Description | Note
15-
----------------- | ----- | ------------ | ------------------------------------------------------ | ----
13+
Symbol | Units | JSON | Description | Note
14+
------ | ----- | ---- | ----------- | ----
15+
$N$ | [-] | `N` | Number of phases | Required, positive integer
16+
$K$ | [-] | `K` | Number of conductors | Required, positive integer
1617
$\mathbf{P}_\phi$ | [-] | `conductors` | Permutation matrix mapping each conductor to its phase | $\mathbf{P}_\phi \in \mathbb{R}^{N \times K}$
1718

1819
### Parameter Validation
1920

21+
```math
22+
\begin{aligned}
23+
N &> 0 \\
24+
K &> 0 \\
25+
\mathbf{P}_\phi &\in \mathbb{R}^{N \times K}
26+
\end{aligned}
27+
```
28+
29+
### Derived Parameters
30+
2031
None.
2132

22-
### Model Derived Parameters
33+
## Submodels
2334

24-
The number of phases $N$ and conductors $K$ are the row and column counts of
25-
$\mathbf{P}_\phi$, respectively.
35+
Submodel | Type | Order | Inputs | Outputs
36+
-------- | ---- | ----- | ------ | -------
37+
Characteristic admittance $f^{\mathbf{y}_c}$ | [`VectorFit`](../../../Operators/Rational/VectorFit/README.md) | $Q_{\mathbf{y}_c}$ | $\mathbf{v}_{1},\mathbf{v}_{2}\in\mathbb{R}^N$ | $\mathbf{i}^{\mathrm{sh}}_{1},\mathbf{i}^{\mathrm{sh}}_{2}\in\mathbb{R}^K$
38+
Propagation $f^{\mathbf{h}}$ | [`Propagation`](../../../Operators/Shift/Propagation/README.md) | $Q_{\mathbf{h}}$ | $\mathbf{u}_1,\mathbf{u}_2\in\mathbb{R}^K$ | $\mathbf{i}^{\mathrm{inc}}_{1},\mathbf{i}^{\mathrm{inc}}_{2}\in\mathbb{R}^K$
2639

27-
### Submodels
40+
### Submodel Validation
2841

29-
Submodel | Inputs | Parameters | Outputs
30-
-------- | ------ | ---------- | -------
31-
[`VectorFit`](../../../Operators/Rational/VectorFit/README.md) characteristic admittance $\mathbf{y}_c$ | $\mathbf{v}_{1}\in\mathbb{R}^N$ | `Yc` | $\mathbf{i}^{\mathrm{sh}}_{1}\in\mathbb{R}^K$
32-
[`VectorFit`](../../../Operators/Rational/VectorFit/README.md) characteristic admittance $\mathbf{y}_c$ | $\mathbf{v}_{2}\in\mathbb{R}^N$ | `Yc` | $\mathbf{i}^{\mathrm{sh}}_{2}\in\mathbb{R}^K$
33-
[`Propagation`](../../../Operators/Shift/Propagation/README.md) $\mathbf{h}$ | $2\mathbf{i}^{\mathrm{sh}}_{2}-\mathbf{i}^{\mathrm{inc}}_{2}$ | `H` | $\mathbf{i}^{\mathrm{inc}}_{1}\in\mathbb{R}^K$
34-
[`Propagation`](../../../Operators/Shift/Propagation/README.md) $\mathbf{h}$ | $2\mathbf{i}^{\mathrm{sh}}_{1}-\mathbf{i}^{\mathrm{inc}}_{1}$ | `H` | $\mathbf{i}^{\mathrm{inc}}_{2}\in\mathbb{R}^K$
42+
```math
43+
\begin{aligned}
44+
f^{\mathbf{y}_c} &: \mathbb{R}^N \rightarrow \mathbb{R}^K \\
45+
f^{\mathbf{h}} &: \mathbb{R}^K \rightarrow \mathbb{R}^K
46+
\end{aligned}
47+
```
3548

3649
## Model Variables
3750

@@ -43,16 +56,21 @@ None.
4356

4457
#### Algebraic
4558

46-
None.
59+
Symbol | Units | Description | Note
60+
------ | ----- | ----------- | ----
61+
$\mathbf{i}^{\mathrm{sh}}_{1}$ | [A] | Shunt current at terminal `1` | $\mathbf{i}^{\mathrm{sh}}_{1}\in\mathbb{R}^K$
62+
$\mathbf{i}^{\mathrm{sh}}_{2}$ | [A] | Shunt current at terminal `2` | $\mathbf{i}^{\mathrm{sh}}_{2}\in\mathbb{R}^K$
63+
$\mathbf{i}^{\mathrm{inc}}_{1}$ | [A] | Incident current at terminal `1` | $\mathbf{i}^{\mathrm{inc}}_{1}\in\mathbb{R}^K$
64+
$\mathbf{i}^{\mathrm{inc}}_{2}$ | [A] | Incident current at terminal `2` | $\mathbf{i}^{\mathrm{inc}}_{2}\in\mathbb{R}^K$
4765

4866
### External Variables
4967

5068
External variables are owned by the EMT bus.
5169

5270
#### Differential
5371

54-
Symbol | Units | Description | Note
55-
-------------------------------------|-------|------------------------------------------|-----
72+
Symbol | Units | Description | Note
73+
------ | ----- | ----------- | ----
5674
$\mathbf{v}_{1}$ | [V] | Terminal `1` voltage owned by EMT bus | $\mathbf{v}_{1} \in \mathbb{R}^N$
5775
$\mathbf{v}_{2}$ | [V] | Terminal `2` voltage owned by EMT bus | $\mathbf{v}_{2} \in \mathbb{R}^N$
5876

@@ -82,17 +100,17 @@ None.
82100
```math
83101
\begin{aligned}
84102
\mathbf{i}^{\mathrm{sh}}_{1} &=
85-
\mathbf{y}_c*\mathbf{v}_{1} \\
103+
f^{\mathbf{y}_c}(\mathbf{v}_{1}) \\
86104
\mathbf{i}^{\mathrm{sh}}_{2} &=
87-
\mathbf{y}_c*\mathbf{v}_{2} \\
105+
f^{\mathbf{y}_c}(\mathbf{v}_{2}) \\
88106
\mathbf{i}^{\mathrm{inc}}_{1} &=
89-
\mathbf{h}*\left(
107+
f^{\mathbf{h}}\left(
90108
2\mathbf{i}^{\mathrm{sh}}_{2}
91109
-
92110
\mathbf{i}^{\mathrm{inc}}_{2}
93111
\right) \\
94112
\mathbf{i}^{\mathrm{inc}}_{2} &=
95-
\mathbf{h}*\left(
113+
f^{\mathbf{h}}\left(
96114
2\mathbf{i}^{\mathrm{sh}}_{1}
97115
-
98116
\mathbf{i}^{\mathrm{inc}}_{1}
@@ -115,15 +133,62 @@ None.
115133

116134
## Initialization
117135

118-
Let subscript $0$ denote initial values. Initial values satisfy the wiring
119-
equations:
136+
### Input Initialization
120137

121138
```math
122139
\begin{aligned}
123-
\mathbf{i}^{\mathrm{sh}}_{1,0} &= \mathbf{y}_c*\mathbf{v}_{1,0} \\
124-
\mathbf{i}^{\mathrm{sh}}_{2,0} &= \mathbf{y}_c*\mathbf{v}_{2,0} \\
125-
\mathbf{i}^{\mathrm{inc}}_{1,0} &= \mathbf{h}*\left(2\mathbf{i}^{\mathrm{sh}}_{2,0} - \mathbf{i}^{\mathrm{inc}}_{2,0}\right) \\
126-
\mathbf{i}^{\mathrm{inc}}_{2,0} &= \mathbf{h}*\left(2\mathbf{i}^{\mathrm{sh}}_{1,0} - \mathbf{i}^{\mathrm{inc}}_{1,0}\right)
140+
\mathbf{v}_1,\mathbf{v}_2
141+
&\leftarrow \text{terminal-bus voltage}
142+
\end{aligned}
143+
```
144+
145+
### Internal Initialization
146+
147+
Initialization assigns the internal line currents in dependency order:
148+
149+
```math
150+
\begin{aligned}
151+
\mathbf{i}^{\mathrm{sh}}_{1}
152+
&\leftarrow f^{\mathbf{y}_c}(\mathbf{v}_{1}) \\
153+
\mathbf{i}^{\mathrm{sh}}_{2}
154+
&\leftarrow f^{\mathbf{y}_c}(\mathbf{v}_{2}) \\
155+
\mathbf{i}^{\mathrm{inc}}_{1}
156+
&\leftarrow
157+
f^{\mathbf{h}}\left(
158+
2\mathbf{i}^{\mathrm{sh}}_{2}
159+
-
160+
\mathbf{i}^{\mathrm{inc}}_{2}
161+
\right) \\
162+
\mathbf{i}^{\mathrm{inc}}_{2}
163+
&\leftarrow
164+
f^{\mathbf{h}}\left(
165+
2\mathbf{i}^{\mathrm{sh}}_{1}
166+
-
167+
\mathbf{i}^{\mathrm{inc}}_{1}
168+
\right)
169+
\end{aligned}
170+
```
171+
172+
### Output Initialization
173+
174+
Current-injection ports are assigned from initialized internal line currents.
175+
176+
```math
177+
\begin{aligned}
178+
\mathbf{i}^{\mathrm{inj}}_{1}
179+
&\leftarrow
180+
\mathbf{P}_\phi\left(
181+
\mathbf{i}^{\mathrm{inc}}_{1}
182+
-
183+
\mathbf{i}^{\mathrm{sh}}_{1}
184+
\right) \\
185+
\mathbf{i}^{\mathrm{inj}}_{2}
186+
&\leftarrow
187+
\mathbf{P}_\phi\left(
188+
\mathbf{i}^{\mathrm{inc}}_{2}
189+
-
190+
\mathbf{i}^{\mathrm{sh}}_{2}
191+
\right)
127192
\end{aligned}
128193
```
129194

0 commit comments

Comments
 (0)