Skip to content

Commit

Permalink
Fix HeatPumpFlash to work with TESPy v0.7.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfreissmann committed Jun 19, 2024
1 parent 0689ecf commit 939ac02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/heatpumps/models/HeatPumpFlash.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
import pandas as pd
from tespy.components import (Compressor, Condenser, CycleCloser, Drum,
HeatExchanger, HeatExchangerSimple, Pump, Sink,
HeatExchanger, Pump, SimpleHeatExchanger, Sink,
Source, Valve)
from tespy.connections import Bus, Connection
from tespy.tools.characteristics import CharLine
Expand All @@ -30,7 +30,7 @@ def generate_components(self):
# Heat sink
self.comps['cons_cc'] = CycleCloser('Consumer Cycle Closer')
self.comps['cons_pump'] = Pump('Consumer Recirculation Pump')
self.comps['cons'] = HeatExchangerSimple('Consumer')
self.comps['cons'] = SimpleHeatExchanger('Consumer')

# Main cycle
self.comps['cond'] = Condenser('Condenser')
Expand Down Expand Up @@ -162,7 +162,7 @@ def init_simulation(self, **kwargs):
# Main cycle
self.conns['A5'].set_attr(x=self.params['A5']['x'], p=p_evap)
self.conns['A7'].set_attr(p=p_mid)
self.conns['A0'].set_attr(p=p_cond, fluid=self.fluid_vec_wf)
self.conns['A0'].set_attr(p=p_cond, fluid={self.wf: 1})
# Heat source
self.conns['B1'].set_attr(
T=self.params['B1']['T'], p=self.params['B1']['p'],
Expand Down

0 comments on commit 939ac02

Please sign in to comment.