-
Notifications
You must be signed in to change notification settings - Fork 84
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
New (and updated) Airflow Classes #1437
Conversation
Updated the component names of badly names components and changed the package order. Also updated some minor things on the documentation
@kldjonge Is the pull request up to date? As I mentioned on the last WP1.1 call, I can make a first review. |
It is up-to-date. A first review would be great! |
@kldjonge I made a quick review of the commits on the pull request and annotated the code on my fork. The "biggest" issues I find are the calls to spline interpolation in |
Many thanks for the review. Looks like it is mainly small changes and naming issues/inconsistencies. Concerning the splines I will have to rethink the implementation a little then. I tried to not have the derivatives (and eg. the addition of the previous and last point) at top level for clarity/readability of the models. Any suggestions on how to implement it alternatively to avoid redoing the calculation of the derivatives every time step but stil not clutter the top-level model to much with these 'background' calculations? |
@mwetter, does is not make sense to allow this merge into /~https://github.com/ibpsa/modelica-ibpsa/tree/issue1436_AirflowNewClasses already? For review purposes it seems more logical that eg. Massimo can edit in the same repository. Now, changes were made on his fork and I cherry picked them to mine to link it back to this pull request. If this is the typical way of working it no problem off course, just wondering if this is the most efficient workflow. |
I don't think the initialization of derivatives would clutter the |
@kldjonge @MassimoCimmino : That's fine to merge into this development branch, which I will do now. |
Changed name of PowerLawResistance to PartialPowerLawResistance and likewise for PowerLawResistance_mflow. Also changed MassFlow and VolumeFlow to m_flow and V_flow. Fixes for: IBPSA/Airflow/Multizone/BaseClasses/PartialOneWayFlowelement.mo IBPSA/Airflow/Multizone/BaseClasses/PowerLawResistance.mo IBPSA/Airflow/Multizone/BaseClasses/PowerLawResistance_mflow.mo
Addition of this mover is out of scope for the present development branch.
Nominal flow rate derived from table data as smallest flow found in the table.
Changed this value back to original default (It was changed do 'small', but that is not necessary for common use of the components)
Testbed for flow elements in the range -50Pa to +50Pa. CONTAM results are provided at fixed pressure differences as reference data.
Answered some of the questions Massimo left as a 'fixme', this commits cleans these up but also provides an overview of the answers.
@MassimoCimmino , I incorporated your proposed fixes. I also updated some of the annotation and made some minor enhancements to some models along the way. For the validation of the models, I made a CONTAM model as testdata for the one way flow elements and embedded the data: |
Please delete if not usefull. Script that generates a graph to compare CONTAM(test data) and Modelica (simulated data) with dP as independent variable.
@mwetter, shouldn't we move from my fork to the IBPSA development branch (issue1436_AirflowNewClasses) already to make the reviewing easier? |
Cleaned up modelica text, cleaned up icon view and added a .mos script.
👍 |
This PR is replaced by #1500 |
New components and related baseclasses were developed for modelling multizone airflow.