buffalo_panel.geometry.LinePanelGeometry2D

class buffalo_panel.geometry.LinePanelGeometry2D(geometry_id, geometry_name, x, y, connectivity, x_start, y_start, x_end, y_end, x_col, y_col, length, s_x, s_y, n_x, n_y, body_panel_indices, trailing_edge_panel_index)[source]

Shared line-panel geometry information for two-dimensional discretizations.

This base class stores the panel-node, panel-segment, collocation-point, and local-frame data shared by both thick-body and thin-body discretizations. Subclasses provide the semantic interpretation of those points.

Attributes

geometry_id

Unique-orchestrator identifier for this geometry.

geometry_name

Display name for this geometry.

x

Geometry x-coordinates.

y

Geometry y-coordinates.

connectivity

Connectivity mapping each panel to its start and end points.

x_start

Starting x-coordinates for every panel.

y_start

Starting y-coordinates for every panel.

x_end

Ending x-coordinates for every panel.

y_end

Ending y-coordinates for every panel.

x_col

Collocation x-coordinates for every panel.

y_col

Collocation y-coordinates for every panel.

length

Length of every panel.

s_x

Unit tangent vector x-component for every panel.

s_y

Unit tangent vector y-component for every panel.

n_x

Unit normal vector x-component for every panel.

n_y

Unit tangent vector y-component for every panel.

body_panel_indices

Body panel index for every panel.

trailing_edge_panel_index

Index of the trailing edge panel, or None if there isn't one.

collocation_points

Return the x,y coordinates for the collocation points.

is_closed

Return whether the geometry is closed.

n_body_panels

Return the number of body panels.

n_panels

Return the number of panels.

nodes

Return the x,y coordinates for the panel nodes.

normals

Return the unit normal vectors for each panel.

tangents

Return the unit tangent vectors for each panel.

geometry_id: int

Unique-orchestrator identifier for this geometry.

geometry_name: str

Display name for this geometry.

x: FloatArray

Geometry x-coordinates.

y: FloatArray

Geometry y-coordinates.

connectivity: IntArray

Connectivity mapping each panel to its start and end points.

x_start: FloatArray

Starting x-coordinates for every panel.

y_start: FloatArray

Starting y-coordinates for every panel.

x_end: FloatArray

Ending x-coordinates for every panel.

y_end: FloatArray

Ending y-coordinates for every panel.

x_col: FloatArray

Collocation x-coordinates for every panel.

y_col: FloatArray

Collocation y-coordinates for every panel.

length: FloatArray

Length of every panel.

s_x: FloatArray

Unit tangent vector x-component for every panel.

s_y: FloatArray

Unit tangent vector y-component for every panel.

n_x: FloatArray

Unit normal vector x-component for every panel.

n_y: FloatArray

Unit tangent vector y-component for every panel.

body_panel_indices: IntArray

Body panel index for every panel.

trailing_edge_panel_index: int | None

Index of the trailing edge panel, or None if there isn’t one.

property n_panels: int

Return the number of panels.

property n_body_panels: int

Return the number of body panels.

property nodes: FloatArray

Return the x,y coordinates for the panel nodes.

property collocation_points: FloatArray

Return the x,y coordinates for the collocation points.

property tangents: FloatArray

Return the unit tangent vectors for each panel.

property normals: FloatArray

Return the unit normal vectors for each panel.

property is_closed: bool

Return whether the geometry is closed.