Ngspice not recognizing components

I hope you’re having a great day.
Today i was working on a simple diode simulation in kicad, and when I went to simulate the circuit, this error came up:
Fatal error: DC Transfer Function: Voltage source, current source, or resistor named “b1” is not in the circuit
doAnalyses: no such device
run simulation(s) aborted.

This suprised me because on the netlist B1 was defined:

.title KiCad schematic
.include "C:/Users/1/Downloads/1N914.lib"
.model D1.D1N914 D
+                is=3.45n
+                rs=0.452422
+                n=1.94
+                tt=10.12n
+                cjo=8.68e-13
+                vj=0.90906
+                m=0.02504
+                ikf=0.0528
+                eg=0.92
+                fc=0.5
+                bv=100
+                ibv=10u
+                isr=1.01n
+                nr=2
.save all
.probe alli
.dc B1 0 10 500m
B1 Net-_B1-N+_ 0 V=1
R1 Net-_D1-K_ 0 9.95Meg
R2 unconnected-_R2-Pad1_ unconnected-_R2-Pad2_ R
D1 Net-_D1-K_ Net-_B1-N+_ D1.D1N914
.end

(the netlist in question).

Furthermore, in the netlist, there is a second resistance wich I did not use.

Because of that, I’ve come here so that the good samaritans of the forums could help solve this problem. What can I do to remove this error and go on with the simulaton?
Thank you and have a nice day :smile:
P.S, since I’m a new user, the website doesn’t let me atach files, therefore, I leave the link for a youtube video of a circuit with the same design as mine:
[the template of my circuit]
(https://www.youtube.com/watch?v=yyx0MoS4QWM)

The ‘dc’ command does support only I and V sources.

So use a standard voltage source V (ngspice manual chpater 4) instead of the B source.

1 Like

Twank ywou wewy much holgy :smiling_face_with_three_hearts:

On a more serious note, I am trully thankfull for your help. I hope the best for you and your family.