-
Notifications
You must be signed in to change notification settings - Fork 166
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
Fix unit error in Thyristor #4119
Conversation
Introduces a variable to resolve a unit error in an equation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not the author of this model, and I don't know the meaning of "vRef = 0.65".
It might be better to search for a name explaining the nature of it, and to declare it either as (maybe protected) constant or as a parameter.
@christophclauss can you tell us more about this "secret value"?
BTW, I can't figure out why a tool should issue a unit error?
Isn't it possible to deduce that "0.65" is a constant whose quantity is voltage?
@HansOlsson or othe friends from Map-Lang could you please comment on this?
There are two parts to that answer:
|
I'll just expand slightly on this. In the unit handling discussions at the last physical language meeting, there was some sort of vague conclusion that we should probably deprecate declaring constants without explicit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By decision on 2023-11-14
I think your questions have been addressed, please re-review and approve, @AHaumer |
I haven't reviewed this - so I will just comment more: As far I understand 0.65V is a common "Forward threshold" or knee-voltage for Silicon diodes (well 0.6V to 0.7V); I assume Thyristor have some electrical similarities to diodes, but it was a long time since I took those courses. Thus I don't know an appropriate name if BTW: It is plausible that changing just that value makes sense for other materials, but I don't know. That will impact whether it should be a public non-final parameter or not. |
Co-authored-by: Hans Olsson <HansOlsson@users.noreply.github.com>
Even though I am not familiar with the transistor model I would rather go for a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine with me
Introduces a variable to resolve a unit error in an equation.
We should give a better name to the variable I have introduced.