capytaine.bem.airy_waves module¶
Computing the potential and velocity of Airy wave.
- capytaine.bem.airy_waves.airy_waves_potential(points, pb, convention='Nemoh')[source]¶
Compute the potential for Airy waves at a given point (or array of points).
- Parameters:
points (array of shape (3) or (N x 3)) – coordinates of the points in which to evaluate the potential.
pb (DiffractionProblem) – problem with the environmental conditions (g, rho, …) of interest
convention (str, optional) – convention for the incoming wave field. Accepted values: “Nemoh”, “WAMIT”.
- Returns:
The potential
- Return type:
array of shape (1) or (N x 1)
- capytaine.bem.airy_waves.airy_waves_velocity(points, pb, convention='Nemoh')[source]¶
Compute the fluid velocity for Airy waves at a given point (or array of points).
- Parameters:
points (array of shape (3) or (N x 3)) – coordinates of the points in which to evaluate the potential.
pb (DiffractionProblem) – problem with the environmental conditions (g, rho, …) of interest
convention (str, optional) – convention for the incoming wave field. Accepted values: “Nemoh”, “WAMIT”.
- Returns:
the velocity vectors
- Return type:
array of shape (3) or (N x 3)