buffalo_panel.post.PanelSolution2D
- class buffalo_panel.post.PanelSolution2D(geometry, freestream, strengths, surface, integrated, _velocity_evaluator=None, _potential_evaluator=None, _stream_function_evaluator=None)[source]
Post-processed solution for a two-dimensional panel calculation.
This object groups the information most users need after a solve: the geometry and freestream context, formulation-specific strength fields, solver-agnostic surface quantities, and integrated aerodynamic coefficients. Field quantities such as velocity, potential, and stream function are expected to be computed on demand by future solution methods rather than stored here by default.
Methods
potential_at(points)Evaluate velocity potential at field points.
pressure_coefficient_at(points)Evaluate pressure at field points.
stream_function_at(points)Evaluate stream function at field points.
velocity_at(points)Evaluate velocity at field points.
Attributes
Geometry used to produce the solution.
Freestream state used to produce the solution.
Solved singularity-strength fields associated with the solution.
Surface flow quantities recovered from the solved strengths.
Integrated aerodynamic coefficients recovered from the solution.
- geometry: LinePanelGeometry2D
Geometry used to produce the solution.
- freestream: Freestream2D
Freestream state used to produce the solution.
- strengths: tuple[StrengthField2D, ...]
Solved singularity-strength fields associated with the solution.
- surface: SurfaceQuantities2D
Surface flow quantities recovered from the solved strengths.
- integrated: IntegratedQuantities2D
Integrated aerodynamic coefficients recovered from the solution.
- velocity_at(points)[source]
Evaluate velocity at field points.
- Parameters:
points (
FieldPoints2D) – Field evaluation targets.- Returns:
FloatArray– Global x-velocity component with shapepoints.shape.FloatArray– Global y-velocity component with shapepoints.shape.
- Raises:
NotImplementedError – If this solution does not provide field-velocity evaluation.
- Return type:
tuple[TypeAliasForwardRef(’buffalo_panel.type_aliases.FloatArray’), TypeAliasForwardRef(’buffalo_panel.type_aliases.FloatArray’)]
- potential_at(points)[source]
Evaluate velocity potential at field points.
- Parameters:
points (
FieldPoints2D) – Field evaluation targets.- Returns:
Velocity potential with shape
points.shape.- Return type:
- Raises:
NotImplementedError – If this solution does not provide velocity-potential evaluation.
- stream_function_at(points)[source]
Evaluate stream function at field points.
- Parameters:
points (
FieldPoints2D) – Field evaluation targets.- Returns:
Stream function with shape
points.shape.- Return type:
- Raises:
NotImplementedError – If this solution does not provide stream-function evaluation.
- pressure_coefficient_at(points)[source]
Evaluate pressure at field points.
- Parameters:
points (
FieldPoints2D) – Field evaluation targets.- Returns:
Global pressure coefficient with shape
points.shape.- Return type:
- Raises:
NotImplementedError – If this solution does not provide field-velocity evaluation.