tespy 0.4.3__tar.gz → 0.4.3.post3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. {TESPy-0.4.3 → TESPy-0.4.3.post3}/.github/workflows/packaging.yml +1 -1
  2. {TESPy-0.4.3 → TESPy-0.4.3.post3}/.github/workflows/tox_checks.yml +2 -2
  3. {TESPy-0.4.3 → TESPy-0.4.3.post3}/.github/workflows/tox_pytest.yml +2 -2
  4. {TESPy-0.4.3 → TESPy-0.4.3.post3}/PKG-INFO +2 -2
  5. {TESPy-0.4.3 → TESPy-0.4.3.post3}/README.rst +3 -3
  6. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/analyses/exergy.rst +26 -7
  7. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/developing_tespy.rst +1 -1
  8. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_modules/networks.rst +28 -5
  9. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_modules.rst +1 -0
  10. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/tutorial_heat_pump.rst +1 -1
  11. TESPy-0.4.3.post3/docs/whats_new/v0-4-3-001.rst +18 -0
  12. TESPy-0.4.3.post3/docs/whats_new/v0-4-3-003.rst +18 -0
  13. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-4-3.rst +0 -4
  14. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new.rst +2 -0
  15. {TESPy-0.4.3 → TESPy-0.4.3.post3}/setup.py +1 -1
  16. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/TESPy.egg-info/PKG-INFO +2 -2
  17. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/TESPy.egg-info/SOURCES.txt +2 -0
  18. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/__init__.py +1 -1
  19. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/combustion/combustion_chamber.py +2 -2
  20. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/combustion/combustion_chamber_stoich.py +4 -4
  21. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/combustion/combustion_engine.py +1 -1
  22. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/component.py +17 -2
  23. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/deprecated.py +1 -1
  24. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/heat_exchangers/condenser.py +3 -3
  25. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/heat_exchangers/desuperheater.py +1 -1
  26. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/heat_exchangers/heat_exchanger.py +3 -3
  27. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/heat_exchangers/heat_exchanger_simple.py +1 -1
  28. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/piping/pipe.py +1 -1
  29. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/connections/bus.py +1 -1
  30. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/connections/connection.py +1 -1
  31. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/connections/deprecated.py +1 -1
  32. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/networks/deprecated.py +1 -1
  33. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/networks/network.py +133 -38
  34. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/analyses.py +7 -5
  35. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/characteristics.py +8 -18
  36. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/data_containers.py +1 -1
  37. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/document_models.py +429 -196
  38. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/fluid_properties.py +60 -28
  39. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/global_vars.py +18 -9
  40. {TESPy-0.4.3 → TESPy-0.4.3.post3}/.coveragerc +0 -0
  41. {TESPy-0.4.3 → TESPy-0.4.3.post3}/.editorconfig +0 -0
  42. {TESPy-0.4.3 → TESPy-0.4.3.post3}/.gitignore +0 -0
  43. {TESPy-0.4.3 → TESPy-0.4.3.post3}/.pep8speaks.yml +0 -0
  44. {TESPy-0.4.3 → TESPy-0.4.3.post3}/.readthedocs.yml +0 -0
  45. {TESPy-0.4.3 → TESPy-0.4.3.post3}/CODE_OF_CONDUCT.md +0 -0
  46. {TESPy-0.4.3 → TESPy-0.4.3.post3}/CONTRIBUTING.md +0 -0
  47. {TESPy-0.4.3 → TESPy-0.4.3.post3}/LICENSE +0 -0
  48. {TESPy-0.4.3 → TESPy-0.4.3.post3}/MANIFEST.in +0 -0
  49. {TESPy-0.4.3 → TESPy-0.4.3.post3}/PULL_REQUEST_TEMPLATE.md +0 -0
  50. {TESPy-0.4.3 → TESPy-0.4.3.post3}/ci/appveyor-with-compiler.cmd +0 -0
  51. {TESPy-0.4.3 → TESPy-0.4.3.post3}/ci/bootstrap.py +0 -0
  52. {TESPy-0.4.3 → TESPy-0.4.3.post3}/ci/generate_tespy_data_module.py +0 -0
  53. {TESPy-0.4.3 → TESPy-0.4.3.post3}/ci/requirements.txt +0 -0
  54. {TESPy-0.4.3 → TESPy-0.4.3.post3}/ci/templates/.appveyor.yml +0 -0
  55. {TESPy-0.4.3 → TESPy-0.4.3.post3}/ci/templates/.travis.yml +0 -0
  56. {TESPy-0.4.3 → TESPy-0.4.3.post3}/ci/templates/tox.ini +0 -0
  57. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/_build/_static/css/custom.css +0 -0
  58. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/CombustionChamber.svg +0 -0
  59. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/CombustionEngine.svg +0 -0
  60. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Compressor.svg +0 -0
  61. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Condenser.svg +0 -0
  62. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/DropletSeparator.svg +0 -0
  63. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Drum.svg +0 -0
  64. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/HeatExchanger.svg +0 -0
  65. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Merge.svg +0 -0
  66. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Node.svg +0 -0
  67. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/ORCEvaporator.svg +0 -0
  68. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/ParabolicTrough.svg +0 -0
  69. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Pipe.svg +0 -0
  70. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Pump.svg +0 -0
  71. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/SEGS_flowsheet.svg +0 -0
  72. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/SEGS_sankey.png +0 -0
  73. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/SolarCollector.svg +0 -0
  74. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Splitter.svg +0 -0
  75. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/SubsystemInterface.svg +0 -0
  76. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Ts_diagram_states.svg +0 -0
  77. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Turbine.svg +0 -0
  78. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/Valve.svg +0 -0
  79. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/WaterElectrolyzer.svg +0 -0
  80. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/basic.svg +0 -0
  81. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/basic_efficiency.svg +0 -0
  82. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/cc_bp.svg +0 -0
  83. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/chp.svg +0 -0
  84. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/chp_PQ.svg +0 -0
  85. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/combustion_engine_Q1_char_DEFAULT.svg +0 -0
  86. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/combustion_engine_Q2_char_DEFAULT.svg +0 -0
  87. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/combustion_engine_Qloss_char_DEFAULT.svg +0 -0
  88. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/combustion_engine_tiP_char_DEFAULT.svg +0 -0
  89. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/compressor_char_map_eta_s_DEFAULT.svg +0 -0
  90. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/compressor_char_map_pr_DEFAULT.svg +0 -0
  91. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/compressor_eta_s_char_DEFAULT.svg +0 -0
  92. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/condenser_kA_char1_DEFAULT.svg +0 -0
  93. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/condenser_kA_char2_DEFAULT.svg +0 -0
  94. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/desuperheater_kA_char1_DEFAULT.svg +0 -0
  95. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/desuperheater_kA_char2_DEFAULT.svg +0 -0
  96. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/dhs.svg +0 -0
  97. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/dhs_closed.svg +0 -0
  98. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/dhs_forks.svg +0 -0
  99. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/dhs_open.svg +0 -0
  100. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_exchanger_kA_char1_CONDENSING_FLUID.svg +0 -0
  101. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_exchanger_kA_char1_DEFAULT.svg +0 -0
  102. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_exchanger_kA_char2_DEFAULT.svg +0 -0
  103. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_exchanger_kA_char2_EVAPORATING_FLUID.svg +0 -0
  104. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_exchanger_simple_kA_char_DEFAULT.svg +0 -0
  105. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_pump.svg +0 -0
  106. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_pump_COP_air.svg +0 -0
  107. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_pump_COP_water.svg +0 -0
  108. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/heat_pump_example.svg +0 -0
  109. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/intro_connections.svg +0 -0
  110. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/intro_district_heating_scheme.svg +0 -0
  111. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/logo_tespy_big.svg +0 -0
  112. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/logo_tespy_big_editable_font.svg +0 -0
  113. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/logo_tespy_mid.svg +0 -0
  114. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/logo_tespy_mid_editable_font.svg +0 -0
  115. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/logo_tespy_small.svg +0 -0
  116. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/logph_diagram_states.svg +0 -0
  117. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/pipe_kA_char_DEFAULT.svg +0 -0
  118. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/power_plant_two_extractions.svg +0 -0
  119. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/pump_eta_s_char_DEFAULT.svg +0 -0
  120. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/scatterplot_efficiency_optimization.svg +0 -0
  121. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/subsystem_waste_heat_generator.svg +0 -0
  122. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/turbine_eta_s_char_DEFAULT.svg +0 -0
  123. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/turbine_eta_s_char_TRAUPEL.svg +0 -0
  124. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/tutorial_heat_pump.svg +0 -0
  125. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/_images/water_electrolyzer_eta_char_DEFAULT.svg +0 -0
  126. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/tespy.components.rst +0 -0
  127. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/tespy.connections.rst +0 -0
  128. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/tespy.data.rst +0 -0
  129. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/tespy.networks.rst +0 -0
  130. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api/tespy.tools.rst +0 -0
  131. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/api.rst +0 -0
  132. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/conf.py +0 -0
  133. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/first_steps.rst +0 -0
  134. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/index.rst +0 -0
  135. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/installation.rst +0 -0
  136. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/introduction.rst +0 -0
  137. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/references.bib +0 -0
  138. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/requirements.txt +0 -0
  139. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_analyses.rst +0 -0
  140. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_modules/characteristics.rst +0 -0
  141. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_modules/components.rst +0 -0
  142. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_modules/connections.rst +0 -0
  143. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_modules/fluid_properties.rst +0 -0
  144. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_modules/other.rst +0 -0
  145. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tespy_modules/subsystems.rst +0 -0
  146. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/clausius_rankine.rst +0 -0
  147. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/clausius_rankine_chp.rst +0 -0
  148. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/combined_cycle_chp.rst +0 -0
  149. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/combustion_engine.rst +0 -0
  150. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/district_heating.rst +0 -0
  151. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/heat_pump.rst +0 -0
  152. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/solar_collector.rst +0 -0
  153. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/tutorial_combustion_chamber.rst +0 -0
  154. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples/tutorial_pygmo_optimization.rst +0 -0
  155. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/tutorials_examples.rst +0 -0
  156. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-0-1.rst +0 -0
  157. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-0-2.rst +0 -0
  158. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-0-3.rst +0 -0
  159. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-0-4.rst +0 -0
  160. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-0-5.rst +0 -0
  161. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-1-0.rst +0 -0
  162. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-1-1.rst +0 -0
  163. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-1-2.rst +0 -0
  164. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-1-3.rst +0 -0
  165. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-1-4.rst +0 -0
  166. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-2-0.rst +0 -0
  167. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-2-1.rst +0 -0
  168. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-2-2.rst +0 -0
  169. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-3-0.rst +0 -0
  170. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-3-1.rst +0 -0
  171. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-3-2.rst +0 -0
  172. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-3-3.rst +0 -0
  173. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-3-4.rst +0 -0
  174. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-4-0.rst +0 -0
  175. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-4-1.rst +0 -0
  176. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/whats_new/v0-4-2.rst +0 -0
  177. {TESPy-0.4.3 → TESPy-0.4.3.post3}/docs/zliterature.rst +0 -0
  178. {TESPy-0.4.3 → TESPy-0.4.3.post3}/paper.bib +0 -0
  179. {TESPy-0.4.3 → TESPy-0.4.3.post3}/paper.md +0 -0
  180. {TESPy-0.4.3 → TESPy-0.4.3.post3}/pyproject.toml +0 -0
  181. {TESPy-0.4.3 → TESPy-0.4.3.post3}/setup.cfg +0 -0
  182. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/TESPy.egg-info/dependency_links.txt +0 -0
  183. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/TESPy.egg-info/not-zip-safe +0 -0
  184. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/TESPy.egg-info/requires.txt +0 -0
  185. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/TESPy.egg-info/top_level.txt +0 -0
  186. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/__init__.py +0 -0
  187. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/basics/__init__.py +0 -0
  188. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/basics/cycle_closer.py +0 -0
  189. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/basics/sink.py +0 -0
  190. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/basics/source.py +0 -0
  191. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/basics/subsystem_interface.py +0 -0
  192. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/combustion/__init__.py +0 -0
  193. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/customs/__init__.py +0 -0
  194. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/customs/orc_evaporator.py +0 -0
  195. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/heat_exchangers/__init__.py +0 -0
  196. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/heat_exchangers/parabolic_trough.py +0 -0
  197. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/heat_exchangers/solar_collector.py +0 -0
  198. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/nodes/__init__.py +0 -0
  199. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/nodes/base.py +0 -0
  200. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/nodes/droplet_separator.py +0 -0
  201. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/nodes/drum.py +0 -0
  202. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/nodes/merge.py +0 -0
  203. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/nodes/separator.py +0 -0
  204. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/nodes/splitter.py +0 -0
  205. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/piping/__init__.py +0 -0
  206. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/piping/valve.py +0 -0
  207. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/reactors/__init__.py +0 -0
  208. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/reactors/water_electrolyzer.py +0 -0
  209. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/subsystem.py +0 -0
  210. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/turbomachinery/__init__.py +0 -0
  211. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/turbomachinery/compressor.py +0 -0
  212. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/turbomachinery/pump.py +0 -0
  213. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/turbomachinery/turbine.py +0 -0
  214. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/components/turbomachinery/turbomachine.py +0 -0
  215. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/connections/__init__.py +0 -0
  216. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/data/__init__.py +0 -0
  217. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/data/char_lines.json +0 -0
  218. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/data/char_maps.json +0 -0
  219. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/networks/__init__.py +0 -0
  220. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/networks/network_reader.py +0 -0
  221. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/__init__.py +0 -0
  222. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/helpers.py +0 -0
  223. {TESPy-0.4.3 → TESPy-0.4.3.post3}/src/tespy/tools/logger.py +0 -0
  224. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_analyses/test_entropy_analysis.py +0 -0
  225. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_analyses/test_exergy_analysis.py +0 -0
  226. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_busses.py +0 -0
  227. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_components/test_combustion.py +0 -0
  228. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_components/test_customs.py +0 -0
  229. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_components/test_heat_exchangers.py +0 -0
  230. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_components/test_piping.py +0 -0
  231. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_components/test_reactors.py +0 -0
  232. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_components/test_turbomachinery.py +0 -0
  233. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_errors.py +0 -0
  234. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_models/test_gas_turbine_models.py +0 -0
  235. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_models/test_heat_pump_model.py +0 -0
  236. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_networks/test_network.py +0 -0
  237. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_tools/test_characteristics.py +0 -0
  238. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_tools/test_fluid_properties.py +0 -0
  239. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tests/test_tools/test_helpers.py +0 -0
  240. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tox.ini +0 -0
  241. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tutorial/step_1.py +0 -0
  242. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tutorial/step_2.py +0 -0
  243. {TESPy-0.4.3 → TESPy-0.4.3.post3}/tutorial/step_3.py +0 -0
@@ -3,7 +3,7 @@ name: packaging
3
3
  on:
4
4
  # Make sure packaging process is not broken
5
5
  push:
6
- branches: [master, dev]
6
+ branches: [main, dev]
7
7
  pull_request:
8
8
  # Make a package for release
9
9
  release:
@@ -4,11 +4,11 @@ name: tox checks
4
4
  on:
5
5
  push:
6
6
  branches:
7
- - master
7
+ - main
8
8
  - dev
9
9
  pull_request:
10
10
  branches:
11
- - master
11
+ - main
12
12
  - dev
13
13
  workflow_dispatch:
14
14
  schedule:
@@ -3,11 +3,11 @@ name: tox pytests
3
3
  on:
4
4
  push:
5
5
  branches:
6
- - master
6
+ - main
7
7
  - dev
8
8
  pull_request:
9
9
  branches:
10
- - master
10
+ - main
11
11
  - dev
12
12
  workflow_dispatch:
13
13
  schedule:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TESPy
3
- Version: 0.4.3
3
+ Version: 0.4.3.post3
4
4
  Summary: Thermal Engineering Systems in Python (TESPy)
5
5
  Home-page: https://github.com/oemof/tespy
6
6
  Author: Francesco Witte
@@ -81,7 +81,7 @@ Description: Thermal Engineering Systems in Python
81
81
 
82
82
  For a short introduction on how TESPy works and how you can use it, we provide
83
83
  some
84
- `examples and tutorials <https://tespy.readthedocs.io/en/master/tutorials_examples.html>`_,
84
+ `examples and tutorials <https://tespy.readthedocs.io/en/main/tutorials_examples.html>`_,
85
85
  go and check them out. You can download the python scripts of all example plants
86
86
  from the
87
87
  `tespy_examples <https://github.com/oemof/oemof-examples/tree/master/oemof_examples/tespy>`_
@@ -65,7 +65,7 @@ Key Features
65
65
  :target: https://github.com/oemof/tespy/actions?query=workflow%3Apackaging
66
66
  :alt: packaging
67
67
 
68
- .. |coveralls| image:: https://coveralls.io/repos/oemof/tespy/badge.svg?branch=master&service=github
68
+ .. |coveralls| image:: https://coveralls.io/repos/oemof/tespy/badge.svg?branch=main&service=github
69
69
  :alt: Coverage Status
70
70
  :target: https://coveralls.io/r/oemof/tespy
71
71
 
@@ -83,7 +83,7 @@ Key Features
83
83
 
84
84
  .. |commits-since| image:: https://img.shields.io/github/commits-since/oemof/tespy/latest/dev
85
85
  :alt: Commits since latest release
86
- :target: https://github.com/oemof/tespy/compare/master...dev
86
+ :target: https://github.com/oemof/tespy/compare/main...dev
87
87
 
88
88
  .. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.2555866.svg
89
89
  :alt: Release archive
@@ -128,7 +128,7 @@ Examples
128
128
 
129
129
  For a short introduction on how TESPy works and how you can use it, we provide
130
130
  some
131
- `examples and tutorials <https://tespy.readthedocs.io/en/master/tutorials_examples.html>`_,
131
+ `examples and tutorials <https://tespy.readthedocs.io/en/main/tutorials_examples.html>`_,
132
132
  go and check them out. You can download the python scripts of all example plants
133
133
  from the
134
134
  `tespy_examples <https://github.com/oemof/oemof-examples/tree/master/oemof_examples/tespy>`_
@@ -48,7 +48,8 @@ potential exergy are neglected and therefore not considered as well.
48
48
  * - :code:`ex_physical`, :code:`Ex_physical`
49
49
  - (specific) physical exergy
50
50
  - :math:`e^\mathrm{PH}`, :math:`E^\mathrm{PH}`
51
- - due to the deviation of the temperature and pressure of the system from those of the environment
51
+ - due to the deviation of the temperature and pressure of the system from
52
+ those of the environment
52
53
  * - :code:`ex_therm`, :code:`Ex_therm`
53
54
  - (specific) thermal exergy
54
55
  - :math:`e^\mathrm{T}`, :math:`E^\mathrm{T}`
@@ -60,19 +61,24 @@ potential exergy are neglected and therefore not considered as well.
60
61
  * - :code:`E_P`
61
62
  - product exergy
62
63
  - :math:`\dot{E}_\mathrm{P}`
63
- - represents the desired result(expressed in terms of exergy) generated by the system being considered represents the resources (expressed in terms of exergy)
64
+ - represents the desired result(expressed in terms of exergy) generated
65
+ by the system being considered represents the resources (expressed in
66
+ terms of exergy)
64
67
  * - :code:`E_F`
65
68
  - fuel exergy
66
69
  - :math:`\dot{E}_\mathrm{F}`
67
- - represents the resources (expressed in terms of exergy) expended to provide the product exergy
70
+ - represents the resources (expressed in terms of exergy) expended to
71
+ provide the product exergy
68
72
  * - :code:`E_D`
69
73
  - exergy destruction
70
74
  - :math:`\dot{E}_\mathrm{D}`
71
- - thermodynamic inefficienies associated with the irreversibilities (entropy generation) within the system boundaries
75
+ - thermodynamic inefficienies associated with the irreversibilities
76
+ (entropy generation) within the system boundaries
72
77
  * - :code:`E_L`
73
78
  - exergy loss
74
79
  - :math:`\dot{E}_\mathrm{L}`
75
- - thermodynamic inefficienies associated with the transfer of exergy through material and energy streams to the surroundings
80
+ - thermodynamic inefficienies associated with the transfer of exergy
81
+ through material and energy streams to the surroundings
76
82
  * - :code:`epsilon`
77
83
  - exergetic efficiency
78
84
  - :math:`\varepsilon`
@@ -80,11 +86,13 @@ potential exergy are neglected and therefore not considered as well.
80
86
  * - :code:`y_D,k`
81
87
  - exergy destruction ratio
82
88
  - :math:`y_\mathrm{D}`
83
- - rate of exergy destruction in a component compared to the exergy rate of the fuel provided to the overall system
89
+ - rate of exergy destruction in a component compared to the exergy rate
90
+ of the fuel provided to the overall system
84
91
  * - :code:`y*_D,k`
85
92
  - exergy destruction ratio
86
93
  - :math:`y^*_\mathrm{D}`
87
- - rate of exergy destruction in a component compared to the total exergy destruction rate within the system
94
+ - rate of exergy destruction in a component compared to the total exergy
95
+ destruction rate within the system
88
96
 
89
97
  .. note::
90
98
 
@@ -99,6 +107,11 @@ In this short tutorial, an exergy analysis is carried out for the Solar Energy
99
107
  Generating System (SEGS). The full python script is available on GitHub in
100
108
  an individual repository: https://github.com/fwitte/SEGS_exergy.
101
109
 
110
+ Two other full code examples are to be found at:
111
+
112
+ - Supercritical CO\ :sub:`2` power cycle: https://github.com/fwitte/sCO2_exergy
113
+ - Refrigeration machine: https://github.com/fwitte/refrigeration_cycle_exergy
114
+
102
115
  The SEGS consists of three main systems, the solar field, the steam cycle and
103
116
  the cooling water system. In the solar field Therminol VP1 is used as heat
104
117
  transfer liquid. In the steam generator and reheater the TVP1 is cooled down to
@@ -389,6 +402,12 @@ colors can be assigned to these types of streams.
389
402
  - The respective value are strings representing colors in the RGBA format,
390
403
  e.g. :code:`'rgba(100, 100, 100, 0.5)'`.
391
404
 
405
+ .. note::
406
+
407
+ Links with negative exergy flow, i.e. when the value of mechanical exergy
408
+ is negative due to pressure lower than ambient pressure and total exergy
409
+ is still negative, cannot be displayed by the sankey diagram.
410
+
392
411
  The underlying exergy stream data is saved in a dictionary, if you want to
393
412
  handle the data by yourself.
394
413
 
@@ -207,7 +207,7 @@ Docstrings
207
207
 
208
208
  We decided to use the style of the numpydoc docstrings. See the following
209
209
  link for an
210
- `example <https://github.com/numpy/numpy/blob/master/doc/example.py>`_.
210
+ `example <https://github.com/numpy/numpy/blob/main/doc/example.py>`_.
211
211
 
212
212
 
213
213
  Code commenting
@@ -577,8 +577,8 @@ have further options:
577
577
  - Save the results in structure of .csv-files (:code:`save()`).
578
578
  - Generate fluid property diagrams with an external tool.
579
579
 
580
- Model documentation
581
- ^^^^^^^^^^^^^^^^^^^
580
+ Automatic model documentation
581
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
582
582
  Using the automatic TESPy model documentation you can create an overview of
583
583
  all input parameters, specifications and equations as well as characteristics
584
584
  applied in LaTeX format. This enables high
@@ -593,14 +593,36 @@ optional arguments to the method:
593
593
 
594
594
  - :code:`path`: Basepath, where the LaTeX data and figures are exported to.
595
595
  - :code:`filename`: Filename of the report.
596
- - :code:`draft`: Show or hide the first part of the Software Information
597
- section.
596
+ - :code:`rpt_formatter`: A formatting dictionary, for a sample see below.
598
597
 
599
598
  .. code-block:: python
600
599
 
601
600
  from tespy.tools import document_model
602
601
 
603
- document_model(mynetwork)
602
+ rpt_params = {
603
+ 'latex_body': True, # adds LaTeX body to compile report out of the box
604
+ 'include_results': True, # include parameter specification and results
605
+ 'HeatExchanger': { # for components of class HeatExchanger
606
+ 'params': ['Q', 'ttd_l', 'ttd_u', 'pr1', 'pr2']}, # change columns displayed
607
+ 'Condenser': { # for components of class HeatExchanger
608
+ 'params': ['Q', 'ttd_l', 'ttd_u', 'pr1', 'pr2']
609
+ 'float_fmt': '{:,.2f}'}, # change float format of data
610
+ 'Connection': { # for Connection instances
611
+ 'p': {'float_fmt': '{:,.4f}'}, # change float format of pressure
612
+ 's': {'float_fmt': '{:,.4f}'},
613
+ 'h': {'float_fmt': '{:,.2f}'},
614
+ 'params': ['m', 'p', 'h', 's'] # list results of mass flow, ...
615
+ 'fluid': {'include_results': False} # exclude results of fluid composition
616
+ },
617
+ 'include_results': True, # include results
618
+ 'draft': False # disable draft mode
619
+ }
620
+ document_model(mynetwork, rpt_formatter=rpt_params)
621
+
622
+ .. note::
623
+
624
+ Specified values are displayed in any case. The selection of which
625
+ parameters to show and which to exclude only applies to results.
604
626
 
605
627
  After having exported the LaTeX code, you can simply use :code:`\input{}`
606
628
  in your main LaTeX document to include the documentation of your model. In
@@ -613,6 +635,7 @@ order to compile correctly you need to load the following LaTeX packages:
613
635
  - amsmath
614
636
  - units
615
637
  - cleveref
638
+ - longtable
616
639
 
617
640
  For generating different file formats, like markdown, html or
618
641
  restructuredtext, you could try the `pandoc <https://pandoc.org/>`_ library.
@@ -16,6 +16,7 @@ simulation with TESPy.
16
16
  :local:
17
17
  :backlinks: top
18
18
 
19
+ .. _tespy_modules_network_label:
19
20
  .. include:: tespy_modules/networks.rst
20
21
  .. _using_tespy_components_label:
21
22
  .. include:: tespy_modules/components.rst
@@ -293,7 +293,7 @@ pressure ratios on hot and cold side as well as the lower terminal temperature
293
293
  difference. We use the hot side pressure ratio and the lower terminal
294
294
  temperature (similar to pinch point layout for waste heat steam generators)
295
295
  difference as design parameters and choose zeta as well as the area independent
296
- heat transition coefficient as its offdesign parameters.
296
+ heat transfer coefficient as its offdesign parameters.
297
297
 
298
298
  On top of that, the characteristic function of the evaporator should follow the
299
299
  default characteristic line of 'EVAPORATING FLUID' on the cold side and the
@@ -0,0 +1,18 @@
1
+ v0.4.3-001 - Grassmann's Graph (May, 12, 2021)
2
+ ++++++++++++++++++++++++++++++++++++++++++++++
3
+
4
+ Documentation
5
+ #############
6
+ - Some minor changes in documentation.
7
+
8
+ Other Changes
9
+ #############
10
+ - Check for :code:`key in dictionary` instead of
11
+ :code:`key in dictionary.keys()` in boolean operations
12
+ (`PR #264 <https://github.com/oemof/tespy/pull/264>`_).
13
+ - Rename GitHub branches: master to main
14
+ (`Issue #266 <https://github.com/oemof/tespy/issues/266>`_).
15
+
16
+ Contributors
17
+ ############
18
+ - Francesco Witte (`@fwitte <https://github.com/fwitte>`_)
@@ -0,0 +1,18 @@
1
+ v0.4.3-003 - Grassmann's Graph (May, 17, 2021)
2
+ ++++++++++++++++++++++++++++++++++++++++++++++
3
+
4
+ Documentation
5
+ #############
6
+ - Fix typos in the HeatExchanger classes API docs.
7
+ - Add two more examples for exergy analysis setups.
8
+
9
+ Other Changes
10
+ #############
11
+ - Make it possible to include results in automatic model report, for more
12
+ information see the corresponding section in the documentation:
13
+ :ref:`TESPy Networks Postprocessing <tespy_modules_network_label>`
14
+ (`PR #267 <https://github.com/oemof/tespy/pull/267>`_).
15
+
16
+ Contributors
17
+ ############
18
+ - Francesco Witte (`@fwitte <https://github.com/fwitte>`_)
@@ -39,10 +39,6 @@ Documentation
39
39
  - An own chapter for the
40
40
  :ref:`exergy analysis toolbox <tespy_analyses_exergy_label>` has been added
41
41
  (`PR #251 <https://github.com/oemof/tespy/pull/251>`_).
42
-
43
-
44
- Documentation
45
- #############
46
42
  - Fix some typos in the code of heat pump tutorial
47
43
  (`PR #260 <https://github.com/oemof/tespy/pull/260>`_).
48
44
  - Update component parameter data type specifications according to 0.4.x API
@@ -8,6 +8,8 @@ Discover noteable new features and improvements in each release
8
8
  :local:
9
9
  :backlinks: top
10
10
 
11
+ .. include:: whats_new/v0-4-3-003.rst
12
+ .. include:: whats_new/v0-4-3-001.rst
11
13
  .. include:: whats_new/v0-4-3.rst
12
14
  .. include:: whats_new/v0-4-2.rst
13
15
  .. include:: whats_new/v0-4-1.rst
@@ -25,7 +25,7 @@ def read(*names, **kwargs):
25
25
 
26
26
  setup(
27
27
  name='TESPy',
28
- version='0.4.3',
28
+ version='0.4.3-003',
29
29
  license='MIT',
30
30
  description='Thermal Engineering Systems in Python (TESPy)',
31
31
  long_description='%s' % (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: TESPy
3
- Version: 0.4.3
3
+ Version: 0.4.3.post3
4
4
  Summary: Thermal Engineering Systems in Python (TESPy)
5
5
  Home-page: https://github.com/oemof/tespy
6
6
  Author: Francesco Witte
@@ -81,7 +81,7 @@ Description: Thermal Engineering Systems in Python
81
81
 
82
82
  For a short introduction on how TESPy works and how you can use it, we provide
83
83
  some
84
- `examples and tutorials <https://tespy.readthedocs.io/en/master/tutorials_examples.html>`_,
84
+ `examples and tutorials <https://tespy.readthedocs.io/en/main/tutorials_examples.html>`_,
85
85
  go and check them out. You can download the python scripts of all example plants
86
86
  from the
87
87
  `tespy_examples <https://github.com/oemof/oemof-examples/tree/master/oemof_examples/tespy>`_
@@ -152,6 +152,8 @@ docs/whats_new/v0-3-4.rst
152
152
  docs/whats_new/v0-4-0.rst
153
153
  docs/whats_new/v0-4-1.rst
154
154
  docs/whats_new/v0-4-2.rst
155
+ docs/whats_new/v0-4-3-001.rst
156
+ docs/whats_new/v0-4-3-003.rst
155
157
  docs/whats_new/v0-4-3.rst
156
158
  src/TESPy.egg-info/PKG-INFO
157
159
  src/TESPy.egg-info/SOURCES.txt
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8
2
2
 
3
- __version__ = '0.4.3 - Grassmann\'s Graph'
3
+ __version__ = '0.4.3-003 - Grassmann\'s Graph'
4
4
 
5
5
  # tespy data and connections import
6
6
  from . import connections # noqa: F401
@@ -242,7 +242,7 @@ class CombustionChamber(Component):
242
242
  self.fuels[f] = {}
243
243
  structure = fluid_structure(f)
244
244
  for el in ['C', 'H', 'O']:
245
- if el in structure.keys():
245
+ if el in structure:
246
246
  self.fuels[f][el] = structure[el]
247
247
  else:
248
248
  self.fuels[f][el] = 0
@@ -1134,7 +1134,7 @@ class CombustionChamber(Component):
1134
1134
 
1135
1135
  for o in self.outl:
1136
1136
  for fluid, x in o.fluid.val.items():
1137
- if not o.fluid.val_set[fluid] and fluid in fg.keys():
1137
+ if not o.fluid.val_set[fluid] and fluid in fg:
1138
1138
  o.fluid.val[fluid] = fg[fluid]
1139
1139
  o.target.propagate_fluid_to_target(o, o.target)
1140
1140
 
@@ -345,7 +345,7 @@ class CombustionChamberStoich(CombustionChamber):
345
345
 
346
346
  n = {}
347
347
  for el in ['C', 'H', 'O']:
348
- if el in structure.keys():
348
+ if el in structure:
349
349
  n[el] = structure[el]
350
350
  else:
351
351
  n[el] = 0
@@ -435,7 +435,7 @@ class CombustionChamberStoich(CombustionChamber):
435
435
  set([a.replace(' ', '') for a in CP.get_aliases(f)]))
436
436
 
437
437
  if len(fl) == 0:
438
- if f in self.fg.keys():
438
+ if f in self.fg:
439
439
  self.fg[f] += x * m_fuel
440
440
  else:
441
441
  self.fg[f] = x * m_fuel
@@ -445,7 +445,7 @@ class CombustionChamberStoich(CombustionChamber):
445
445
  structure = fluid_structure(f)
446
446
  n = {}
447
447
  for el in ['C', 'H', 'O']:
448
- if el in structure.keys():
448
+ if el in structure:
449
449
  n[el] = structure[el]
450
450
  else:
451
451
  n[el] = 0
@@ -464,7 +464,7 @@ class CombustionChamberStoich(CombustionChamber):
464
464
 
465
465
  for f, x in self.air.val.items():
466
466
  if f != self.o2:
467
- if f in self.fg.keys():
467
+ if f in self.fg:
468
468
  self.fg[f] += m_air * x
469
469
  else:
470
470
  self.fg[f] = m_air * x
@@ -1404,7 +1404,7 @@ class CombustionEngine(CombustionChamber):
1404
1404
 
1405
1405
  o = self.outl[2]
1406
1406
  for fluid, x in o.fluid.val.items():
1407
- if not o.fluid.val_set[fluid] and fluid in fg.keys():
1407
+ if not o.fluid.val_set[fluid] and fluid in fg:
1408
1408
  o.fluid.val[fluid] = fg[fluid]
1409
1409
  o.target.propagate_fluid_to_target(o, o.target)
1410
1410
 
@@ -151,7 +151,7 @@ class Component:
151
151
  """
152
152
  # set specified values
153
153
  for key in kwargs:
154
- if key in self.variables.keys():
154
+ if key in self.variables:
155
155
  data = self.get_attr(key)
156
156
  if kwargs[key] is None:
157
157
  data.set_attr(is_set=False)
@@ -321,6 +321,10 @@ class Component:
321
321
  self.vars = {}
322
322
  self.num_vars = 0
323
323
  self.constraints = OrderedDict(self.get_mandatory_constraints().copy())
324
+ self.prop_specifications = {}
325
+ self.var_specifications = {}
326
+ self.group_specifications = {}
327
+ self.char_specifications = {}
324
328
  self.__dict__.update(self.constraints)
325
329
 
326
330
  for constraint in self.constraints.values():
@@ -334,8 +338,13 @@ class Component:
334
338
  self.num_vars += 1
335
339
  self.vars[data] = key
336
340
 
341
+ self.prop_specifications[key] = val.is_set
342
+ self.var_specifications[key] = val.is_var
343
+
337
344
  # component characteristics
338
345
  elif isinstance(val, dc_cc):
346
+ if data.func is not None:
347
+ self.char_specifications[key] = val.is_set
339
348
  if data.char_func is None:
340
349
  try:
341
350
  data.char_func = ldc(
@@ -345,6 +354,8 @@ class Component:
345
354
 
346
355
  # component characteristics
347
356
  elif isinstance(val, dc_cm):
357
+ if data.func is not None:
358
+ self.char_specifications[key] = val.is_set
348
359
  if data.char_func is None:
349
360
  try:
350
361
  data.char_func = ldc(
@@ -371,12 +382,16 @@ class Component:
371
382
  val.set_attr(is_set=False)
372
383
  else:
373
384
  val.set_attr(is_set=False)
385
+ self.group_specifications[key] = val.is_set
386
+
387
+ # grouped component characteristics
388
+ elif isinstance(val, dc_gcc):
389
+ self.group_specifications[key] = val.is_set
374
390
 
375
391
  # component properties
376
392
  if data.is_set and data.func is not None:
377
393
  self.num_eq += data.num_eq
378
394
 
379
- # print(key, data.is_set, self.num_eq)
380
395
  # set up Jacobian matrix and residual vector
381
396
  self.jacobian = np.zeros((
382
397
  self.num_eq,
@@ -13,7 +13,7 @@ class PlaceHolderForError:
13
13
  msg = (
14
14
  'Version 0.4.x introduced PEP 8 conform class names for all '
15
15
  'classes used in TESPy. Please refer to '
16
- 'https://tespy.readthedocs.io/en/master/whats_new.html '
16
+ 'https://tespy.readthedocs.io/en/main/whats_new.html '
17
17
  'learn about the changes necessary to adapt your script to the '
18
18
  'latest API.'
19
19
  )
@@ -116,11 +116,11 @@ class Condenser(HeatExchanger):
116
116
  temprature of condensing fluid) :math:`ttd_\mathrm{u}/\text{K}`.
117
117
 
118
118
  kA : float, dict
119
- Area independent heat transition coefficient,
119
+ Area independent heat transfer coefficient,
120
120
  :math:`kA/\frac{\text{W}}{\text{K}}`.
121
121
 
122
122
  kA_char : tespy.tools.data_containers.DataContainerSimple
123
- Area independent heat transition coefficient characteristic.
123
+ Area independent heat transfer coefficient characteristic.
124
124
 
125
125
  kA_char1 : tespy.tools.characteristics.CharLine, dict
126
126
  Characteristic line for hot side heat transfer coefficient.
@@ -219,7 +219,7 @@ class Condenser(HeatExchanger):
219
219
  'kA': dc_cp(
220
220
  min_val=0, num_eq=1, func=self.kA_func, latex=self.kA_func_doc,
221
221
  deriv=self.kA_deriv),
222
- 'td_log': dc_cp(min_val=0),
222
+ 'td_log': dc_cp(min_val=0, func='dummy'),
223
223
  'ttd_u': dc_cp(
224
224
  min_val=0, num_eq=1, func=self.ttd_u_func,
225
225
  deriv=self.ttd_u_deriv, latex=self.ttd_u_func_doc),
@@ -101,7 +101,7 @@ class Desuperheater(HeatExchanger):
101
101
  Upper terminal temperature difference :math:`ttd_\mathrm{u}/\text{K}`.
102
102
 
103
103
  kA : float, dict
104
- Area independent heat transition coefficient,
104
+ Area independent heat transfer coefficient,
105
105
  :math:`kA/\frac{\text{W}}{\text{K}}`.
106
106
 
107
107
  kA_char1 : tespy.tools.characteristics.CharLine, dict
@@ -110,11 +110,11 @@ class HeatExchanger(Component):
110
110
  Upper terminal temperature difference :math:`ttd_\mathrm{u}/\text{K}`.
111
111
 
112
112
  kA : float, dict
113
- Area independent heat transition coefficient,
113
+ Area independent heat transfer coefficient,
114
114
  :math:`kA/\frac{\text{W}}{\text{K}}`.
115
115
 
116
116
  kA_char : dict
117
- Area independent heat transition coefficient characteristic.
117
+ Area independent heat transfer coefficient characteristic.
118
118
 
119
119
  kA_char1 : tespy.tools.characteristics.CharLine, dict
120
120
  Characteristic line for hot side heat transfer coefficient.
@@ -201,7 +201,7 @@ class HeatExchanger(Component):
201
201
  'kA': dc_cp(
202
202
  min_val=0, num_eq=1, func=self.kA_func, latex=self.kA_func_doc,
203
203
  deriv=self.kA_deriv),
204
- 'td_log': dc_cp(min_val=0),
204
+ 'td_log': dc_cp(min_val=0, func='dummy'),
205
205
  'ttd_u': dc_cp(
206
206
  min_val=0, num_eq=1, func=self.ttd_u_func,
207
207
  deriv=self.ttd_u_deriv, latex=self.ttd_u_func_doc),
@@ -116,7 +116,7 @@ class HeatExchangerSimple(Component):
116
116
  used.
117
117
 
118
118
  kA : float, dict, :code:`"var"`
119
- Area independent heat transition coefficient,
119
+ Area independent heat transfer coefficient,
120
120
  :math:`kA/\frac{\text{W}}{\text{K}}`.
121
121
 
122
122
  kA_char : tespy.tools.characteristics.CharLine, dict
@@ -94,7 +94,7 @@ class Pipe(HeatExchangerSimple):
94
94
  used.
95
95
 
96
96
  kA : float, dict, :code:`"var"`
97
- Area independent heat transition coefficient,
97
+ Area independent heat transfer coefficient,
98
98
  :math:`kA/\frac{\text{W}}{\text{K}}`.
99
99
 
100
100
  kA_char : tespy.tools.characteristics.CharLine, dict
@@ -326,7 +326,7 @@ class Bus:
326
326
  """
327
327
  for c in args:
328
328
  if isinstance(c, dict):
329
- if 'comp' in c.keys():
329
+ if 'comp' in c:
330
330
  comp = c['comp']
331
331
  # default values
332
332
  if isinstance(comp, Component):
@@ -375,7 +375,7 @@ class Connection:
375
375
  msg = 'Label can only be specified on instance creation.'
376
376
  logging.error(msg)
377
377
  raise TESPyConnectionError(msg)
378
- elif key in self.variables.keys() or key in self.variables0:
378
+ elif key in self.variables or key in self.variables0:
379
379
  # fluid specification
380
380
  try:
381
381
  float(kwargs[key])
@@ -13,7 +13,7 @@ class PlaceHolderForError:
13
13
  msg = (
14
14
  'Version 0.4.x introduced PEP 8 conform class names for all '
15
15
  'classes used in TESPy. Please refer to '
16
- 'https://tespy.readthedocs.io/en/master/whats_new.html '
16
+ 'https://tespy.readthedocs.io/en/main/whats_new.html '
17
17
  'learn about the changes necessary to adapt your script to the '
18
18
  'latest API.'
19
19
  )
@@ -13,7 +13,7 @@ class network:
13
13
  msg = (
14
14
  'Version 0.4.x introduced PEP 8 conform class names for all '
15
15
  'classes used in TESPy. Please refer to '
16
- 'https://tespy.readthedocs.io/en/master/whats_new.html '
16
+ 'https://tespy.readthedocs.io/en/main/whats_new.html '
17
17
  'learn about the changes necessary to adapt your script to the '
18
18
  'latest API.'
19
19
  )