11# Bus Model
22
3- ` Bus ` represents a three -phase bus in instantaneous abc coordinates. The
3+ ` Bus ` represents an $N$ -phase bus in instantaneous phase coordinates. The
44bus voltages are differential variables, and the model equations enforce
5- three-phase current balance at the bus.
5+ current balance at the bus.
66
77## Model Parameters
88
99Symbol | Units | JSON | Description | Note
1010------ | ----- | ---- | ----------- | ----
11- $N$ | [ -] | ` N ` | Number of connected-device ports | Required, positive integer
11+ $M$ | [ -] | ` M ` | Number of connected-device ports | Required, positive integer
12+ $N$ | [ -] | ` N ` | Number of phases | Required, positive integer
13+ $\mathbf{v}_ 0$ | [ V] | ` v0 ` | Initial bus voltage vector | $\mathbf{v}_ 0 \in \mathbb{R}^N$
1214
1315### Parameter Validation
1416
1517``` math
16- N > 0
18+ \begin{aligned}
19+ M &> 0 \\
20+ N &> 0 \\
21+ \mathbf{v}_0 &\in \mathbb{R}^N
22+ \end{aligned}
1723```
1824
1925### Model Derived Parameters
2834
2935Symbol | Units | Description | Note
3036------ | ----- | ----------- | ----
31- $\mathbf{v}$ | [ V] | Bus voltage vector | $\mathbf{v} = [ v_a, v_b, v_c ] ^T \in \mathbb{R}^3 $
37+ $\mathbf{v}$ | [ V] | Bus voltage vector | $\mathbf{v} \in \mathbb{R}^N $
3238
3339#### Algebraic
3440
@@ -46,50 +52,39 @@ None.
4652
4753## Model Ports
4854
49- Symbol | Type | Units | Description | Note
50- ------ | ---- | ----- | ----------- | ----
51- $\mathbf{i}^{\mathrm{inj}}_ e $ | Input | [ A] | Current injection from connected device $e $ | $e =1,\ldots,N$
55+ Symbol | Port | Type | Units | Description | Note
56+ ------ | ---- | ---- | ---- - | ----------- | ----
57+ $\mathbf{i}^{\mathrm{inj}}_ m $ | ` i ` | Input | [ A] | Current injection from connected device $m $ | $m =1,\ldots,M$, $\mathbf{i}^{\mathrm{inj}} _ m \in \mathbb{R}^ N$
5258
5359## Model Equations
5460
5561### Differential Equations
5662
5763``` math
5864\begin{aligned}
59- 0 &= \sum_{e =1}^{N } \mathbf{i}^{\mathrm{inj}}_e
65+ 0 &= \sum_{m =1}^{M } \mathbf{i}^{\mathrm{inj}}_m
6066\end{aligned}
6167```
6268
63- Each $\mathbf{i}^{\mathrm{inj}}_ e $ may depend on the bus voltage and bus voltage derivative.
69+ Each $\mathbf{i}^{\mathrm{inj}}_ m $ may depend on the bus voltage and bus voltage derivative.
6470
6571### Algebraic Equations
6672
6773None.
6874
6975## Initialization
7076
71- For a balanced three-phase initialization derived from phasor voltage
72- $V = |V| \angle \phi$ and nominal angular frequency $\omega_0 = 2 \pi f_0$:
77+ The initial bus voltage is given by the parameter vector $\mathbf{v}_ 0$:
7378
7479``` math
75- \begin{aligned}
76- \mathbf{v}(0) = \sqrt{2}|V|
77- \begin{bmatrix}
78- \cos(\phi) \\
79- \cos(\phi - \tfrac{2\pi}{3}) \\
80- \cos(\phi + \tfrac{2\pi}{3})
81- \end{bmatrix} \\
82- \dot{\mathbf{v}}(0) = -\sqrt{2}|V|\omega_0
83- \begin{bmatrix}
84- \sin(\phi) \\
85- \sin(\phi - \tfrac{2\pi}{3}) \\
86- \sin(\phi + \tfrac{2\pi}{3})
87- \end{bmatrix}
88- \end{aligned}
80+ \mathbf{v}(0)=\mathbf{v}_0
8981```
9082
83+ Only $\mathbf{v}(0)$ is initialized. The solver computes
84+ $\dot{\mathbf{v}}(0)$ from the differential residual.
85+
9186## Monitors
9287
9388Monitor | Units | Description | Note
9489------- | ----- | ----------- | ----
95- ` v ` | [ V] | Bus voltage | $\mathbf{v} \in \mathbb{R}^3 $
90+ ` v ` | [ V] | Bus voltage | $\mathbf{v} \in \mathbb{R}^N $
0 commit comments