Skip to content

Commit

Permalink
fix valve image; fix recent important dew point error
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelcortes committed Sep 18, 2024
1 parent f1c4886 commit 6bb2a07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions thermosteam/_graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ def tailor_scalar_node(node, unit): # pragma: no coverage
node = box_node.copy()
node['peripheries'] = '0'
def tailor_valve_node(node, unit): # pragma: no coverage
node['label'] = ''
if tmo.preferences.graphviz_format == 'svg':
node['fillcolor'] = tmo.preferences.unit_color
node['fontcolor'] = tmo.preferences.unit_label_color
Expand Down
3 changes: 2 additions & 1 deletion thermosteam/equilibrium/dew_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def solve_x(x_guess, x_gamma, T, P, f_gamma, gamma_args):
gamma_iter, gamma, 1e-12, args=args, checkiter=False,
checkconvergence=False, convergenceiter=5, maxiter=DewPoint.maxiter
)
return fn.normalize(x_gamma / gamma)
return x_gamma / gamma

# %% Dew point values container

Expand Down Expand Up @@ -339,6 +339,7 @@ def solve_Px(self, z, T, gas_conversion=None):
P_guess, x = self._Px_ideal(z_over_Psats)
args = (T, z_norm, z_over_Psats, Psats, x)
f = self._P_error
breakpoint()
try:
P = flx.aitken_secant(f, P_guess, P_guess-10, self.P_tol, 5e-12, args,
checkiter=False, maxiter=self.maxiter)
Expand Down

0 comments on commit 6bb2a07

Please sign in to comment.