On 10/05/2025 10:10, andrewsimper via
groups.io wrote:
Thanks for the reply. I already know how to create a
parameter and use this value in a .model statement of transistor
/ diode etc, which is what you have shown, but unfortunately
this doesn't help with my question.
?
Is there a way to access a value defined in the .model
statement of a transistor etc, and then use that value elsewhere
in an expression?
?
Is there some syntax like: "getvalue(npnmodel, is)", or
"npnmodel.is", or something similar to grab the already defined
value out of a .model statement?
?
I scoured the LTSpice docos / online resources but and can't
find anything like this, so I am guessing the answer is no, but
I thought I'd ask here for an more official "no". I can
workaround it in other ways, but having this sort of access
would be really useful to prevent a bunch of manual text editing
every time I want to try out a different model and calculate
derived expressions from it.
I think your guess is correct. This isn't an "official "no". But
since the Gummel-Poon model, for example, is public domain, it would
in principle be possible to derive it from the actual
characteristics. There is another issue: in most models, some of the
parameters are not stated, so remain at their default value, which
is often zero, but not always. Therefore they couldn't be extracted
from the .model. I don't know for sure, but it's also possible that
not all simulators have the same default values. I would think this
is enough to deter you from this route, and probably why such a
reverse look-up doesn't exist.
--
Regards,
Tony