¿ªÔÆÌåÓýThanks Andy, for the explanation. ? I¡¯ll look again. Those three commands did come up, but when I did a control F and entered round, nothing came up. I¡¯ll look again. ? From: [email protected] <[email protected]> On Behalf Of Andy I via groups.io
Sent: Sunday, April 6, 2025 2:12 PM To: [email protected] Subject: Re: [LTspice] Simulation runs very slowly: test.asc ? On Sun, Apr 6, 2025 at 01:19 PM, Christopher Paul wrote:
Those error messages will continue.? It concerns a diode parameter N, which had been set to an extremely small value.? Until recently, that was accepted by LTspice despite being unreasonably small.? In newer versions, LTspice complains and limits it to >= 0.1. ? Why was the model's N set to such a small value?? Sometimes, the people who make SPICE models use diodes to help construct other elements that have voltage dependencies but are not actual diodes.? I have seen this done to make voltage-dependent capacitors. ? One might argue that Analog Device's decision to limit N was an unwise choice, given the fact that many SPICE models over time have been built that way.? But now we are stuck with it. ? ? ? ?
Are you sure?? The "round()" function is documented in a few places, including the Help pages for Waveform Arithmetic, for B-sources, and for the .PARAM command.? It is like it sounds; it rounds a real number to the closest integer. ? Here, it is being used to truncate a number to having fewer significant digits.? Multiply the number by 1e4. find the nearest integer, then divide it by 1e4.? All digits past the 4th after the decimal point are turned to zeros, and thus are omitted. ? Andy ? |