-
Notifications
You must be signed in to change notification settings - Fork 167
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
Controlled drives #3807
base: master
Are you sure you want to change the base?
Controlled drives #3807
Conversation
to properly support case sensitve linux file systems
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 have some comments here:
- Is
Modelica.Electrical.Machines.Examples.ControlledDCDrives.UsersGuide.Contact
required, as we already provide the contact information inModelica.Electrical.Machines.UsersGuide.Contact
? I think this class can just be deleted. - I propose to merge
Modelica.Electrical.Machines.Examples.ControlledDCDrives.UsersGuide.References
withModelica.Electrical.Machines.UsersGuide.References
- In order to better understand
Modelica.Electrical.Machines.Examples.ControlledDCDrives.UsersGuide
it makes sense to directly refer to the used references in the text - Depending on the outcome of the discussion of Unify spelling of controllers #3814 the controllers may have to be spelled as, e.g., PI controller or PI-controller instead of PI - controller
Modelica/Electrical/Machines/Examples/ControlledDCDrives/UsersGuide/DiscreteControl.mo
Outdated
Show resolved
Hide resolved
Modelica/Electrical/Machines/Examples/ControlledDCDrives/UsersGuide/CascadedControl.mo
Outdated
Show resolved
Hide resolved
…Guide/DiscreteControl.mo Co-authored-by: Christian Kral <[email protected]>
…Guide/CascadedControl.mo Co-authored-by: Christian Kral <[email protected]>
…chines/UsersGuide), moved References to Machines/UsersGuide/References
…aStandardLibrary into ControlledDrives # Conflicts: # Modelica/Electrical/Machines/Examples/ControlledDCDrives/UsersGuide/References.mo
OK, the structure looks good so far. Let's wait for input from #3814 to fully approve this PR. |
I have one more general comment of these types of examples that depend on new components that are then placed into a subpackage (e.g., Personally I can think of many sophisticated examples that are based on MSL but are lacking one or two special components. But that should not be a reason to put those examples into the MSL. Rather make the MSL examples show what you can do with the available standard components. And if it turns out that there is such an important example that is missing some key-component, then maybe this key component should be added to the library the example is showing off. And if it turns out that it is not of such a general importance then maybe the example should be changed to not depend on such additional components. |
@dietmarw would you please have a look at the fix provided? |
@TManikantan Before sending these reminders it would help if you would read what was said in the ticket. Also it might perhaps be a better idea that you make yourself familiar with the people involved in the project. |
We concur with @dietmarw response. Use of models inside the Utilities sub package is not an ideal way of showcasing the capabilities of MSL models. However, this is a recurring issue in multiple subpackages – listed in option 2. We suggest two options: Few Examples which depend on new components placed in utilities :
Regarding the components in this Utilities package, here are some of our suggestions:
|
Since these are nice running examples, I would also accept them as they are now (suggestion (1)). |
Since this PR is open for a long time, some aspects have changed and I'd prefer to check and modify the examples beforehand. |
I'm sorry @MartinOtter I strongly disagree here. Exactly this kind of routine has led to an MSL that currently is on the brink of staying maintainable (given our lack of resources and engagement). So instead of adding new features that are not quite rightly implemented and require more work later on (and also much more involved because of conversion scripts, when, by whom) I rather suggest we do it right the first time. And if it is too much work now, then maybe not add this to the MSL then since it will definitely end up becoming more clean-up work later on. |
I respectfully disagree. It is (quite often) the case that one can re-use 70-90% of components provided by the MSL (or any other library) and requires to develop a few models on his/her own. This is a very common pattern and I can't see anything wrong in doing that in Examples. In fact, I find it of educational value. The components put there may not be general enough to deserve a place in the library, this is also perfectly legitimate. I understand we have a potential problem with dependencies because people could start using the models found in Examples and then we create further backward compatibility issues. This could be resolved by placing Examples in a separate package, but that's not really practical. I think we should resolve this issue simply by having dedicated dependency analysis tools that simply skip packages named Examples (or possibly marked by a suitable ExamplePackage annotation). Restricting the example to toy models that are exclusively built with basic components from the MSL seems an unnecessary restriction to me. IMHO if this is the only reason why this PR is still not merged after 2 1/2 years, I would merge it right away. This is the current situation
To me the situation is pretty clear. Any comments? |
I'd like to enhance the examples Modelica.Electrical.Machines.Examples.ControlledDCDrives, including a UseresGuide with some explanations. The delays and the timing that have to be taken into account are explained in more detail.
For a proper solution, I'd need to merge #3806 first. I.e. after that, I'll replace the instance of the enhanced block "Mean" by the block from master.