-
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
issues with DoorDiscretised #937
Comments
This is fixed in later releases of tidy: |
|
Thanks for the feedback!
So the error that we make is indeed about 4 %. Going from i to 4i would then imply an error of 4% + 0.016%? This makes me wonder whether we cannot use a similar derivation to compute a correction coefficient that can be multiplied with a single discretisation to obtain the same results.. The above derivation however does not consider the most general case where zone A and B can have different pressures so it would have to be extended. Probably best to park this for now due to time constraints but I'd like to hear any thoughts on this kind of approach.
|
@Mathadon I removed the A larger refactoring, if there is efficiency to be gained, would need to be done at a later time as I am tied up with some deadlines. Regarding
I don't know if this is a good idea. What do you do if there is only flow in one direction through the open door, and how would you make the switch in flow direction differentiable? The model has now variables |
Refactored door and updated reference results for #937
@Mathadon This model has still problems: The two flow rates shown below should be non-zero. Due to the regularization,
I added a patch for this in fdf1f70 (by setting |
Set allowFlowReversal to true. For #937
looks like this can be closed |
Reopened so that we don't forget to correct what is explained in #937 (comment) |
@mwetter can this be closed? |
I made a simplified version of
IBPSA.Airflow.Multizone.DoorDiscretizedOpen
in IDEAS sinceDoorDiscretizedOpen
is a bit too detailed in my opinion. @damienpicard suggested to compare my implementation withDoorDiscretizedOpen
. From my understanding it's basically a combination of the stack effect and Bernoulli, combined with a discharge coefficient, which is also what I used in IDEAS, but without the fluid ports and without the discretisation.I wrote down a number of questions/remarks regarding the implementation while I was figuring out what the model does exactly.
This is a violation of the second law, which is frowned upon!
I'm not sure why this regularisation is required in the first place? The model somewhere mentions that zero flow should be avoided, but I don't see why. Possibly this could simply be removed.
nCom=10
by default, but for a simple test the difference in flow rates withnCom=2
is only 4%. We could reconsider the default value.hA
andhB
mean. I presume that these are the heights corresponding to the pressures of respectively port_a1/port_b2 and port_b1/port_a2. We could reformulate this to make it a bit clearer.is not closed by
</li>
. Somehow this is not caught by tidylib?v
is in my opinion obsolete and leads to many divisions by parameters sincev[i]=dV_flow[i]/dA
. Some other variables likevAB
,VAB_flow
,dpAB
,v_top
, etc can either be inlined or removed such that fewer variables are saved.Is there an interest to 'fix' these things? Otherwise this is not high up on my priority list and then we can deal with this later.
The text was updated successfully, but these errors were encountered: