STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
feedtwin.vessels.geometry.TabulatedGeometry Class Reference

Public Member Functions

None __post_init__ (self)
float total_volume (self)
float height (self)
float volume_below (self, float level)
float cross_section (self, float level)
float wetted_area (self, float level)

Static Public Attributes

Sequence levels [float]
Sequence volumes [float]
Sequence areas = None
Sequence wall_areas = None

Protected Member Functions

float _interp (self, Sequence[float] table, float level)

Detailed Description

A tank described by a measured or CAD-derived *V(h)* table.

The escape hatch, and for a real flight tank usually the right answer: a
weld land, a sump, a baffle ring and an anti-vortex plate are all volume
that no analytic shape has, and CAD already knows about every one of them.

Args:
    levels: Heights above the lowest point [m], strictly increasing, the
        first at or below zero and the last the full height.
    volumes: Cumulative volume below each level [m^3], non-decreasing.
    areas: Optional horizontal cross-section at each level [m^2]. Derived
        by differencing the volume table when omitted, which is exactly
        ``dV/dh`` and needs no extra data.
    wall_areas: Optional cumulative wetted wall area [m^2].

Definition at line 278 of file geometry.py.

Member Function Documentation

◆ __post_init__()

None feedtwin.vessels.geometry.TabulatedGeometry.__post_init__ ( self)

Definition at line 300 of file geometry.py.

References levels, and volumes.

◆ _interp()

float feedtwin.vessels.geometry.TabulatedGeometry._interp ( self,
Sequence[float] table,
float level )
protected

Definition at line 328 of file geometry.py.

References levels, max, and min.

Referenced by cross_section(), volume_below(), and wetted_area().

◆ cross_section()

float feedtwin.vessels.geometry.TabulatedGeometry.cross_section ( self,
float level )

◆ height()

float feedtwin.vessels.geometry.TabulatedGeometry.height ( self)

Definition at line 325 of file geometry.py.

References levels.

Referenced by combined_gui.PressureBarWidget.paintEvent().

◆ total_volume()

float feedtwin.vessels.geometry.TabulatedGeometry.total_volume ( self)

Definition at line 321 of file geometry.py.

References volumes.

◆ volume_below()

float feedtwin.vessels.geometry.TabulatedGeometry.volume_below ( self,
float level )

◆ wetted_area()

float feedtwin.vessels.geometry.TabulatedGeometry.wetted_area ( self,
float level )

Member Data Documentation

◆ areas

feedtwin.vessels.geometry.TabulatedGeometry.areas = None
static

Definition at line 297 of file geometry.py.

Referenced by cross_section().

◆ levels

feedtwin.vessels.geometry.TabulatedGeometry.levels [float]
static

Definition at line 295 of file geometry.py.

Referenced by __post_init__(), _interp(), cross_section(), and height().

◆ volumes

feedtwin.vessels.geometry.TabulatedGeometry.volumes [float]
static

Definition at line 296 of file geometry.py.

Referenced by __post_init__(), cross_section(), total_volume(), and volume_below().

◆ wall_areas

feedtwin.vessels.geometry.TabulatedGeometry.wall_areas = None
static

Definition at line 298 of file geometry.py.

Referenced by wetted_area().


The documentation for this class was generated from the following file: