Skip to content

Commit 2bea633

Browse files
esaruohoclaude
andcommitted
add loss-free resistor example circuit (pfalstad#132)
Add an example circuit demonstrating a loss-free resistor (LFR) built from VCCS and VCVS controlled sources. The LFR presents a resistive input characteristic while transferring absorbed power losslessly to its output port, as modeled by Singer (1990). This uses the approach demonstrated by Paul Falstad in the issue discussion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6b826de commit 2bea633

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
$ 1 0.000005 18.278915555614752 57 5 50 5e-11
2+
213 464 288 528 288 0 2 -(a-b)/1000
3+
w 464 288 464 240 0
4+
w 464 240 560 240 0
5+
w 560 240 560 288 0
6+
w 464 320 464 368 0
7+
w 464 368 560 368 0
8+
w 560 368 560 320 0
9+
g 464 368 464 400 0 0
10+
R 464 240 464 176 0 1 40 5 0 0 0.5
11+
212 624 256 640 256 46 lastoutput\p(a-b)^2/(.0001*1000*(d-c)\p.00000001)*timestep
12+
c 720 288 720 256 2 0.00009999999999999 2.035051474979456 4.01
13+
w 624 320 608 320 0
14+
w 608 320 608 400 0
15+
w 608 400 720 400 0
16+
w 720 400 720 288 0
17+
w 624 352 624 416 0
18+
w 624 416 784 416 0
19+
w 784 416 784 256 0
20+
w 784 256 720 256 0
21+
w 624 256 560 240 0
22+
w 624 288 560 320 0
23+
o 8 64 7 4355 0.0001 0.0001 0 1 0.02500000000000001
24+
o 10 64 7 4032 0.078125 3.2 0 1 0.0390625
25+
o 10 64 0 4039 2.5 0.2 1 2 10 3

src/com/lushprojects/circuitjs1/public/setuplist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ ccdiff.txt Current Differentiator
436436
ccint.txt Current Integrator
437437
ccitov.txt Current-Controlled Voltage Source
438438
-
439+
+Loss-Free Resistor
440+
lfr.txt Loss-Free Resistor
441+
-
439442
+Spark Gap
440443
spark-sawtooth.txt Sawtooth Generator
441444
tesla.txt Tesla Coil

0 commit comments

Comments
 (0)