STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1"""Vessels: COPVs, tank ullages, manifold plenums.
2
3All the same object at different sizes -- a closed volume of gas whose pressure
4is what the rest of the system sees::
5
6 from feedtwin.props import Fluid
7 from feedtwin.vessels import GasVolume
8
9 copv = GasVolume(Fluid("nitrogen"), volume=0.009,
10 wall_mass=6.0, wall_capacity=900.0, wall_conductance=12.0)
11 state = copv.initial_state(pressure=310e5, temperature=293.15)
12 copv.pressure(state) # Pa, real gas
13
14State is ``(mass, internal energy)`` rather than ``(mass, temperature)``, which
15keeps a real gas's energy balance exact. See :mod:`feedtwin.vessels.volume` for
16why that distinction is worth the trouble, and why a vessel wall is not an
17optional refinement.
18"""
19
20from __future__ import annotations
21
22from feedtwin.vessels.collapse import (
23 CollapseModel,
24 ConductionCollapse,
25 LiquidThermal,
26 NoCollapse,
27 build_collapse_model,
28 register_collapse_model,
29 registered_collapse_models,
30)
31from feedtwin.vessels.geometry import (
32 CylindricalTank,
33 Head,
34 TabulatedGeometry,
35 TankGeometry,
36 build_geometry,
37 level_of_volume,
38 register_geometry,
39 registered_geometries,
40)
41from feedtwin.vessels.tank import Tank, TankRates, TankState, UllageCondensed
42from feedtwin.vessels.volume import GRAVITY, GasVolume, Rates, VesselState
43
44__all__ = [
45 "GRAVITY",
46 "CollapseModel",
47 "ConductionCollapse",
48 "CylindricalTank",
49 "GasVolume",
50 "Head",
51 "LiquidThermal",
52 "NoCollapse",
53 "Rates",
54 "TabulatedGeometry",
55 "Tank",
56 "TankGeometry",
57 "TankRates",
58 "TankState",
59 "UllageCondensed",
60 "VesselState",
61 "build_collapse_model",
62 "build_geometry",
63 "level_of_volume",
64 "register_collapse_model",
65 "register_geometry",
66 "registered_collapse_models",
67 "registered_geometries",
68]