windtunnel.display module

Helper class to visualize the wind tunnel.

class windtunnel.display.WindTunnelVisualizer(x_min: float, x_max: float, y_min: float, y_max: float, z_min: float, z_max: float)[source]

Bases: object

A class for visualizing wind tunnel data.

Parameters: - x_min (float): The minimum x-coordinate of the visualization space. - x_max (float): The maximum x-coordinate of the visualization space. - y_min (float): The minimum y-coordinate of the visualization space. - y_max (float): The maximum y-coordinate of the visualization space. - z_min (float): The minimum z-coordinate of the visualization space. - z_max (float): The maximum z-coordinate of the visualization space.

add_mesh(mesh: PolyData, color: str = 'blue', opacity: float = 1.0, show_edges: bool = False, scalars: str = None)[source]

Add a mesh to the visualization.

Parameters: - mesh (pv.PolyData): The mesh to be added. - color (str): The color of the mesh. - opacity (float): The opacity of the mesh. - show_edges (bool): Whether to show the edges of the mesh. - scalars (str): The scalar data to be used for coloring the mesh.

set_camera_position(camera_position)[source]

Set the camera position of the visualization.

Parameters: - camera_position: The new camera position.

show()[source]

Show the visualization.