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
Element family defining panel ownership and local coefficient layout.
Geometry containing the family source panels.
Kernel used to evaluate unit constant-doublet influence values.
Solved or user-specified family-local coefficients.
Branch-side convention for points on panel cuts.
- field_at(x, y)
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’)]
- 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:
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)
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:
- top: bool
Branch-side convention for points on panel cuts.
- velocity_at(x, y)
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’)]
- kernel: LineDoubletConstant2D
Kernel used to evaluate unit constant-doublet influence values.
- family: ElementFamily
Element family defining panel ownership and local coefficient layout.