Skip to content

Commit 76e2e43

Browse files
esaruohoclaude
andcommitted
Clean up circuit file and move menu entry to bottom of Misc Devices
Address Paul feedback on PR pfalstad#252: - Remove captured simulation state from capacitor (voltdiff, initialVoltage) - Fix floating-point noise in capacitance value (0.00009999999999999 -> 1e-4) - Remove extra minTimeStep parameter from settings line - Replace garbled scope lines with clean voltage/current scopes - Move Loss-Free Resistor to bottom of Misc Devices menu Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 89fb968 commit 76e2e43

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/com/lushprojects/circuitjs1/public/circuits/lfr.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$ 1 0.000005 18.278915555614752 57 5 50 5e-11
1+
$ 1 0.000005 18.278915555614752 57 5 50
22
213 464 288 528 288 0 2 -(a-b)/1000
33
w 464 288 464 240 0
44
w 464 240 560 240 0
@@ -9,7 +9,7 @@ w 560 368 560 320 0
99
g 464 368 464 400 0 0
1010
R 464 240 464 176 0 1 40 5 0 0 0.5
1111
212 624 256 640 256 46 4 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
12+
c 720 288 720 256 2 1e-4 0 0.001
1313
w 624 320 608 320 0
1414
w 608 320 608 400 0
1515
w 608 400 720 400 0
@@ -20,6 +20,5 @@ w 784 416 784 256 0
2020
w 784 256 720 256 0
2121
w 624 256 560 240 0
2222
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
23+
o 8 64 0 4099 5 0.05 0 2 8 3
24+
o 10 64 0 4098 5 0.05 1 1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,6 @@ ccdiff.txt Current Differentiator
436436
ccint.txt Current Integrator
437437
ccitov.txt Current-Controlled Voltage Source
438438
-
439-
lfr.txt Loss-Free Resistor
440439
+Spark Gap
441440
spark-sawtooth.txt Sawtooth Generator
442441
tesla.txt Tesla Coil
@@ -461,5 +460,6 @@ triacdimmer.txt DIAC/TRIAC Dimmer
461460
ujtosc.txt Unijunction Oscillator
462461
3motor.txt 3-Phase Motor
463462
latchingrelay.txt Latching Relay
463+
lfr.txt Loss-Free Resistor
464464
-
465465
blank.txt Blank Circuit

0 commit comments

Comments
 (0)