File: control_valve.pyi

package info (click to toggle)
python-fluids 1.0.27-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,384 kB
  • sloc: python: 59,459; f90: 1,033; javascript: 49; makefile: 47
file content (142 lines) | stat: -rw-r--r-- 3,157 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# DO NOT EDIT - AUTOMATICALLY GENERATED BY tests/make_test_stubs.py!
from __future__ import annotations
from typing import List
from typing import (
    Dict,
    Optional,
    Union,
)


def FF_critical_pressure_ratio_l(Psat: float, Pc: float) -> float: ...


def Reynolds_factor(FL: float, C: float, d: float, Rev: float, full_trim: bool = ...) -> float: ...


def Reynolds_valve(nu: float, Q: float, D1: float, FL: float, Fd: float, C: float) -> float: ...


def cavitation_index(P1: float, P2: float, Psat: float) -> float: ...


def control_valve_choke_P_g(xT: float, gamma: float, P1: Optional[float] = ..., P2: Optional[float] = ...) -> float: ...


def control_valve_choke_P_l(
    Psat: float,
    Pc: float,
    FL: float,
    P1: Optional[float] = ...,
    P2: Optional[float] = ...,
    disp: bool = ...
) -> float: ...


def control_valve_noise_g_2011(
    m: float,
    P1: float,
    P2: float,
    T1: int,
    rho: float,
    gamma: float,
    MW: float,
    Kv: float,
    d: float,
    Di: float,
    t_pipe: float,
    Fd: float,
    FL: None,
    FLP: Optional[float] = ...,
    FP: Optional[float] = ...,
    rho_pipe: float = ...,
    c_pipe: float = ...,
    P_air: float = ...,
    rho_air: float = ...,
    c_air: float = ...,
    An: float = ...,
    Stp: float = ...,
    T2: None = ...,
    beta: float = ...
) -> float: ...


def control_valve_noise_l_2015(
    m: int,
    P1: float,
    P2: float,
    Psat: float,
    rho: float,
    c: float,
    Kv: float,
    d: float,
    Di: float,
    FL: float,
    Fd: float,
    t_pipe: float,
    rho_pipe: float = ...,
    c_pipe: float = ...,
    rho_air: float = ...,
    c_air: float = ...,
    xFz: Optional[float] = ...,
    An: float = ...
) -> float: ...


def is_choked_turbulent_g(x: float, Fgamma: float, xT: Optional[float] = ..., xTP: Optional[float] = ...) -> bool: ...


def is_choked_turbulent_l(
    dP: float,
    P1: float,
    Psat: float,
    FF: float,
    FL: Optional[float] = ...,
    FLP: Optional[float] = ...,
    FP: Optional[float] = ...
) -> bool: ...


def loss_coefficient_piping(d: float, D1: Optional[float] = ..., D2: Optional[float] = ...) -> float: ...


def size_control_valve_g(
    T: float,
    MW: float,
    mu: float,
    gamma: float,
    Z: float,
    P1: float,
    P2: float,
    Q: float,
    D1: Optional[float] = ...,
    D2: Optional[float] = ...,
    d: Optional[float] = ...,
    FL: float = ...,
    Fd: float = ...,
    xT: float = ...,
    allow_choked: bool = ...,
    allow_laminar: bool = ...,
    full_output: bool = ...
) -> Union[float, Dict[str, Optional[Union[bool, float]]], Dict[str, Optional[Union[float, bool, str]]]]: ...


def size_control_valve_l(
    rho: float,
    Psat: float,
    Pc: float,
    mu: float,
    P1: float,
    P2: float,
    Q: float,
    D1: Optional[float] = ...,
    D2: Optional[float] = ...,
    d: Optional[float] = ...,
    FL: float = ...,
    Fd: float = ...,
    allow_choked: bool = ...,
    allow_laminar: bool = ...,
    full_output: bool = ...
) -> Union[float, Dict[str, Optional[Union[bool, float]]], Dict[str, Optional[Union[float, bool, str]]]]: ...

__all__: List[str]