Skip to content

Commit ac3fa67

Browse files
committed
Merge branch 'dev'
2 parents ce7efad + 1825f5e commit ac3fa67

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

docs/getting_started/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ installed.
3434

3535
1. Install virtualenv using the package management of your Linux distribution,
3636
pip install or install it from source
37-
(`see virtualenv documentation <https://virtualenv.pypa.io/en/stable/installation.html>`_)
37+
(`see virtualenv documentation <https://virtualenv.pypa.io/>`_)
3838
2. Open terminal to create and activate a virtual environment by typing:
3939

4040
.. code-block:: console

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exclude = [
2626

2727
[project]
2828
name = "tespy"
29-
version = "0.9.13.post1"
29+
version = "0.9.13.post2"
3030
description = "Thermal Engineering Systems in Python (TESPy)"
3131
readme = "README.rst"
3232
authors = [

src/tespy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44

55
__datapath__ = os.path.join(importlib.resources.files("tespy"), "data")
6-
__version__ = '0.9.13.post1 - Kelvin\'s Kingdom'
6+
__version__ = '0.9.13.post2 - Kelvin\'s Kingdom'
77

88
# tespy data and connections import
99
from . import connections # noqa: F401

src/tespy/components/turbomachinery/pump.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,11 @@ class Pump(Turbomachine):
291291
Be aware that if the pump runs outside of the characteristic map it can
292292
easily happen that derivatives become zero because the interpolation
293293
returns the same values independent of the variables. A good initial
294-
guess can (but does not necessarily) help. We can re-create the
295-
characteristic maps, this time provide the :code:`extrapolate` keyword.
296-
It will extrapolate beyond the component map and thus produce non-zero
297-
derivatives.
294+
guess can (but does not necessarily) help. Instead, we can also
295+
re-create the characteristic maps, and this time provide the
296+
:code:`extrapolate` keyword. It will extrapolate beyond the component
297+
map and thus produce non-zero derivatives. Typically, this is not only
298+
necessary for the head map.
298299
299300
>>> outg.set_attr(p=1.2)
300301
>>> nw.solve("design")
@@ -311,7 +312,6 @@ class Pump(Turbomachine):
311312
... x=frequencies,
312313
... y=flows,
313314
... z=efficiency,
314-
... extrapolate=True
315315
... )
316316
>>> pu.set_attr(
317317
... head_flow_map={'char_func': pump_H_map, 'is_set': True},
@@ -368,7 +368,9 @@ def get_parameters(self):
368368
parameters["dp"].max_val = 0
369369
parameters.update({
370370
'eta': dc_cp(
371-
min_val=0, max_val=1, is_result=True,
371+
# if eta_s == 1, eta can be slighter higher than 1, so
372+
# max_val is relaxed a little bit
373+
min_val=0, max_val=1.01, is_result=True,
372374
quantity="efficiency",
373375
description=(
374376
"efficiency defined as specific incompressible flow work "

0 commit comments

Comments
 (0)