Skip to content

Commit

Permalink
Further extend usage section of README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jfreissmann committed Jul 12, 2024
1 parent 69527c2 commit 31877b0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31877b0

Please sign in to comment.