buffalo_panel.views.LineFamily2DView

class buffalo_panel.views.LineFamily2DView(geometry, family, local_coefficients, kernel, top=True)[source]

Bases: Generic

Diagnostic field view for one line-element family.

The view evaluates velocity, potential, and stream-function contributions by combining family-local unit-influence blocks with an explicit vector of family-local coefficients. This makes the view layer compatible with constant, shared, and future higher-order families without assuming one scalar strength per panel.

Methods

field_at(x, y)

Evaluate velocity, potential, and stream function together.

potential_at(x, y)

Evaluate induced velocity potential at field points.

stream_function_at(x, y)

Evaluate induced stream function at field points.

velocity_at(x, y)

Evaluate induced velocity at field points.

Attributes

geometry

Geometry containing the family source panels.

family

Element family defining panel ownership and local coefficient layout.

local_coefficients

Solved or user-specified family-local coefficients.

kernel

Kernel used to evaluate family-local unit influence blocks.

top

Branch-side convention for points on panel cuts.

geometry: GeometryT

Geometry containing the family source panels.

family: ElementFamily

Element family defining panel ownership and local coefficient layout.

local_coefficients: FloatInput

Solved or user-specified family-local coefficients.

kernel: ElementKernel[GeometryT]

Kernel used to evaluate family-local unit influence blocks.

top: bool

Branch-side convention for points on panel cuts.

velocity_at(x, y)[source]

Evaluate induced velocity at field points.

Parameters:
Returns:

  • FloatArray – Global x-velocity contribution with the broadcast input shape.

  • FloatArray – Global y-velocity contribution with the broadcast input shape.

Return type:

tuple[TypeAliasForwardRef(’buffalo_panel.type_aliases.FloatArray’), TypeAliasForwardRef(’buffalo_panel.type_aliases.FloatArray’)]

potential_at(x, y)[source]

Evaluate induced velocity potential at field points.

Parameters:
Returns:

Velocity potential contribution with the broadcast input shape.

Return type:

FloatArray

stream_function_at(x, y)[source]

Evaluate induced stream function at field points.

Parameters:
Returns:

Stream-function contribution with the broadcast input shape.

Return type:

FloatArray

field_at(x, y)[source]

Evaluate velocity, potential, and stream function together.

Parameters:
Returns:

Return type:

tuple[TypeAliasForwardRef(’buffalo_panel.type_aliases.FloatArray’), TypeAliasForwardRef(’buffalo_panel.type_aliases.FloatArray’), TypeAliasForwardRef(’buffalo_panel.type_aliases.FloatArray’), TypeAliasForwardRef(’buffalo_panel.type_aliases.FloatArray’)]