-
Notifications
You must be signed in to change notification settings - Fork 27
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
Compatibility to Modelon Impact (Set 1) #19
Comments
Thanks a lot for your hints. We want to improve tool compatibilty. |
I plan to do some more testing/digging and then do a coordinated one. If I find time to play, ... |
Ok, I have solutions for items 1, 2, and 4 above, which work in both Dymola and Modelon Impact (by extension also in Amesim and ANSYS Twinbuilder), but need to update the solution for sensor displays to many more places. For item 3: I cannot fix it well if you don't tell me what you mean. I can probably even fix item 5 easily for ideal gases, but that fix is "per medium", and I don't see others that need fixing. With all the above fixes, I think that everything works. The only missing item for me to follow through on all of this is time. |
I don't know how to link this with my pull request. In any case, the pull request makes this 100% runnable in Modelon Impact. |
Thank you for your work. You can link to the pull request by typing # and the coressponding number, for this case 20: #20 . |
I checked out bf8f317 For me ThermofluidStream.Boundaries.Tests.Volumes and ThermofluidStream.Undirected.Boundaries.Tests.TestVolumes fail to translate, since SimpleAir does not have the function density_derp_h. I think we have to discuss how we proceed for Item 3. Since the solution was only partial a workaround and we want the option to manually set a fixed value for density_derp_h regardless of wheather the workaround is nessesary. All other Changes will be merged in the master soon. |
@hubertus65, I took your changes and applied some adaptions. The version I would merge into main is in the Branch https://github.com/DLR-SR/ThermofluidStream/tree/ModelonImpact. Could you check if this version with my changes is still compatible with Modelon Impact before I merge it into main? Thank you |
Regarding the density_derp_h-issue: I think the right way to fix this is to always add a function to the medium, or make sure that all medium implementations have that function, even if it returns a constant. That this is not the case consistently in Modelica.Media is an issue, but it should be fixed there instead. The "density_derp_h_from_media" is an ugly workaround, no matter what. Ideally, the situation should be:
|
We fully agree with your solution, as well as the interim solution. Interface defenitions should be complied by all child classes. The current implementation sees |
Now I see the reason. Such that you can qualify a group of fluids/gases to be suitable. Then it's ok, but I would make the parameter naming more clear/explicit. Or create an artificial medium, that has these "worst case" derivatives/properties encoded. I assume, that some other properties, e.g. viscosity or heat capacity, would be much more important in terms of evaluating performance limits? |
This parameter is only used for a artificial damping term of the change of mass of a volume. In case two boundaries are directly coupled, it damps very fast, otherwise undaped oscilations and should otherwise influence the results of the model only minor. Therefore most of the time only the magnitude of the derivative is important. |
I checked all Examples, and they are all working fine, and produce sensible and reasonable results I have not done an in-depth trajectory comparison as we do for our library products, but
I'd consider it fully working as-is on Modelon Impact. I think it also still is fully working in Dymola. Fine to merge, and close the associated issue. I'm happy that I was able to make it run completely on our side with very little total time effort. I suggest that you merge your branch and close this issue, and I delete my pull request now. |
I imported the Library into Modelon Impact, and had to fix a few minor Modelica issues to make it work.
I can check some more, and might eventually add a pull request. Nice Library!
The text was updated successfully, but these errors were encountered: