Holger Vogt
fae9193f2b
add optran.c
2020-08-09 14:25:11 +02:00
Holger Vogt
f57744e322
Add optran.c
...
New custom build commands as suggested by VS
2020-08-09 14:19:00 +02:00
Holger Vogt
0f35363613
Use InpEvaluate() instead of strtod to enable ngspice numbers
...
with scale factors Meg k m u n p f etc.
2020-08-09 14:18:48 +02:00
Holger Vogt
a077bac97d
Reverse stepsize and finaltime in optran command,
...
stepsize first as in tran command.
2020-08-09 14:18:48 +02:00
Holger Vogt
33d7cbad98
prevent crash if first breakpoint is beyond optran max time
2020-08-09 14:18:48 +02:00
Holger Vogt
589bfa6edc
add tran simulation
2020-08-09 14:18:47 +02:00
Holger Vogt
2b4e880122
test of supply ramping
2020-08-09 14:18:47 +02:00
Holger Vogt
b56e81d5fe
updates to optran description and example.
2020-08-09 14:18:47 +02:00
Holger Vogt
0426ea8e55
upon finishing 'optran', restore old CKTstep
...
remove unused
2020-08-09 14:18:47 +02:00
Holger Vogt
722f4436f0
safeguard command 'optran' against circuit no being loaded
2020-08-09 14:18:47 +02:00
Holger Vogt
487f2e9e46
add missing header
2020-08-09 14:18:47 +02:00
Holger Vogt
ab97ff6139
header for optran
2020-08-09 14:18:47 +02:00
Holger Vogt
7463198c5c
Pass Labs F5 Turbo
...
example for optran
2020-08-09 14:18:47 +02:00
Holger Vogt
f6723e8346
When we sre ready, reset CKTmaxstep to its previous value
2020-08-09 14:18:47 +02:00
Holger Vogt
f811659f08
set maxstepsize to stepsize
2020-08-09 14:18:46 +02:00
Holger Vogt
26985c20bc
set the task values, not the ckt values,
...
because task is called only afterwards when
the simulation command is given.
2020-08-09 14:18:46 +02:00
Holger Vogt
5acf4fac2f
Update the description, new 'optran' command
2020-08-09 14:18:46 +02:00
Holger Vogt
6eff472b50
fix some text entry
2020-08-09 14:18:46 +02:00
Holger Vogt
ff9f303fcd
short description of branch contents
2020-08-09 14:18:46 +02:00
Holger Vogt
0744c7bb63
set stepsize
2020-08-09 14:18:46 +02:00
Holger Vogt
0f013ff55e
Add command 'optran' to set 6 flags for transient op
2020-08-09 14:18:46 +02:00
Holger Vogt
7f08f4d31a
Transient op calculation added to the standard oerating point code.
...
When standard iteration, gmin stepping and source stepping fail,
try a transient simulation (like tran with uic option) to
determine the op. Implemented for AC and Tran simulation.
2020-08-09 14:18:45 +02:00
Holger Vogt
d78f95eec2
In PS compatibility mode:
...
In subcircuit .subckt and X lines with 'params:' statement
replace comma separator by space. Do nothing if comma is inside of {}.
2020-08-09 10:31:06 +02:00
Holger Vogt
3ec5140600
avoid some compiler warnings 'referencing a NULL pointer'
2020-08-09 10:24:34 +02:00
Holger Vogt
213c5fedba
more precise freeing the wordlist, depending on exit point
2020-08-09 10:23:43 +02:00
Holger Vogt
830984d04d
No more printout of 'Initial Transient Solution'
...
when .tran with uic
2020-08-09 10:23:07 +02:00
Holger Vogt
273c1bde3d
typo
2020-08-09 10:21:30 +02:00
Holger Vogt
c1fa9fdfe3
remove vceo= and icrating= from bjt model cards
2020-08-03 23:11:55 +02:00
Holger Vogt
3f9ef62996
fix typo
...
Reported by Ferdy in bug report #506
2020-08-03 22:44:08 +02:00
Holger Vogt
2614d92595
fix a memory leak
...
Reported in bug report 504 by Ferdy
2020-08-03 22:41:32 +02:00
Holger Vogt
137d5b6d56
Don't add copied scale vector as new vector, but as new scale vector,
...
thus preventing crash after pushing X11 'Hardcopy' twice or
pushing 'quit' after 'Hardcopy'.
Scale vector was deleted two times, then crashimg ngsoice.
2020-07-30 16:46:16 +02:00
Holger Vogt
c02da9dcc2
enable debug output, taking into account that there may be two threads
...
accessing fcn SetAnalyse()
2020-07-30 16:43:20 +02:00
Holger Vogt
e03afcb160
prevent writing beyond end of buffer
2020-07-30 16:41:46 +02:00
Holger Vogt
30eb897338
enable loading ext-utf8-2.cir by $inputdir
2020-07-30 16:40:21 +02:00
Holger Vogt
5854344d20
Streamline the compatibility flag generation
2020-07-25 23:46:26 +02:00
Holger Vogt
4be216d4e3
If 'set ngbehavior=ki' in .spiceinit or flag 'kicad' on the plot line:
...
Add " around vector names containing character /
Numerical ivision in plot line then requires spaces around /
2020-07-25 22:14:18 +02:00
Holger Vogt
4f1da9b5e1
new compatibility handling with struct compat newcompat:
...
simplify the compatibility handling, better readability
make it easily extendable
add new flag 'ki' for KiCad compatibility
2020-07-25 22:11:27 +02:00
Holger Vogt
50c7625082
Do not compile in fcn main() when shared ngspice is made
2020-07-25 18:07:09 +02:00
Holger Vogt
5e96739dd7
fix typo
2020-07-25 18:06:20 +02:00
Holger Vogt
820466ca7c
line endings --> unix
...
patch by Kevin
2020-07-25 10:53:07 +02:00
caand
32bcf96417
add missing get_sysmem() when no info available
2020-07-25 10:21:07 +02:00
Holger Vogt
af636cc778
bug fix 'extern int sh_vecinit()', not void
...
See patch #96 , thanks to Balazs Kovacs
2020-07-23 17:13:58 +02:00
Holger Vogt
0ca66abd3e
Don't send the empty line to create_circbyline(),
...
it is not used anymore and may cause a crash
2020-07-21 10:42:08 +02:00
Holger Vogt
6ed7bc4c68
Print out the netlist sent to ngspice by caller via 'circbyline'
...
or ngSpice_Circ
2020-07-21 00:07:37 +02:00
Holger Vogt
c8a9a2f0f1
Syntax check: If the first character in a netlist
...
or .control line is one of =[]?()&%$§\"!:, then ngspice
replaces it by '*' and issues a warning.
'set strict_errorhandling' will force ngspice existing.
2020-07-21 00:05:06 +02:00
Holger Vogt
0e22e1af9c
Cut out part of each vector of the current tran plot,
...
from times cut-tstart to cut-tstop and copy these
into a new tran plot. A new scale vector 'time' will be
generated as well. Vectors that are shorter than the
new scale vector will not be copied.
2020-07-18 23:11:34 +02:00
Holger Vogt
d42872a91d
replace 'noiseless' only if it is an unconnected token
2020-07-10 17:59:05 +02:00
Vogt
0c2cc9109b
enable special characters for cpl model names and parameters
2020-07-02 16:45:20 +02:00
Holger Vogt
727eac35d4
enable flags xdelta, ydelta for gnuplot command
2020-06-30 23:23:19 +02:00
Holger Vogt
cb682edd95
update on using bison as a CustomBuild command
2020-06-26 23:05:58 +02:00