capytaine.meshes.surface_integrals module¶
- class capytaine.meshes.surface_integrals.SurfaceIntegralsMixin[source]¶
Bases:
ABC- property center_of_buoyancy: ndarray¶
Returns center of buoyancy of the mesh.
- property disp_volume: float¶
- surface_integral(data, **kwargs)[source]¶
Returns integral of given data along wet surface area.
- Parameters:
data (np.ndarray) – Array of values at the quadrature points expected shape: (…, nb_faces, nb_quad_points)
- property volume: float¶
Returns volume of the mesh.
- property volumes: Tuple[float, float, float]¶
Returns volumes using x, y, z components of the mesh. Should be the same for a regular mesh.
- property waterplane_area: float¶
Returns water plane area of the mesh.
- property waterplane_center: None | ndarray¶
Returns water plane center of the mesh. Computed as (∫x/∫1, ∫y/∫1) on the water plane. Returns None if the mesh is full submerged.
- waterplane_integral(data, **kwargs)[source]¶
Returns integral of given data along water plane area.
- Parameters:
data (np.ndarray) – Array of values at the quadrature points of the hull mesh. Expected shape: (…, nb_faces, nb_quad_points)
- property wet_surface_area: float¶
Returns wet surface area.