ra3xdh / qucs_s

Qucs-S is a circuit simulation program with Qt-based GUI
https://ra3xdh.github.io/
GNU General Public License v2.0
838 stars 108 forks source link

Spice netlist versus .INCLUDE Issues #951

Closed tomhajjar closed 13 hours ago

tomhajjar commented 1 day ago

Discussion #950 has found a few more issues. Attached are two schematics showing the issues.

1) The SB5100.lib diode Spice model doesn't work. See SB5100_recovery.sch. The model does work if it is made into a sub-circuit using "Spice netlist". See SB5100_sub_recovery.sch.

2) When making the subcircuit SB5100_sub.sch, the 1ST time you make it the filename has the entire PATH. When you place this sub in the schematic, the simulation fails and you find the "Spice netlist" is missing. You have to re-open SB5100_sub.sch, place another "Spice netlist" and Browse again for SB5100.lib. I made SB5100_sub_1st.sch to show the problem.

2024-09-17_235825 2024-09-17_235803 2024-09-18_001529 2024-09-18_003044

Rectifiers_prj.zip LTspice SB5100.zip

ra3xdh commented 21 hours ago

The SB5100 diode model works on my machine. See https://github.com/ra3xdh/qucs_s/discussions/950#discussioncomment-10682790

the 1ST time you make it the filename has the entire PATH. When you place this sub in the schematic, the simulation fails and you find the "Spice netlist" is missing.

The application applies relative path conversion after #640 The path is set relatively to project directory or containing schematic directory. This may be fixed as the following: