modelica / ModelicaStandardLibrary

Free (standard conforming) library to model mechanical (1D/3D), electrical (analog, digital, machines), magnetic, thermal, fluid, control systems and hierarchical state machines. Also numerical functions and functions for strings, files and streams are included.
https://doc.modelica.org
BSD 3-Clause "New" or "Revised" License
479 stars 169 forks source link

Modelica.Electrical.Analog.Semiconductors.NMOS has wrong value for gds #716

Closed modelica-trac-importer closed 7 years ago

modelica-trac-importer commented 7 years ago

Reported by jriel on 21 Mar 2012 21:57 UTC The equation for gds (a leakage conductance, so value should be small) is

 gds = if (RDS < 1.e-20 and RDS > -1.e-20) then 1.e20 else 1/RDS; 

The 1.e20 should be 1.e-20.

The same bug is in the PMOS model.


Migrated-From: https://trac.modelica.org/Modelica/ticket/716

modelica-trac-importer commented 7 years ago

Comment by jriel on 21 Mar 2012 22:00 UTC It would probably be best to define a parameter, gdsmin, possibly protected, and use it rather than hard-coding the values.

modelica-trac-importer commented 7 years ago

Comment by anonymous on 21 Mar 2012 22:06 UTC I am retracting this bug. The equation is correct, since it is using RDS in the condition. It is strange in that I doubt anyone will want to specify a leakage resistance anywhere close to 1e-20. More typical is specifying a larger resistance.

modelica-trac-importer commented 7 years ago

Comment by dietmarw on 29 Mar 2012 19:07 UTC OK closing as invalid based on reporters request.