A slight detour. My apologies if it hurts any feelings... If you are OK with running Jupyter Notebooks locally, this would work (both linux and windows): https://www.ee.iitb.ac.in/~sequel/nb_ngspice.html For linux, it requires the user to install NGSPICE locally following the usual installation procedure. For windows, it gets the zip file from the net and installs NGSPICE in a local directory.
withdrawn
Sorry about that.
I have been working on Jupyter Notebooks using a circuit simulator, as described here: https://www.ee.iitb.ac.in/~sequel/nb_list.html (see, for example, the section on "time constant in RC/RL circuits") However, the simulator being used in this work has a limited library. In order to extend this approach to electronics applications, I would like to use NGSPICE (on both linux and windows). Is there a way to install NGSPICE in a "local" directory such that it does not clash with any other NGSPICE installation...
That does the job. Thank you.
In the following, simulation is carried out for only one frequency value. In the data file created by ngspice, there are four columns: frequency, volts, frequency, values. How can I suppress writing of the frequency values? * from https://sourceforge.net/p/ngspice/discussion/133842/thread/029a277d/ * NMOS in dioded connection to test BSIM4 .param freq = 1Meg .csparam freq = {freq} M1 0 N001 0 0 cmosn l=0.7u w=10u ps=22u pd=22u ad=5u as=5u V1 in 0 1.8 ; pwl (0.0 -1.8 1u 1.8) VAC in N001 dc 0 ac 1...
diomask.c is what I need. Thanks. Sorry, I didn't notice it earlier.
If I create a function (in dio/diompar.c) like this: int DIOmParamRead(int param, IFvalue *value, GENmodel *inModel) { DIOmodel *model = (DIOmodel*)inModel; switch(param) { case DIO_MOD_LEVEL: value->iValue = model->DIOlevel; break; case DIO_MOD_IS: value->rValue = model->DIOsatCur; break; ... default: return(E_BADPARM); } return(OK); } will that work? This means that I will need to include lines like: .DEVmodParamRead = DIOmParamRead, in EVREY device. Is that correct? (Not too much work, it is on-time)...