Holger Vogt
4e03efacb7
Use InpEvaluate() instead of strtod to enable ngspice numbers
with scale factors Meg k m u n p f etc.
6 years ago
Holger Vogt
3be5926f2c
Reverse stepsize and finaltime in optran command,
stepsize first as in tran command.
6 years ago
Holger Vogt
bca099ca29
prevent crash if first breakpoint is beyond optran max time
6 years ago
Holger Vogt
b07a54b8e1
test of supply ramping
6 years ago
Holger Vogt
7de526237e
upon finishing 'optran', restore old CKTstep
remove unused
6 years ago
Holger Vogt
0eafec254e
safeguard command 'optran' against circuit no being loaded
6 years ago
Holger Vogt
cf61e1e564
add missing header
6 years ago
Holger Vogt
83e223fafc
header for optran
6 years ago
Holger Vogt
a20afc54a5
When we sre ready, reset CKTmaxstep to its previous value
6 years ago
Holger Vogt
3956095484
set maxstepsize to stepsize
6 years ago
Holger Vogt
ecdb3b9eb4
set the task values, not the ckt values,
because task is called only afterwards when
the simulation command is given.
6 years ago
Holger Vogt
fd36eb552f
set stepsize
6 years ago
Holger Vogt
ab6224767b
Add command 'optran' to set 6 flags for transient op
6 years ago
Holger Vogt
df0792818f
Transient op calculation added to the standard operating 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.
7 years ago
Holger Vogt
a08e6a0676
Add new SOA parameters (safe operating area) for BJT.
We now scan for max of Ic, Ib, power, taking into
account the max allowed temperature, using the thermal
resistance rth0 model parameter between juntion and ambient.
Two user options are there: If rth0 is given, we calculate
a derating of the max power allowed.
Without a constant max power according to model param pow_max
is assumed.
The new model parameters for the bipolar model are:
pow_max, ic_max, ib_max, te_max, and rth0, in addition
to the already existing vbe_max, vbc_max, adn vce_max.
5 years ago
Holger Vogt
1084b4205c
Allow global .temp in addition to instance parameter 'temp'.
Update to comments.
5 years ago
Holger Vogt
9221df234c
Patch to allow (and ignore) leading or trailing commas
when putting {} around tokens. Tested with PWL voltage source.
Patch has been suggested by Liqian Zhang
5 years ago
Holger Vogt
33571877dc
Some update to SOA for a diode:
Limit output to four digits
Add power and temperature limits.
Derating with self-heating, or with fixed temperature,
or no derating at all, selectable by setting model parameters.
Example file: SOA plotted as frame, with diode current.
5 years ago
Holger Vogt
759f4f5f84
Make the output a little more verbose:
add terminal voltage to Id, Te, and Pd outputs.
Compare SOA data to terminal voltage, not (unknown) junction voltage.
5 years ago
Holger Vogt
9c8380a031
Enhance the SOA (safe operating area) operations
Parameters id_max, pd_max and te_max have been added
for current, power, and temperature to the already existing
fv_max and bv_max (max forward and backward volteges).
5 years ago
Holger Vogt
e5fdb4c742
Patch sorts 1 byte vars in sequence,
to save some memory.
Patch #107 provided by Florian Ballenegger
5 years ago
Carsten Schoenert
2c2e21a80c
Smal typo fixup s/currntly/currently
5 years ago
Holger Vogt
605f59b417
Fix a bug with the alter statement
lower case for device name, when sent from shared ngspice
or from interactive mode.
5 years ago
Holger Vogt
9a2d968577
When transferring boolean data over the ABI, keep them as boolean types, not integer
Replace the type of all boolean variables around the ABI by NG_BOOL.
NG_BOOL is typedefed to _Bool, when compiling shared ngspice. When
sharedspice.h is use externally NG_BOOL is typdefed to bool
5 years ago
Carsten Schoenert
61b5c0563b
src/Makefile.am: Adopt used variables for lib versioning
A small adjustment so the configured ABI version from configure.ac will
get used for creating the libngspice library.
5 years ago
Holger Vogt
4258fe94b5
Add library versioning according to
https://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html#Libtool-versioning
Add package versioning with m4 macros
5 years ago
Holger Vogt
6aac403ab0
XSPICE delay: add some more safeguards
5 years ago
Holger Vogt
4feb43e067
Prepare ngspice-35
5 years ago
Holger Vogt
4dbd8b7f9a
Preliminary fix for the 'interpolate' function.
Interpolation of 1D vectors is o.k. now,
multi-dimensional vectors are not (yet) supported.
5 years ago
Holger Vogt
1977128380
Prevent crash when CIDER diode models are used.
There is no third node in NUMD or NUMD2, so don't set
GENnode(fast)[i]. This patch fixes a bug introduced in
4895a4b5a ("Diode model with selfheating option", 2021-04-11)
5 years ago
Holger Vogt
9cc9c56cad
Don't write past '\0', fixes a bug in commit
1c5e0d11d ("If there is a XSPICE code model .model line with
file input, keep quotes and case for the file path.", 2021-07-15)
5 years ago
Holger Vogt
b7473a33a0
Check for double '{', replace the inner '{', '}' by '(', ')'
in .subckt or .model (which both may stem from external sources)
5 years ago
Holger Vogt
85b07e35bf
Fixes bug 483
prevent crash when surface mobility (surfmob) has been
selected in 2D simulation.
The patch is provided by Brian Taylor (see
https://sourceforge.net/p/ngspice/mailman/ngspice-devel/thread/e6e921a3-677c-f513-7410-df8568c4bdad%40comcast.net/#msg37318450
)
5 years ago
Holger Vogt
1c5e0d11dd
If there is a XSPICE code model .model line
with file input, keep quotes and case for the file path.
5 years ago
Holger Vogt
15a3ed87c0
Enable the m parameter in E, G, B, R behavioral source/devices
5 years ago
Holger Vogt
973a60b898
re-enable making the old help system for Linux/Cygwin
by --enable-help --enable-oldapps
5 years ago
Holger Vogt
d34d1e7c7c
Get immediate response into text window,
when requesting information on coordinates.
5 years ago
Holger Vogt
182a4d3f5f
WinGUI: Push any remaining error message into text window
before emitting interactive error message window and exit.
5 years ago
Holger Vogt
ae72677cc2
Remove a false read when curr_line has
already been invalidated.
5 years ago
Holger Vogt
0f25c25c7e
Remove a memory leak
Make inp_rem_levels non-static
and use it to remove 'root' after it has been used.
5 years ago
Holger Vogt
54cbfb4138
Nodedamping: Make difference independent of the sign
of the difference
5 years ago
Holger Vogt
c74321e0f5
JFET2: Add a link to literature
5 years ago
Holger Vogt
93ddc7a3eb
Enhancement for E source with table, convert to B source with pwl:
Add G source
Allow 'table' also being part of a parameter name like 'table_something'
5 years ago
dwarning
0ece04cdc8
Add channel type determination belong nmos/pmos model parameter
5 years ago
Holger Vogt
fe158341ba
Don't show message for every iteration
5 years ago
Holger Vogt
c38b8e3615
Fix a bug in the 'dc' progress report
5 years ago
Holger Vogt
8eeb924460
CIDER: Enable printing either binary or ascii data output to file.
Patch provided by Brian Taylor, see
(https://sourceforge.net/p/ngspice/mailman/message/37309841/ )
5 years ago
Holger Vogt
9bb401d9cd
Add a 'qsort' dummy according to current compiler standards.
Detected during the very rare condition of not finding a 'qsort'
during the ./configure step.
5 years ago
Holger Vogt
76eac5aa0f
Make error message more verbode
5 years ago
Holger Vogt
a4be66b9b0
Prevent crash if there is bad syntax in h, g, e, or f line
5 years ago