Open max-privato opened 2 years ago
In the information of Diode2Exp the diode formula does not contain the ideality factor m, which is indeed included (and has a significant impact) in the equation section. I would recommend to include it.
In the PV models, e.g., PhotoVoltaics.Components.SimplePhotoVoltaics.SimpleCell
, the parameters m
and IsdRef
are iteration variables in two initial equations and cannot be set independently by the user. The iteration is used to consistently parameterize the PV model.
final parameter Real m(start = 2, fixed = false) "Ideality factor of diode";
final parameter Modelica.Units.SI.Current IsdRef(start=1E-4, fixed=false)
"Reference saturation current of cell";
initial equation
IphRef = IsdRef * (exp(moduleData.VocCellRef / m / moduleData.VtCellRef) - 1);
IphRef = IsdRef * (exp(moduleData.VmpCellRef / m / moduleData.VtCellRef) - 1) + moduleData.ImpRef;
I take the opportunity of this ticket to recommend changing the name "Bv" into "Vb", so that it becomes consistent with Vt: thermal voltage and Breakthrough voltage.
In the MSL the diode model Modelica.Electrical.Analog.Semiconductors.Diode2
uses the same parameter name Bv
. In the PhotoVoltaics library the same name was chosen by intention to keep the connection.
If you propose to change Bv
to Vb
we should start at the MSL:
One more comment: Please create two different GitHub tickets for two different requests. Otherwise they cannot be handled independently.
Thank you for your answers. Regarding the question of m, I mentioned in my comment the information box , where the ideality factor is missing:
So, I complained that the info box does not correspond to the actual equation. I know that it is not a parameter under the user's control.
Regarding the parameter name, I did not realise that also MSL has Bv. For me it is a bad choice, and I personally would have broken compliancy with MSL in favour of internal coherency between Vt and Vb,... , but that's all, I can live with it.
The change affects two models:
In the information of Diode2Exp the diode formula does not contain the ideality factor m, which is indeed included (and has a significant impact) in the equation section. I would recommend to include it.
I take the opportunity of this ticket to recommend changing the name "Bv" into "Vb", so that it becomes consistent with Vt: thermal voltage and Breakthrough voltage.