Holger Vogt
2ef3f66f96
if 'set ngdebug' print out transient initial conditions also with UIC set.
2021-09-29 20:10:25 +02:00
Holger Vogt
41ead284f3
make the error detection work properly
2021-09-29 20:10:02 +02:00
Holger Vogt
4e03efacb7
Use InpEvaluate() instead of strtod to enable ngspice numbers
...
with scale factors Meg k m u n p f etc.
2021-09-29 20:09:22 +02:00
Holger Vogt
3be5926f2c
Reverse stepsize and finaltime in optran command,
...
stepsize first as in tran command.
2021-09-29 20:08:51 +02:00
Holger Vogt
bca099ca29
prevent crash if first breakpoint is beyond optran max time
2021-09-29 20:08:28 +02:00
Holger Vogt
b07a54b8e1
test of supply ramping
2021-09-29 20:07:42 +02:00
Holger Vogt
7de526237e
upon finishing 'optran', restore old CKTstep
...
remove unused
2021-09-29 20:06:35 +02:00
Holger Vogt
0eafec254e
safeguard command 'optran' against circuit no being loaded
2021-09-29 20:05:56 +02:00
Holger Vogt
cf61e1e564
add missing header
2021-09-29 20:05:28 +02:00
Holger Vogt
83e223fafc
header for optran
2021-09-29 20:05:08 +02:00
Holger Vogt
a20afc54a5
When we sre ready, reset CKTmaxstep to its previous value
2021-09-29 20:04:26 +02:00
Holger Vogt
3956095484
set maxstepsize to stepsize
2021-09-29 20:04:08 +02:00
Holger Vogt
ecdb3b9eb4
set the task values, not the ckt values,
...
because task is called only afterwards when
the simulation command is given.
2021-09-29 20:03:31 +02:00
Holger Vogt
fd36eb552f
set stepsize
2021-09-29 20:02:11 +02:00
Holger Vogt
ab6224767b
Add command 'optran' to set 6 flags for transient op
2021-09-29 20:01:44 +02:00
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.
2021-09-29 20:00:29 +02:00
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.
2021-09-29 19:59:58 +02:00
Holger Vogt
1084b4205c
Allow global .temp in addition to instance parameter 'temp'.
...
Update to comments.
2021-09-29 19:59:28 +02:00
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.
2021-09-29 19:58:11 +02:00
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.
2021-09-29 19:57:54 +02:00
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).
2021-09-29 19:57:34 +02:00
Holger Vogt
e5fdb4c742
Patch sorts 1 byte vars in sequence,
...
to save some memory.
Patch #107 provided by Florian Ballenegger
2021-09-29 19:57:08 +02:00
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)
2021-07-20 14:24:43 +02:00
Holger Vogt
c74321e0f5
JFET2: Add a link to literature
2021-07-05 14:32:47 +02:00
dwarning
0ece04cdc8
Add channel type determination belong nmos/pmos model parameter
2021-07-05 14:32:14 +02:00
Holger Vogt
fe158341ba
Don't show message for every iteration
2021-07-05 14:31:47 +02:00
Holger Vogt
c38b8e3615
Fix a bug in the 'dc' progress report
2021-07-05 14:31:32 +02:00
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/ )
2021-07-05 14:31:21 +02:00
Holger Vogt
c061747f19
Add evaluating and using temp and dtemp
...
as ASRC instance parameters.
2021-07-05 14:29:10 +02:00
Holger Vogt
ddcc6f6097
add a comment: we should use TNOM, but not a fixed 300.15.
...
TNOM still has to be added to the ASRC parameters.
2021-07-05 14:28:51 +02:00
Holger Vogt
945786fba7
Make PTcheck more verbose:
...
Send error message containing failed expression
2021-07-05 14:28:19 +02:00
Holger Vogt
7e01b800f0
add the parameter name to error message of missing or bad parameter
2021-07-05 14:28:07 +02:00
Holger Vogt
7eb791fe00
No parse tree submitted to IFeval:
...
Prevent segfault and emit error message
2021-07-05 14:27:46 +02:00
Holger Vogt
e0d5d98b33
Just a reminder that truncation is currently diabled for CSW
2021-07-05 14:18:40 +02:00
Holger Vogt
1266225cdb
For C and R device enable value tokens like 4k7 or 1u2
...
in addition to 4.7k and 1.2u.
Valid for
R1 1 0 47k
C2 3 6 1u2
only. Does not interfere with other value tokens in params etc.
2021-07-05 14:17:31 +02:00
Holger Vogt
c75e4129f4
Plug another memory leak in LTRA transmission line
2021-07-05 14:16:17 +02:00
Holger Vogt
5d39ff2d8c
Plug memory leaks in transmission line LTRA
2021-07-05 14:15:20 +02:00
Holger Vogt
d2ac525f52
Plug some more memory leak in TXL transmission line.
2021-07-05 14:14:38 +02:00
Markus Mueller
74ba5c1f96
found non-initialized value!
2021-07-05 14:14:15 +02:00
Markus Mueller
5c71349bad
remove dead assign statements, yet just commented them out for the time
...
being
2021-07-05 14:14:00 +02:00
Holger Vogt
c0bd7ca6e2
Plug a memory leak in TXL transmissiom line (y device)
2021-07-05 14:13:44 +02:00
Holger Vogt
b5054cc9f1
Plug a memory leak
...
Add function HICUMdelete() to remove model->HICUMversion
2021-07-05 14:12:46 +02:00
Holger Vogt
11d3188e19
fix typo
2021-07-05 14:10:20 +02:00
dwarning
6bafdf70d5
sub-coll junction calculation only if ISS given
2021-07-05 14:09:35 +02:00
Holger Vogt
98f8a4fcb2
Improve error message, if occuring during op
2021-07-05 14:08:25 +02:00
dwarning
1f95e12142
Value stored to vsub is never read
2021-07-05 14:07:26 +02:00
dwarning
52f4244345
fix Vcrit calculation for coll-subs junction and correct tlev=3 temperature model
2021-07-05 14:07:14 +02:00
dwarning
b00fa921ac
rm depreciated storage class
2021-07-05 14:06:52 +02:00
dwarning
e14dc3aaa3
few style cleanings
2021-07-05 14:06:28 +02:00
dwarning
45e397727b
rm dead assignments
2021-07-05 14:03:38 +02:00