Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8cd11d7
Document EMT distributed frequency-dependent branch model
lukelowry Jun 15, 2026
642c7aa
Document EMT rational transfer and state-space components
lukelowry Jun 15, 2026
8f6f9e7
Document EMT propagation component
lukelowry Jun 15, 2026
8109ca1
Diagram and documentation for EMT delay model
lukelowry Jun 12, 2026
dd8a3d4
Refine and reogranize [skip ci]
lukelowry Jun 16, 2026
425227f
Update diagrams [skip ci]
lukelowry Jun 16, 2026
4e8a7b6
Fix GH Math Rendering [skip ci]
lukelowry Jun 16, 2026
c5dfba0
Fix GH Math render again [skip ci]
lukelowry Jun 16, 2026
80e5a58
Fix GH Math render x3 [skip ci]
lukelowry Jun 16, 2026
641d0d9
StateSpace and diagram updates
lukelowry Jun 20, 2026
02368f7
Polished and corrected Delay
lukelowry Jun 20, 2026
29fa158
corrected propagation model
lukelowry Jun 20, 2026
551dab6
Polish and standardize VecFit
lukelowry Jun 20, 2026
de920de
StateSpace doc adjust [skip ci]
lukelowry Jun 20, 2026
7cb2adc
Polish/fix LineDistributed (which is now fully expressed as ODE) [sk…
lukelowry Jun 20, 2026
5a9ea82
Update Bus docs [skip ci]
lukelowry Jun 20, 2026
77d277d
Refine LineLumped
lukelowry Jun 20, 2026
6ced03d
Clean LoadRL docs [skip ci]
lukelowry Jun 20, 2026
5c1bc7a
Polish VoltageSource [skip ci]
lukelowry Jun 20, 2026
071a42b
Final documentation polish [skip ci]
lukelowry Jun 20, 2026
78dce82
image alignment [skip ci]
lukelowry Jun 23, 2026
32bcf66
images in md format [skip ci]
lukelowry Jun 23, 2026
f73a4e2
polish bus formulation [skip ci]
lukelowry Jun 23, 2026
9082c58
main EMT root and Bus
lukelowry Jul 9, 2026
c8fb5bb
updated EMT docs partially
lukelowry Jul 9, 2026
76a617b
Directory and Bus
lukelowry Jul 9, 2026
6174365
initial standardization attempt
lukelowry Jul 9, 2026
934af3b
Cleaner more consistant documentation
lukelowry Jul 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 66 additions & 39 deletions GridKit/Model/EMT/Bus/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
# Bus Model

`Bus` represents a three-phase bus in instantaneous abc coordinates. The
bus voltages are differential variables, and the model equations enforce
three-phase current balance at the bus.
`Bus` represents an $N$-phase bus in instantaneous phase coordinates. The bus
voltage is differential, and the model equations enforce current balance.
$\mathcal{E}$ denotes the set of connected devices.

> [!NOTE]
> A template parameter will select whether $\mathbf{v}$ is a differential or
> algebraic vector. This page documents the nondegenerate differential
> formulation. Initial end-to-end support is three-phase, although the
> formulation remains $N$-phase.

## Block Diagram

None.

## Model Parameters

Symbol | Units | JSON | Description | Note
------ | ----- | ---- | ----------- | ----
$N$ | [-] | `N` | Number of phases | Required, positive integer

### Parameter Validation

```math
N > 0
```

### Derived Parameters

None.

## Submodels

None.

## Model Derived Parameters
### Submodel Validation

None.

Expand All @@ -18,9 +44,9 @@ None.

#### Differential

Symbol | Units | Description | Note
---------|-------|--------------------|--------------------------------
$\mathbf{v}$ | [V] | Bus voltage vector | $\mathbf{v} = [v_a, v_b, v_c]^T \in \mathbb{R}^3$
Symbol | Units | Description | Note
------ | ----- | ----------- | ----
$\mathbf{v}$ | [V] | Bus voltage vector | $\mathbf{v} \in \mathbb{R}^N$

#### Algebraic

Expand All @@ -36,55 +62,56 @@ None.

None.

## Model Ports

Symbol | Type | Units | Description | Note
------ | ---- | ----- | ----------- | ----
$\mathbf{i}^{\mathrm{inj}}_e$ | Input | [A] | Current injection from connected device $e$ | $e \in \mathcal{E}$, $\mathbf{i}^{\mathrm{inj}}_e \in \mathbb{R}^N$

## Model Equations

### Differential Equations

An explicit representation for $\dot{\mathbf{v}}$ is not used because
the effective shunt admittances depend on connected components and are not
known at the bus level. The implicit DAE solver operates directly on
the accumulated KCL residual:

``` math
\begin{aligned}
0 &= \sum_{e \in \mathcal{E}} \mathbf{i}^\text{inj}_e
\end{aligned}
```math
0 = \sum_{e \in \mathcal{E}} \mathbf{i}^{\mathrm{inj}}_e
```

where $\mathbf{i}^\text{inj}_e$ is the vector of phase-current injections
of connected component $e$ into the bus, which are a function of the bus voltage and bus voltage derivative.

### Algebraic Equations

None.

### Wiring

None.

## Initialization

For a balanced three-phase initialization derived from the phasor voltage
$V = |V| \angle \phi$ and nominal angular frequency $\omega_0 = 2 \pi f_0$,
### Input Initialization

``` math
\mathbf{v}(0) = \sqrt{2}\,|V|
\begin{bmatrix}
\cos(\phi) \\
\cos(\phi - \tfrac{2\pi}{3}) \\
\cos(\phi + \tfrac{2\pi}{3})
\end{bmatrix}
```math
\begin{aligned}
\mathbf{i}^{\mathrm{inj}}_e
&\leftarrow \text{connected-device current},
\quad e \in \mathcal{E}
\end{aligned}
```

and
### Internal Initialization

``` math
\dot{\mathbf{v}}(0) = -\sqrt{2}\,|V|\,\omega_0
\begin{bmatrix}
\sin(\phi) \\
\sin(\phi - \tfrac{2\pi}{3}) \\
\sin(\phi + \tfrac{2\pi}{3})
\end{bmatrix}
Symbol | Units | JSON | Description | Note
------ | ----- | ---- | ----------- | ----
$\mathbf{v}_0$ | [V] | `init.v0` | Initial bus-voltage vector | Required, $\mathbf{v}_0 \in \mathbb{R}^N$

```math
\mathbf{v} \leftarrow \mathbf{v}_0
```

## Model Outputs
### Output Initialization

None.

Phase voltages $v_a$, $v_b$, and $v_c$ are monitorable model outputs.
## Monitors

Phase-voltage derivatives $\dot{v}_a$, $\dot{v}_b$, and $\dot{v}_c$ are also available as monitorable outputs.
Monitor | Units | Description | Note
------- | ----- | ----------- | ----
`v` | [V] | Bus voltage | $\mathbf{v} \in \mathbb{R}^N$
121 changes: 0 additions & 121 deletions GridKit/Model/EMT/Component/Branch/BranchLumpedConstant/README.md

This file was deleted.

21 changes: 0 additions & 21 deletions GridKit/Model/EMT/Component/Branch/README.md

This file was deleted.

Loading
Loading