ACLine#

Common Parameters: u, name, bus1, bus2, r, x

Common Variables: v1, v2, a1, a2

Available models: Line

Line#

AC transmission line model.

To reduce the number of variables, line injections are summed at bus equations and are not stored. Current injections are not computed.

Parameters#

Name

Symbol

Description

Default

Unit

Properties

idx

unique device idx

u

\(u\)

connection status

1

bool

name

device name

bus1

idx of from bus

bus2

idx of to bus

Sn

\(S_n\)

Power rating

100

MW

non_zero

fn

\(f\)

rated frequency

60

Hz

Vn1

\(V_{n1}\)

AC voltage rating

110

kV

non_zero

Vn2

\(V_{n2}\)

rated voltage of bus2

110

kV

non_zero

r

\(r\)

line resistance

0.000

p.u.

z

x

\(x\)

line reactance

0.000

p.u.

z

b

shared shunt susceptance

0

p.u.

y

g

shared shunt conductance

0

p.u.

y

b1

\(b_1\)

from-side susceptance

0

p.u.

y

g1

\(g_1\)

from-side conductance

0

p.u.

y

b2

\(b_2\)

to-side susceptance

0

p.u.

y

g2

\(g_2\)

to-side conductance

0

p.u.

y

trans

transformer branch flag

0

bool

tap

\(t_{ap}\)

transformer branch tap ratio

1

float

non_negative

phi

\(\phi\)

transformer branch phase shift in rad

0

radian

owner

owner code

xcoord

x coordinates

ycoord

y coordinates

Variables#

Name

Symbol

Type

Description

Unit

Properties

a1

\(a_{1}\)

ExtAlgeb

phase angle of the from bus

a2

\(a_{2}\)

ExtAlgeb

phase angle of the to bus

v1

\(v_{1}\)

ExtAlgeb

voltage magnitude of the from bus

v2

\(v_{2}\)

ExtAlgeb

voltage magnitude of the to bus

Initialization Equations#

Name

Symbol

Type

Initial Value

a1

\(a_{1}\)

ExtAlgeb

a2

\(a_{2}\)

ExtAlgeb

v1

\(v_{1}\)

ExtAlgeb

v2

\(v_{2}\)

ExtAlgeb

Algebraic Equations#

Name

Symbol

Type

RHS of Equation "0 = g(x, y)"

a1

\(a_{1}\)

ExtAlgeb

\(u \left(- 1/t_{ap} v_{1} v_{2} \left(- b_{hk} \sin{\left(\phi - a_{1} + a_{2} \right)} + g_{hk} \cos{\left(\phi - a_{1} + a_{2} \right)}\right) + 1/t_{ap}^2 v_{1}^{2} \left(g_{h} + g_{hk}\right)\right)\)

a2

\(a_{2}\)

ExtAlgeb

\(u \left(- 1/t_{ap} v_{1} v_{2} \left(b_{hk} \sin{\left(\phi - a_{1} + a_{2} \right)} + g_{hk} \cos{\left(\phi - a_{1} + a_{2} \right)}\right) + v_{2}^{2} \left(g_{h} + g_{hk}\right)\right)\)

v1

\(v_{1}\)

ExtAlgeb

\(u \left(- 1/t_{ap} v_{1} v_{2} \left(- b_{hk} \cos{\left(\phi - a_{1} + a_{2} \right)} - g_{hk} \sin{\left(\phi - a_{1} + a_{2} \right)}\right) - 1/t_{ap}^2 v_{1}^{2} \left(b_{h} + b_{hk}\right)\right)\)

v2

\(v_{2}\)

ExtAlgeb

\(u \left(1/t_{ap} v_{1} v_{2} \left(b_{hk} \cos{\left(\phi - a_{1} + a_{2} \right)} - g_{hk} \sin{\left(\phi - a_{1} + a_{2} \right)}\right) - v_{2}^{2} \left(b_{h} + b_{hk}\right)\right)\)

Services#

Name

Symbol

Equation

Type

gh

\(g_h\)

\(0.5 g + g_{1}\)

ConstService

bh

\(b_h\)

\(0.5 b + b_{1}\)

ConstService

gk

\(g_k\)

\(0.5 g + g_{2}\)

ConstService

bk

\(b_k\)

\(0.5 b + b_{2}\)

ConstService

yh

\(y_h\)

\(u \left(i b_{h} + g_{h}\right)\)

ConstService

yk

\(y_k\)

\(u \left(i b_{k} + g_{k}\right)\)

ConstService

yhk

\(y_{hk}\)

\(\frac{u}{r + i \left(x + 1.0 \cdot 10^{-8}\right) + 1.0 \cdot 10^{-8}}\)

ConstService

ghk

\(g_{hk}\)

\(\operatorname{re}{\left(y_{hk}\right)}\)

ConstService

bhk

\(b_{hk}\)

\(\operatorname{im}{\left(y_{hk}\right)}\)

ConstService

itap

\(1/t_{ap}\)

\(\frac{1}{t_{ap}}\)

ConstService

itap2

\(1/t_{ap}^2\)

\(\frac{1}{t_{ap}^{2}}\)

ConstService

Config Fields in [Line]

Option

Symbol

Value

Info

Accepted values

allow_adjust

1

allow adjusting upper or lower limits

(0, 1)

adjust_lower

0

adjust lower limit

(0, 1)

adjust_upper

1

adjust upper limit

(0, 1)