lbl-srg / obc

OpenBuildingControl - Performance Evaluation, Specification, Deployment and Verification of Building Control Sequences
http://obc.lbl.gov
26 stars 14 forks source link

Added files for boiler plant system #93

Closed karthikeyad-pnnl closed 2 years ago

karthikeyad-pnnl commented 3 years ago

@mwetter : I am submitting this PR to add the boiler plant files to the case study package. I have added a validation file for the boiler plant system. However, I am still in the process of running the unit tests since I have to set up the environment on my new system.

I was planning to raise a separate issue and PR on the Buildings library repo to make the necessary changes so that the boiler plant system receives the required inputs from the AHU system.

Also, what do you think would be the best way to get the boiler plant controller files on to the package, since I am currently referencing the packages on my development branch on my forked repo?

Thanks, Karthik

mwetter commented 3 years ago

@karthikeyad-pnnl : Thanks for the PR, I will look at it in the next few days. Regarding the boiler plant control sequences, best would be if you can copy the package from your Buildings Library branch to the package SystemModel.BoilerPlant.Controls (or similar). If you automate the copying with a shell script, you can make any bug fixes, if needed, on your Buildings repo branch and update the copy in SystemModel.BoilerPlant.Controls so you have only one place where changes need to be implemented.

mwetter commented 3 years ago

@karthikeyad-pnnl : Can you please address or clarify these points:

karthikeyad-pnnl commented 3 years ago

@mwetter : Thank you for the feedback! I have currently addressed most of the points. Here are my comments about some of the points above.

Thanks, Karthik

karthikeyad-pnnl commented 2 years ago

@mwetter Hi Michael, I apologize for the delay in informing you. I have added the boiler plant controller models to the package. This PR is ready for review. Thanks, Karthik

mwetter commented 2 years ago

@karthikeyad-pnnl : Does this command work for you:

simulateModel("SystemModel.BoilerPlant.Validation.System", startTime=0, stopTime=172800, method="Cvode", tolerance=1e-06, resultFile="BoilerSystem");

I get 18 errors with Dymola 2022 and the Modelica Buildings Library, commit 03be4830c827f5d9609302a33adc6220fdf8972e (see install.sh)

Also, you do need to set height_ab = 0 in the pipe from the MSL, otherwise the system won't be like a closed circuit where the height of supply and return pipes are canceling.