Skip to content

Commit 52a031b

Browse files
authored
Merge pull request #845 from SciML/myb/d
`connect` -> `connect_pins` in the docs
2 parents 36ee979 + 3019f9c commit 52a031b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/src/tutorials/acausal_components.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ V = 1.0
7777
@named source = ConstantVoltage(V=V)
7878
@named ground = Ground()
7979

80-
function connect(ps...)
80+
function connect_pins(ps...)
8181
eqs = [
8282
0 ~ sum(p->p.i, ps) # KCL
8383
]
@@ -90,9 +90,9 @@ function connect(ps...)
9090
end
9191

9292
rc_eqs = [
93-
connect(source.p, resistor.p)
94-
connect(resistor.n, capacitor.p)
95-
connect(capacitor.n, source.n, ground.g)
93+
connect_pins(source.p, resistor.p)
94+
connect_pins(resistor.n, capacitor.p)
95+
connect_pins(capacitor.n, source.n, ground.g)
9696
]
9797

9898
@named rc_model = ODESystem(rc_eqs, t,
@@ -266,9 +266,9 @@ the source and the ground. This would mean our connection equations are:
266266

267267
```julia
268268
rc_eqs = [
269-
connect(source.p, resistor.p)
270-
connect(resistor.n, capacitor.p)
271-
connect(capacitor.n, source.n, ground.g)
269+
connect_pins(source.p, resistor.p)
270+
connect_pins(resistor.n, capacitor.p)
271+
connect_pins(capacitor.n, source.n, ground.g)
272272
]
273273
```
274274

0 commit comments

Comments
 (0)