Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation minor glitch #47

Open
max-privato opened this issue Aug 22, 2022 · 4 comments
Open

documentation minor glitch #47

max-privato opened this issue Aug 22, 2022 · 4 comments

Comments

@max-privato
Copy link

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.

@christiankral
Copy link
Owner

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;

@christiankral
Copy link
Owner

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:

  • However, changing the parameter name of a model breaks the compatibility and thus needs a conversion script. So this is a big change and can only be performed in a major release of the MSL.
  • For the same reason I am reluctant to change the parameter name whithout a major release.
  • If you consider the parameter name change important enough you are free to file a ticket at he MSL issue tracker. The implementation will, however, not be done any time soon.

One more comment: Please create two different GitHub tickets for two different requests. Otherwise they cannot be handled independently.

@max-privato
Copy link
Author

Thank you for your answers.
Regarding the question of m, I mentioned in my comment the information box , where the ideality factor is missing:
image

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.

@christiankral
Copy link
Owner

The change affects two models:

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants