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.

disp_mass(*, rho=1000) float[source]
property disp_volume: float
surface_integral(data, **kwargs)[source]

Returns integral of given data along wet surface area.

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. Returns None if the mesh is full submerged.

waterplane_integral(data, **kwargs)[source]

Returns integral of given data along water plane area.

property wet_surface_area: float

Returns wet surface area.