buffalo_panel.views.LineDoubletConstant2DView

class buffalo_panel.views.LineDoubletConstant2DView(geometry, local_coefficients, top=True)[source]

Bases: LineFamily2DView[LinePanelGeometry2D]

Field view for one constant-strength doublet line panel.

The view evaluates the velocity, potential, and stream-function contribution from one geometry panel with one doublet strength. It is intended for diagnostics, visualization, and kernel-level demonstrations rather than solver assembly.

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

family

Element family defining panel ownership and local coefficient layout.

geometry

Geometry containing the family source panels.

kernel

Kernel used to evaluate unit constant-doublet influence values.

local_coefficients

Solved or user-specified family-local coefficients.

top

Branch-side convention for points on panel cuts.

field_at(x, y)

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’)]

geometry: GeometryT

Geometry containing the family source panels.

local_coefficients: FloatInput

Solved or user-specified family-local coefficients.

potential_at(x, y)

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)

Evaluate induced stream function at field points.

Parameters:
Returns:

Stream-function contribution with the broadcast input shape.

Return type:

FloatArray

top: bool

Branch-side convention for points on panel cuts.

velocity_at(x, y)

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’)]

kernel: LineDoubletConstant2D

Kernel used to evaluate unit constant-doublet influence values.

family: ElementFamily

Element family defining panel ownership and local coefficient layout.