saving . . . saved unable to locate components has been deleted. unable to locate components has been hidden .
unable to locate components
Title
Question
Dear sir,

I am not able to find Non-linear Dependent Sources and switches in kicad ,which are available in ngspice.

Regards,
Biren

KiCad Designing-circuit-schematic-in-KiCad 00-01 min 0-10 sec 14-04-14, 11:42 a.m. Biren

Answers:

Hi,
KiCad is not meant for simulation. So you would not find these components in KiCad. If you are looking to simulate a circuit with dependent sources, please use Oscad. http://www.oscad.in/ Oscad uses KiCad for schematic creation and Ngspice for simulation. We have created most of the components for simulation. You can include them in your schematic by loading the Oscad libraries. You may want to listen to the Oscad tutorial on schematic creation and simulation , available here http://www.spoken-tutorial.org/list_videos?view=1&foss=Oscad&language=English , for more details.
14-04-14, 1:27 p.m. rakhiwarriar


Dear rakhi,

I already loaded OSCAD libraries and not able to locate voltage controlled switch component which can be simulated with ngspice.I am not able to design new switch model using model builder also.


15-04-14, 10:29 a.m. Biren


Can you give us more details about the circuit you want to simulate? If the component is not there in Oscad, we shall create it and let you know how you can use it. Send us a screenshot/link of the circuit you want to simulate.
15-04-14, 3:31 p.m. rakhiwarriar



<font face="Open Sans, Helvetica Neue, Helvetica, Arial, sans-serif" size="3">

</font>
15-04-14, 8:25 p.m. Biren



Please refer following link

http://www.ecircuitcenter.com/SPICEsummary.htm

I am trying to simulate 'analog behavioral models' for implementation of piece wise linear model of diode.First i made sub circuit using sub circuit builder.
v1 2 1 dc 0.7
u1 3 1 port
a1 3 (3 2) u2
.model u2 aswitch(cntl_on=0.7 cntl_off=0.699 r_on=0.01 r_off=1e6)//

Now i tried to run
.include diode.sub

V_u2 5 3 0
V_u3 1 2 0
* Plotting option vplot8_1
x2 0 2 diode
r1 1 3 300
v1 0 4 dc 0.3
x1 4 3 diode
idc1 5 0 3m

.dc v1 100e-03 100e-03 100e-03
.plot i(V_u2)
.plot i(V_u3)
.plot v(3)
.end

I got following errors.
Warning: Dynamic gmin stepping failed

Warning: source stepping failed
doAnalyses: iteration limit reached

run simulation(s) aborted
Error: no such vector i(v_u2)
Error: no such vector i(v_u3)
Error: no such vector v(3)
ngspice 1 ->


15-04-14, 8:37 p.m. Biren


Dear Rakhi,

I got solution of above mention error but still need help in modeling analog behaviors model.It would be appreciated if you could help me in this problem.

15-04-14, 11:19 p.m. Biren


Sure, I shall go through this circuit and revert back. Let me know your queries.
16-04-14, 5:43 p.m. rakhiwarriar


How can i simulate following circuit in OSCAD? This circuit works well in ngspice.I am not able to develop resistor behavioral model and perform transient analysis with 'uic'.

R1 rr 2 r='V(rr)<{0}?{100MEG}:{2k}'
V2 1 0 0.6
V1 1 rr 0.7
R2 2 0 1k
.tran 100n 100u uic
.end
17-04-14, 10:19 p.m. Biren
Sorry for the delay.
One solution is to do the following: (1) Create the above circuit as a schematic in the Schematic Editor in Oscad. (2) Write the expression for resistance value (that is 'V(rr)<{0}?{100MEG}:{2k}') as the value in the "value" field of the resistor R1. For all other components give the corresponding values (e.g., for R2 give 1k) (3) Then proceed with the rest of the steps for simulation.
24-04-14, 6:02 p.m. rakhiwarriar

Login to add comment



17-04-14, 10:19 p.m. Biren


Hi,

Thanks for response,it works.


07-05-14, 10:58 p.m. Biren


Log-in to answer to this question.