Skip to content

Fix test end scenario sizing head loss#165

Closed
jarsarasty wants to merge 317 commits into
Project-OMOTES:masterfrom
Multi-Energy-Systems-Optimization:fix-test_end_scenario_sizing_head_loss
Closed

Fix test end scenario sizing head loss#165
jarsarasty wants to merge 317 commits into
Project-OMOTES:masterfrom
Multi-Energy-Systems-Optimization:fix-test_end_scenario_sizing_head_loss

Conversation

@jarsarasty

Copy link
Copy Markdown
Contributor

Fix pipe parameter bug in test_end_scenario_sizing_head_loss

Fixed incorrect parameter reference where all pipes were using pipes[0]
parameters instead of their own pipe-specific parameters for diameter,
temperature, and length calculations in head loss validation.

Changed from:

pipe_diameter = solution.parameters(0)[f"{pipes[0]}.diameter"]
temperature = solution.parameters(0)[f"{pipes[0]}.temperature"] 
pipe_length = solution.parameters(0)[f"{pipes[0]}.length"]

To:

pipe_diameter = solution.parameters(0)[f"{pipe}.diameter"]
temperature = solution.parameters(0)[f"{pipe}.temperature"]
pipe_length = solution.parameters(0)[f"{pipe}.length"]

This resolves test failures where theoretical head loss calculations
were incorrect for pipes other than the first one.

FJanssen-TNO and others added 26 commits January 27, 2025 13:26
Providing with standard class that can help the post processing when loading data from the resulting jsons.
Also some of the functions that create other variables by postprocessing might be placed here, for example velocity and pressure.
bug fix post processing pipe pressure
Updated the heatexchanger heat_to_discharge constraints such that is also working for the bypass when variable temperature are picked on either side of the heat exchanger. This includes a temporary fix for a big_m which is set to infinite when temperature options are available and source is connected with logical link.
* Add exception for NaNs in profile source files
* Add NaN check for influxDB profiles
Update casadi to 3.6.7 gil release with highs 1.4.1
* Pipe DN none bug fix in grow_workflow
* upgrade trctools version
* temporary fix for dependencies
Automatically creates documentation for the pycml assets on the variables that are created for them using a decorator that checks for the add_variable method in the assets and its parents.

---------

Co-authored-by: Sebastiaan la Fleur <sebastiaan@lfse.nl>
Include discounted cost documentation, correct documentation typos, and edit some parts of the financial documentation to improve clarity.
Added states to all asset parameters and started automatic documentation on the modifiers created by esdl_heat_model.
reset POTENTIAL_ERRORS in the grow_workflow
* only fix pandapower dependency issue in test environment
Added a profile adaptation function to allow for copying the profile for the given number of years, relevant for multi-year optimization, independent on the timestep size of the year.
* change definition of power value of heat pump
Generalized select profiles for updates, such that all profiles are set to the new timeseries.
to prevent deletion of potential errors created in asset_to_component_base.py
Added estimate of grow workflow taks completion to be used in the OMOTES backend
update pyesdl & pycore version
- added profileconstraint from the esdl file
- added additional constraints for when the producer profile is specified and used in specific watts and not just normalized
* bug fix to prevent asset sizing when state=ENABLED and power profile is specified in watts
* COP of air_water_heatpump is read in financial_mixin to used in variable operational cost

* Variable Operation Cost of Air-water-heatpump is function of electricity. Error is resolved.

* A new test with a new esdl is added to check the updated Variable Operation Cost of Air-water-heatpump calculated

* Formating is done.

* Some formating updates are done.

* A new test is added to check if variable operation cost calculation is working as desired for air-water-heatpump-elec.

* Review comments are addressed

* Small modification.
@jarsarasty

Copy link
Copy Markdown
Contributor Author

Incorrect base repository. Pull request will be opened in mesido.

@jarsarasty jarsarasty closed this Jul 24, 2025
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

Successfully merging this pull request may close these issues.

8 participants