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

Add elementary charge of electron to Modelica.Constants #2303

Closed christiankral closed 7 years ago

christiankral commented 7 years ago

The elementary charge of an electron is unfortunately not defined in Modelica.Constants. As proposed in Modelica.Electrical.Analog.Semiconductors.HeatingDiode, it shall be calculated as

constant Modelica.SIunits.ElectricCharge q=Modelica.Constants.F/Modelica.Constants.N_A
      "Electron charge";

which gives a value of 1.602176620924561e-19 As.

thorade commented 7 years ago

Also see discussion in #1241 and possibly #2207