From 31877b0d39c54ed917393b6272cd9c53134e7371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Frei=C3=9Fmann?= Date: Fri, 12 Jul 2024 15:11:39 +0200 Subject: [PATCH] Further extend usage section of README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index b19d1bc..bb2ed7e 100644 --- a/README.md +++ b/README.md @@ -54,12 +54,30 @@ To use the heat pump model classes in your own scripts, you can import them as f from heatpumps.models import HeatPumpSimple, HeatPumpEconIHX from heatpumps.parameters import get_params +# Simple cycle model +params = get_params('HeatPumpSimple') + +params['setup']['refrig'] = 'R1234yf' +params['fluids']['wf'] = 'R1234yf' + +params['C3']['T'] = 85 # feed flow temperature of heat sink +params['C1']['T'] = 50 # return flow temperature of heat sink + +hp = HeatPumpSimple(params=params) + +hp.run_model() +hp.generate_state_diagram(diagram_type='logph') + +# Serial compression with closed economizer and internal heat exchanger econ_type = 'closed' params = get_params('HeatPumpEconIHX', econ_type=econ_type) +params['ihx']['dT_sh'] = 7.5 # superheating by internal heat exchanger + hp = HeatPumpEconIHX(params=params, econ_type=econ_type) hp.run_model() +hp.perform_exergy_analysis(print_results=True) ``` ## License