Skip to content
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

Problems with 5GDHC Simulation Using Dragonfly from GeoJSON to Modelica Example in OpenModelica 1.22.3 #637

Open
bvidalEKT opened this issue Jun 6, 2024 · 2 comments

Comments

@bvidalEKT
Copy link

bvidalEKT commented Jun 6, 2024

I have created this issue in the GitHub of the Modelica Building Library, but it might be more appropriate to create it here:

Issue Description

I am new to OpenModelica and the use of the Modelica Building Libraries, so I apologize if this is not the appropriate place to raise these issues. I am using the MBL: Buildings-v10.0.0

I have created a 5GDHC district model from GeoJSON to Modelica using Dragonfly from Ladybug Tools. I managed to simulate several buildings (the example) and another one by modifying the loads. However, I am facing issues with my project, which includes 8 buildings. I had to adjust the distribution pump pressure and then manually include the peak loads in the terminal units of each building (terUniCoo and terUniHeat) to achieve a successful simulation.

The problem is that after multiple attempts, although I encounter errors like:

The following assertion has been violated at time 31459800.000000 ((noEvent(TimeSerLoa_630ef19b.ets.volMix_a.dynBal.medium.T >= 272.15))) --> "In DistrictEnergySystem.TimeSerLoa_630ef19b.ets.volMix_a.dynBal.medium: Temperature T = 271.51 K exceeded its minimum allowed value of -1 degC (272.15 Kelvin) as required from medium model "Buildings.Media.Water"."

I can get it to simulate 100%, but it has crashed several times at 99%, and I cannot determine the source of the error. I am completely new to OpenModelica, and starting with these fully configured models has been challenging.

Now, it seems to only consider the heating loads and not the cooling loads of the buildings.
Model Configuration

Steps to Reproduce

Create the 5GDHC district model using Dragonfly. ( I attached the modelica model)

des_modelica.zip

Adjust the distribution pump pressure. ( put the "dp_nominal" from the Distribution pump in the DistrictEnergySystem to 600000)
Manually include the peak loads in the terminal units. ( add the #Peak space cooling load and #Peak space heating load from the des_modelica\Loads\Resources\Data\B8161616DG7486S\modelica.mos of each building to the terUniCoo and terUniHeat elements in each TimeSeriesBuilding)
Attempt to simulate the complete model.

Expected Behavior

The simulations should consider both the heating and cooling loads of the buildings.
Observed Behavior

Only the heating loads are considered. The cooling loads are not being properly accounted for.
The screenshot shows the Temperature Input and Output of the borehole between January and September
image
image

Modelica Buildings Library: 0.10.0

@mwetter
Copy link

mwetter commented Jun 6, 2024

From what is describe above it looks like the load cannot be met, which is why the water temperature goes to -1 degC and then the simulation stops with an error.

I tried to translate des_modelica.Districts.DistrictEnergySystem from the attached zip using Buildings 10.0.0 (as the annotation says) but OpenModelica reports that the system is under-determined, and Dymola 2024x Refresh1 has various warnings and the stops as the equations are singular. So the model seems not valid.

@bvidalEKT
Copy link
Author

Thank you, @mwetter , for your response. I have modified the attached file. Since I had to manually add the loads to terUniCoo and terUniHeat, I had made several mistakes by indicating QCoo_flow_nominal with a negative sign. Initially, this should not cause the issues you reported anymore. des_modelica_corrected.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants