2

I want to write the code for fullwave bridge rectifier with resistance as load and I wrote the following code. But it showed an error. It showed "No compatibility mode selected". This is the code I wrote.

fullwave bridge rectifier
*Specifying circuit components
v1 1 0 sin(0 15 60 0 0)
rload 2 3 17k
d1 1 2 mod1
d2 0 2 mod1
d3 3 1 mod1
d4 3 0 mod1
.model mod1 d
.tran .5m 25m
.plot tran v(1,0) v(2,3)
.end

I am new to ngspice and just currently learning it. I tried to browse through its manual but couldn't get what I am searching for. I also tried to browse through various sites to rectify my mistake in the code but I couldn't get any solution of what changes to do in the code. I need help to rectify my code proceed my learnings in ngspice. Thank You.

Ilario Pierbattista
  • 3,175
  • 2
  • 31
  • 41

1 Answers1

0
set spicebehavior=hs 

hs stands for hspice but you can use

set spicebehavior=all
coold69
  • 1
  • 1