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
Unique-orchestrator identifier for this geometry.
Display name for this geometry.
Geometry x-coordinates.
Geometry y-coordinates.
Connectivity mapping each panel to its start and end points.
Starting x-coordinates for every panel.
Starting y-coordinates for every panel.
Ending x-coordinates for every panel.
Ending y-coordinates for every panel.
Collocation x-coordinates for every panel.
Collocation y-coordinates for every panel.
Length of every panel.
Unit tangent vector x-component for every panel.
Unit tangent vector y-component for every panel.
Unit normal vector x-component for every panel.
Unit tangent vector y-component for every panel.
Body panel index for every panel.
Index of the trailing edge panel, or None if there isn't one.
Return the x,y coordinates for the collocation points.
Return whether the geometry is closed.
Return the number of body panels.
Return the number of panels.
Return the x,y coordinates for the panel nodes.
Return the unit normal vectors for each panel.
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.
- 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.
- 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.