Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve formatting component modeling documentation #439

Merged
merged 15 commits into from
Dec 11, 2023
58 changes: 29 additions & 29 deletions docs/user_manual/components.md
nitbharambe marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ if any of the faults in any of the scenarios within a batch are not three-phase

#### Electric Model

`line` is described by a π model, where
`line` is described by a $\pi$ model, where

$$
\begin{eqnarray}
Z_\mathrm{series} & = & r + \mathrm{j}x \\
Y_\mathrm{shunt} & = & 2 \pi fc/(tan \sigma +\mathrm{j})
& Z_{\text{series}} = r + \mathrm{j}x \\
& Y_{\text{shunt}} = \frac{2 \pi fc}{\tan \sigma +\mathrm{j}}
mgovers marked this conversation as resolved.
Show resolved Hide resolved
\end{eqnarray}
$$

Expand All @@ -154,11 +154,11 @@ two busbars inside a substation. It has a very high admittance (small impedance)
There is no additional attribute for `link`.

#### Electric Model:
`link` is modeled by a constant reactance $Y_\mathrm{series}$, where
`link` is modeled by a constant reactance $Y_{\text{series}}$, where

$$
\begin{eqnarray}
Y_\mathrm{series} & = & 1 & \times 10^6 * ( 1+ \mathrm{j} ) p.u. &.
Y_{\text{series}} = (1 + \mathrm{j}) \cdot 10^6 \,\mathrm{p.u.}
\end{eqnarray}
$$

Expand Down Expand Up @@ -202,27 +202,27 @@ increased.
```

#### Electric Model
`transformer` is described by a π model, where $Z_\mathrm{series}$ can be computed as
`transformer` is described by a $\pi$ model, where $Z_{\text{series}}$ can be computed as

$$
\begin{eqnarray}
& |Z_\mathrm{series}| = uk / z_\mathrm{base}\\
&\mathrm{Re}(Z_\mathrm{series}) = (pk/sn) / z_\mathrm{base}\\
&\mathrm{Im}(Z_\mathrm{series}) = \sqrt{|Z_\mathrm{series}|^2-\mathrm{Re}(Z_\mathrm{series})^2} \\
& |Z_{\text{series}}| = \frac{u_k}{z_{\text{base}}} \\
&\mathrm{Re}(Z_{\text{series}}) = \frac{p_k / s_n}{z_{\text{base}}}\\
&\mathrm{Im}(Z_{\text{series}}) = \sqrt{|Z_{\text{series}}|^2-\mathrm{Re}(Z_{\text{series}})^2} \\
\end{eqnarray}
$$

and $Y_\mathrm{shunt}$ can be computed as
and $Y_{\text{shunt}}$ can be computed as

$$
\begin{eqnarray}
&|Y_\mathrm{shunt}| = i0 / y_\mathrm{base} \\
&\mathrm{Re}(Y_\mathrm{shunt}) = (sn/p0) / y_\mathrm{base} \\
&\mathrm{Im}(Y_\mathrm{shunt}) = -\sqrt{|Y_\mathrm{shunt}|^2-\mathrm{Re}(Y_\mathrm{shunt})^2} \\
&|Y_{\text{shunt}}| = \frac{i_0}{y_{\text{base}}} \\
&\mathrm{Re}(Y_{\text{shunt}}) = \frac{s_n / p_0}{y_{\text{base}}} \\
&\mathrm{Im}(Y_{\text{shunt}}) = -\sqrt{|Y_{\text{shunt}}|^2-\mathrm{Re}(Y_{\text{shunt}})^2} \\
\end{eqnarray}
$$

where $z_\mathrm{base} = 1/ y_\mathrm{base}= sn/(u2^2)$.
where $z_{\text{base}} = 1/ y_{\text{base}}= s_n / ({u_2}^2)$.

## Branch3
nitbharambe marked this conversation as resolved.
Show resolved Hide resolved

Expand Down Expand Up @@ -391,21 +391,21 @@ Its value can be computed using following equations:

$$
\begin{eqnarray}
& z_\mathrm{source} = s_\mathrm{base} / sk \\
& x_1 = z_\mathrm{source} \times \sqrt{1+ rx\_ ratio^2}\\
& r_1= x_1 \times rx\_ ratio
& z_{\text{source}} = \frac{s_{\text{base}}}{s_k} \\
& x_1 = z_{\text{source}} \sqrt{1+ (\frac{r}{x})^2}\\
& r_1 = x_1 \cdot (\frac{r}{x})^2
mgovers marked this conversation as resolved.
Show resolved Hide resolved
\end{eqnarray}
$$

where $s_\mathrm{base}$ is a constant value $1 \times 10^6$.
where $s_{\text{base}}$ is a constant value $10^6$, and $\frac{r}{x}$ indicates `rx_ratio` as input.
mgovers marked this conversation as resolved.
Show resolved Hide resolved

- for zero sequence,

$$
\begin{eqnarray}
&z_\mathrm{source,0} = z_\mathrm{source} \times z01\_ ratio\\
&x_0 = z_\mathrm{source,0} \times \sqrt{1+ rx\_ ratio^2}\\
&r_0= x_0 \times rx\_ ratio
&z_{\text{source, 0}} = z_{\text{source}} \cdot \frac{z_0}{z_1}\\
&x_0 = z_{\text{source, 0}} \sqrt{1+ (\frac{r}{x})^2}\\
&r_0= x_0 \cdot (\frac{r}{x})^2
mgovers marked this conversation as resolved.
Show resolved Hide resolved
\end{eqnarray}
$$

Expand Down Expand Up @@ -441,7 +441,7 @@ However, the reference direction and meaning of `RealValueInput` is different, a

##### Electric model

`generic_load_gen` are modelled by using the so-called ZIP load model in power-grid-model,
`generic_load_gen` is modelled by using the so-called ZIP load model in power-grid-model,
where a load/generator is represented as a composition of constant power (P), constant current (I) and constant impedance (Z).

The injection of each ZIP model type can be computed as follows:
Expand All @@ -450,23 +450,23 @@ The injection of each ZIP model type can be computed as follows:

$$
\begin{eqnarray}
S = S_\mathrm{specified} \times \bar{u}^2
S = S_{\text{specified}} \cdot \bar{u}^2
\end{eqnarray}
$$

- for a constant current (I) load/generator,

$$
\begin{eqnarray}
S = S_\mathrm{specified} \times \bar{u}
S = S_{\text{specified}} \cdot \bar{u}
\end{eqnarray}
$$

- for a constant power (P) load/generator:,

$$
\begin{eqnarray}
S = S_\mathrm{specified}
S = S_{\text{specified}}
\end{eqnarray}
$$

Expand Down Expand Up @@ -558,8 +558,8 @@ voltage is a line-to-line voltage. In a `asym_voltage_sensor` the measured volta

$$
\begin{eqnarray}
&& u\_ residual = u\_ measured - u\_ state \\
&& u\_ angle\_ residual = u\_ angle\_ measured - u\_ angle\_ state
& u_{\text{residual}} = u_{\text{measured}} - u_{\text{state}} \\
& \theta_{\text{residual}} = \theta_{\text{measured}} - \theta_{\text{state}}
\end{eqnarray}
$$

Expand Down Expand Up @@ -630,8 +630,8 @@ See the documentation on [state estimation calculation methods](calculations.md#

$$
\begin{eqnarray}
p\_ residual = p\_ measured - p\_ state \\
q\_ residual = q\_ measured - q\_ state
& p_{\text{residual}} = p_{\text{measured}} - p_{\text{state}} \\
& q_{\text{residual}} = q_{\text{measured}} - q_{\text{state}}
\end{eqnarray}
$$

Expand Down