¿ªÔÆÌåÓý

Re: Overriding a library diode's internal parameter(s)


 

Hello John,

Not that it matters, but N={N} Rs={Rser} looks right to me. What version of LTspice are you running? What exactly does the log file say?


On Thursday, April 10, 2025 at 02:09:24 PM EDT, John Woodgate <jmw@...> wrote:


I don't understand this line:

I tried adding an override of rs by ¡°N={N} Rs={Rser}¡±,

What is N={N} for? I don't think you need it: Rs is in every instance of the diode already. Do you have a line Rser= [a number], or perhaps a .STEPped sequence?

On 2025-04-10 18:59, Bell, Dave via groups.io wrote:

I was working with the recently linked AD PV Cell sim.

?

It uses a MUR460 library diode, multiple in series, to simulate the cell/string¡¯s forward voltage.

The default series resistance seems too high, per plotted I/V curve.

?

The diode¡¯s parameter string includes ¡°rs=0.0384¡±, and I want to vary that to adjust the curve to the panel I want to simulate.

The model adds a multiplier to the diode, ¡°N=15¡±, which I successfully changed to ¡°N={Ns}¡± so I could vary the number of cells.

I tried adding an override of rs by ¡°N={N} Rs={Rser}¡±, but the second term throws an ¡°unrecognized¡± fault.

Right-clicking the diode symbol doesn¡¯t offer any route to setting any terms.

?

I imagine I could use a default ¡°D¡± diode and modify all of the params, but I don¡¯t see any way to copy the LONG string listed in ¡°Pick new diode¡±.

?

Is there a better (i.e. working) way to override the internal params?

?

Thanks,

Dave

--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion

Virus-free.

Join [email protected] to automatically receive all group messages.