christiankral / PhotoVoltaics

Modelica library for the simulation of photo voltaic cells and modules
Other
25 stars 17 forks source link

Dymola 2019FD01 warning on range of VRef #36

Closed christiankral closed 4 years ago

christiankral commented 5 years ago

Dymola 2019FD01 checks the model PhotoVoltaics.Components.SimplePhotoVoltaics.SimpleModule false. It is stated that the parameter VRef is outside the range specified by the min attribute in PhotoVoltaics.Components.SimplePhotoVoltaics.SimpleModule.

Check of PhotoVoltaics.Components.SimplePhotoVoltaics.SimpleModule:
The variable diode[1].VRef=0 is not in range [1,1e+100].
Check of class aborted.
WARNINGS have been issued.
ERRORS have been issued.

This may be a Dymola bug, as the minimum range is defined in PhotoVoltaics.Interfaces.PartialDiode by:

parameter Modelica.SIunits.Voltage VRef(min = Modelica.Constants.small) = 0.6292 
    "Reference voltage > 0 at TRef" annotation (
    Dialog(group = "Reference data"));
christiankral commented 4 years ago

The model checks OK in the pedantic model of Dymola 2020.