For me it is difficult to understand what you try to achieve.
There are two ways running a simulation in KiCad:
- Use the integrated ngspice
- Generate a netlist and simulate externally with whatever simulator (e.g. PSPICE).
**Set current directory to project before run custom simulator
What do you mean by: “ngspice tool do not understand windows system absolute file path that automatically send by KiCad” ? Could you give an example?
** simulation: TEMP sweep not able to plot anything
You are using eeschema/ngspice in a way that has not been intended by the devs and that is not supported. KiCad sends the netlist, .tran etc. command and a ‘run’ command to ngspice and gets back all simulation results for plotting. Your setup generates its own simulation command and issues a request for plotting, both from inside of ngspice. Whereas running the simulation this way is possible, it is not possible to plot the data, because shared ngspice does not have its own plot interface, and eeschema does not know about the data generated by ngspice. So you only might save the data by ‘write’ command and use an external plotting program (e.g. stand-alone ngspice).
**Can’t start a multi-line SPICE directive with a commented-out line
Did you check with a recent nightly if this has been fixed? If not, I could have a look.
** ngspice use net name “0” (Zero) as a reference ground not GND
This is wrong. ngspice always understood GND. Internally it will be transformed into ‘0’. ‘0’ is required somewhere as a reference. If you do not want this automated translation, you may give the command ‘set no_auto_gnd’. Then you have to provide your own ‘0’ somewhere in the netlist.
If you intend to generate a netlist compatible with an external other simulator, you have to state that clearly in your bug report. And then the devs have to decide if this should be supported.