buffalo_panel.views.LineFamily2DView
- class buffalo_panel.views.LineFamily2DView(geometry, family, local_coefficients, kernel, top=True)[source]
Bases:
GenericDiagnostic 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 containing the family source panels.
Element family defining panel ownership and local coefficient layout.
Solved or user-specified family-local coefficients.
Kernel used to evaluate family-local unit influence blocks.
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:
x (
FloatInput) – Field-point x-coordinates.y (
FloatInput) – Field-point y-coordinates.
- 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:
x (
FloatInput) – Field-point x-coordinates.y (
FloatInput) – Field-point y-coordinates.
- Returns:
Velocity potential contribution with the broadcast input shape.
- Return type:
- stream_function_at(x, y)[source]
Evaluate induced stream function at field points.
- Parameters:
x (
FloatInput) – Field-point x-coordinates.y (
FloatInput) – Field-point y-coordinates.
- Returns:
Stream-function contribution with the broadcast input shape.
- Return type:
- field_at(x, y)[source]
Evaluate velocity, potential, and stream function together.
- Parameters:
x (
FloatInput) – Field-point x-coordinates.y (
FloatInput) – Field-point y-coordinates.
- Returns:
FloatArray– Global x-velocity contribution.FloatArray– Global y-velocity contribution.FloatArray– Velocity potential contribution.FloatArray– Stream-function contribution.
- 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’)]