STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
feedtwin.engine.card.Table2D Class Reference

Public Member Functions

None __post_init__ (self)
float x_max (self)
float y_max (self)
bool in_box (self, float x, float y)
float __call__ (self, float x, float y)
dict[str, Any] to_dict (self)
"Table2D" from_dict (cls, Mapping[str, Any] raw)

Public Attributes

 x0
 dx
 nx
 y0
 dy
 ny

Static Public Attributes

tuple values [tuple[float, ...], ...]

Protected Member Functions

tuple[float,...] _row (self, int i)
tuple[float, float, float, float] _column (self, int i, int j)

Detailed Description

Values on a uniform grid, evaluated with clamped Catmull-Rom.

``values[i][j]`` is the value at ``(x0 + i dx, y0 + j dy)``.

Definition at line 94 of file card.py.

Member Function Documentation

◆ __call__()

float feedtwin.engine.card.Table2D.__call__ ( self,
float x,
float y )

Definition at line 127 of file card.py.

References feedtwin.engine.card._catmull_rom(), _column(), dx, dy, max, min, nx, ny, x0, x_max(), y0, and y_max().

◆ __post_init__()

None feedtwin.engine.card.Table2D.__post_init__ ( self)

Definition at line 108 of file card.py.

References dx, dy, nx, ny, and values.

◆ _column()

tuple[float, float, float, float] feedtwin.engine.card.Table2D._column ( self,
int i,
int j )
protected

Definition at line 146 of file card.py.

References engine.pipeline.combustion_physics.CstarOfMR._row, _row(), and ny.

Referenced by __call__().

◆ _row()

tuple[float, ...] feedtwin.engine.card.Table2D._row ( self,
int i )
protected
Row ``i``, with a linear ghost beyond either end so the interpolant
stays exact on linear data up to the edge of the table.

Definition at line 136 of file card.py.

References nx, and values.

Referenced by _column().

◆ from_dict()

"Table2D" feedtwin.engine.card.Table2D.from_dict ( cls,
Mapping[str, Any] raw )

◆ in_box()

bool feedtwin.engine.card.Table2D.in_box ( self,
float x,
float y )

Definition at line 124 of file card.py.

References x0, x_max(), y0, and y_max().

◆ to_dict()

◆ x_max()

float feedtwin.engine.card.Table2D.x_max ( self)

Definition at line 117 of file card.py.

References dx, nx, and x0.

Referenced by __call__(), and in_box().

◆ y_max()

float feedtwin.engine.card.Table2D.y_max ( self)

Definition at line 121 of file card.py.

References dy, ny, and y0.

Referenced by __call__(), and in_box().

Member Data Documentation

◆ dx

feedtwin.engine.card.Table2D.dx

Definition at line 155 of file card.py.

Referenced by __call__(), __post_init__(), and x_max().

◆ dy

feedtwin.engine.card.Table2D.dy

Definition at line 158 of file card.py.

Referenced by __call__(), __post_init__(), and y_max().

◆ nx

feedtwin.engine.card.Table2D.nx

Definition at line 156 of file card.py.

Referenced by __call__(), __post_init__(), _row(), and x_max().

◆ ny

feedtwin.engine.card.Table2D.ny

Definition at line 159 of file card.py.

Referenced by __call__(), __post_init__(), _column(), and y_max().

◆ values

feedtwin.engine.card.Table2D.values [tuple[float, ...], ...]
static

Definition at line 106 of file card.py.

Referenced by __post_init__(), and _row().

◆ x0

◆ y0

feedtwin.engine.card.Table2D.y0

Definition at line 157 of file card.py.

Referenced by __call__(), in_box(), and y_max().


The documentation for this class was generated from the following file:
  • lib/feedtwin/feedtwin/engine/card.py