windtunnel.pre_processing module
Pre-processing utilities.
- windtunnel.pre_processing.compute_projected_area(mesh: PolyData, face_normal)[source]
Compute the projected area of an object.
- Parameters:
mesh – pyvista.PolyData mesh representing the object.
- windtunnel.pre_processing.move_mesh_to_origin(mesh: PolyData)[source]
Translate the mesh to the origin of the wind tunnel.
- Parameters:
mesh (pv.PolyData) – The input mesh to be translated.
- Returns:
The translated mesh. tuple[float, float, float]: The displacement vector applied to the mesh.
- Return type:
pv.PolyData
- windtunnel.pre_processing.normalize_mesh(mesh: PolyData, max_dimensions: tuple[float, float, float] = (10.0, 2.0, 1.0)) PolyData[source]
Normalize the dimensions of the input mesh.
The mesh is scaled to fit within the specified bounds of the wind tunnel. length, width, height = max_dimensions
- Parameters:
mesh (pv.PolyData) – The input mesh to be normalized.
max_dimensions – The maximum dimensions of the object.
- Returns:
The normalized mesh. float: The scaling factor applied to the mesh.
- Return type:
pv.PolyData