Skip to content

polykin.flow.prv¤

PRVResult dataclass ¤

Dataclass for pressure relief device results.

ATTRIBUTE DESCRIPTION
Pcf

Critical flow pressure [bara].

TYPE: float

critical_flow

Flag indicating if the flow is sonic (True) or subsonic (False).

TYPE: bool

A

Required effective discharge area [mm²].

TYPE: float

Source code in src/polykin/flow/prv.py
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@dataclass(frozen=True)
class PRVResult:
    """Dataclass for pressure relief device results.

    Attributes
    ----------
    Pcf : float
        Critical flow pressure [bara].
    critical_flow : bool
        Flag indicating if the flow is sonic (`True`) or subsonic (`False`).
    A : float
        Required effective discharge area [mm²].
    """
    Pcf: float
    critical_flow: bool
    A: float

    def __repr__(self):
        return f"PRVResult(Pcf={self.Pcf:.2e} bara, critical_flow={self.critical_flow}, A={self.A:.2e} mm²)"