Skip to content

Commit

Permalink
Bump up CoolProp dependency and remove incompressible fluid handling …
Browse files Browse the repository at this point in the history
…quickfix
  • Loading branch information
fwitte committed Dec 3, 2023
1 parent 5ebb583 commit 758c854
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ classifiers = [
]
requires-python = ">=3.9"
dependencies = [
"CoolProp>=6.4,<7",
"CoolProp>=6.6,<7",
"jinja2",
"matplotlib>=3.2.1,<4",
"numpy>=1.13.3,<2",
Expand Down
9 changes: 0 additions & 9 deletions src/tespy/tools/fluid_properties/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,15 +191,6 @@ def h_ps(self, p, s):
return self.AS.hmass()

def h_pT(self, p, T):
if self.back_end == "INCOMP":
if T == (self._T_max + self._T_min) / 2:
T += ERR
self.AS.update(CP.PT_INPUTS, p, T)
h = self.AS.hmass() * 0.5
T -= 2 * ERR
self.AS.update(CP.PT_INPUTS, p, T)
h += self.AS.hmass() * 0.5
return h
self.AS.update(CP.PT_INPUTS, p, T)
return self.AS.hmass()

Expand Down

0 comments on commit 758c854

Please sign in to comment.