-
Notifications
You must be signed in to change notification settings - Fork 26
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
SWHS - Volume of PCM software constraint #451
Comments
These constraints do not match the information in the original case study (https://github.com/smiths/swhs/blob/master/SRS/PCM_SRS.pdf page 23). This is another example of a translation error from "manual" to Drasil code. The Drasil physical constraint matches the case study, but the Drasil software constraint was originally: V_P >= MINFRACT*V_{tank}, where MINFRACT was set to 10^{-6} in the original case study. MINFRACT is a symbolic constant in Table 2 (Specification Parameter Values). To avoid the problem you noticed, we should constrain MINFRACT to be less than 1. |
Right - so you've "fixed" the part that needed your expertise to fix. Now there is an issue in the Drasil version of SWHS that should also be fixed. Have we sort-of assigned some of the projects to our M.Eng. students, so that I could re-assign this? |
@halonazhao, has been working with the SWHS example; therefore, I will reassign this issue to her. Yuzhi, please modify the Drasil code for the SWHS example to match the case study example for the V_P constraint. If you have any questions about the constraint, please ask me. For questions about the changes to the Drasil code, please ask @szymczdm. |
Hello @szymczdm |
@smiths Could you give me a specific definition, unit and value for variable Thanks! |
MINFRACT is in the manual (case study) version of SWHS. Maybe your search is case sensitive? MINFRACT is a constant, so the typographic convention is used where it is displayed in ALL_CAPS. As you said, MINFRACT is in the table of Auxiliary Constants and has a value of 1e-6. MINFRACT is unitless. In case it isn't clear, MINFRACT is the minimum fraction of the volume of the PCM to the volume of the tank. Dividing units of volume by units of volume means that MINFRACT is unitless. |
Issue has been solved in e9a0fff |
Stable contains the following non-sensical constraint:
Physical: 0 < V_P < V_{tank}
Software: V_P >= V_{tank}
so the software constraint and the physical constraint have no overlap.
The text was updated successfully, but these errors were encountered: