hydrodynamic-analysis
Included with Lifetime
$97 forever
Hydrodynamic analysis using BEM, RAOs, added mass, damping, and wave loads for offshore structures
subject-matter-experthydrodynamicsbemraoadded-massdampingwave-loadswamitaqwa
What this skill does
# Hydrodynamic Analysis SME Skill
Comprehensive hydrodynamic analysis expertise for offshore floating structures including BEM theory, RAO calculations, added mass/damping, and integration with industry-standard software.
## When to Use This Skill
Use hydrodynamic analysis knowledge when:
- **RAO calculation** - Response Amplitude Operators for vessel motions
- **Added mass & damping** - Frequency-dependent hydrodynamic coefficients
- **Wave loading** - Diffraction, Froude-Krylov, radiation forces
- **BEM analysis** - Boundary Element Method for potential flow
- **Software integration** - WAMIT, AQWA, OrcaWave workflows
- **Frequency domain** - Linear wave theory analysis
- **Time domain** - Convolution for time-domain simulations
## Core Knowledge Areas
### 1. Boundary Element Method (BEM)
**Potential Flow Theory:**
```
Governing Equation: ∇²φ = 0 (Laplace equation)
Where:
- φ = velocity potential
- Pressure: p = -ρ ∂φ/∂t - ρgz (Bernoulli)
- Velocity: v = ∇φ
```
**BEM Principles:**
```python
def bem_panel_method_concept():
"""
Conceptual explanation of BEM panel method.
Key Steps:
1. Discretize wetted surface into panels
2. Apply Green's function (source/dipole distribution)
3. Satisfy boundary conditions on each panel
4. Solve linear system for unknown potentials
5. Calculate forces from pressure integration
"""
pass
# Radiation Problem:
# - Forced oscillation in calm water
# - Calculates added mass and damping
# - 6 DOFs → 6 radiation potentials
# Diffraction Problem:
# - Fixed body in waves
# - Calculates wave excitation forces
# - Different wave headings analyzed
```
**Panel Mesh Quality:**
```yaml
mesh_requirements:
panel_size:
general: "< λ/6" # Lambda = wavelength
critical_areas: "< λ/10" # Bow, stern, sharp edges
aspect_ratio:
maximum: 3.0
preferred: 1.5
panel_count:
minimum: 2000 # Small vessels
typical: 5000-10000 # FPSOs
large: 20000+ # Complex geometries
symmetry:
use_if_possible: true # Reduces computational cost by 50%
check: "Ensure port-starboard symmetry"
```
### 2. Response Amplitude Operators (RAOs)
**RAO Definition:**
```
RAO(ω) = Response Amplitude / Wave Amplitude
Units:
- Translation (surge, sway, heave): m/m
- Rotation (roll, pitch, yaw): rad/m or deg/m
```
**RAO Calculation:**
```python
import numpy as np
def calculate_rao_from_hydrodynamic_coefficients(
omega: float,
mass_matrix: np.ndarray,
added_mass: np.ndarray,
damping: np.ndarray,
stiffness: np.ndarray,
wave_excitation: np.ndarray
) -> np.ndarray:
"""
Calculate RAO at frequency omega.
Equation of motion (frequency domain):
[-ω²(M + A(ω)) + iω·B(ω) + K]·RAO = F_wave
Args:
omega: Wave frequency (rad/s)
mass_matrix: 6x6 mass matrix
added_mass: 6x6 added mass matrix at omega
damping: 6x6 damping matrix at omega
stiffness: 6x6 hydrostatic stiffness
wave_excitation: 6x1 complex wave excitation force
Returns:
6x1 complex RAO (amplitude and phase)
"""
# Dynamic stiffness matrix (complex)
K_dynamic = (
-omega**2 * (mass_matrix + added_mass) +
1j * omega * damping +
stiffness
)
# Solve for RAO
rao_complex = np.linalg.solve(K_dynamic, wave_excitation)
return rao_complex
# Example: Calculate heave RAO
omega = 2 * np.pi / 10 # T = 10s
M = np.diag([150000, 150000, 150000, 1e7, 1e7, 5e6]) # Mass matrix
A = np.diag([15000, 15000, 50000, 1e6, 1e6, 5e5]) # Added mass
B = np.diag([50000, 50000, 100000, 5e5, 5e5, 2e5]) # Damping
K = np.diag([0, 0, 3000, 0, 0, 0]) # Hydrostatic stiffness
# Wave excitation (heave dominant)
F_wave = np.array([100000, 0, 500000, 0, 1e6, 0]) + 0j
rao = calculate_rao_from_hydrodynamic_coefficients(omega, M, A, B, K, F_wave)
# Heave RAO amplitude
heave_rao_amplitude = np.abs(rao[2])
heave_rao_phase = np.angle(rao[2], deg=True)
print(f"Heave RAO: {heave_rao_amplitude:.3f} m/m at {heave_rao_phase:.1f}°")
```
**RAO Peak Period:**
```python
def find_rao_peak_period(
frequencies: np.ndarray,
rao_amplitude: np.ndarray
) -> dict:
"""
Find peak RAO period and resonance characteristics.
Args:
frequencies: Frequency array (rad/s)
rao_amplitude: RAO amplitude array
Returns:
Peak information
"""
# Find peak
peak_idx = np.argmax(rao_amplitude)
peak_omega = frequencies[peak_idx]
peak_period = 2 * np.pi / peak_omega
peak_rao = rao_amplitude[peak_idx]
return {
'peak_frequency_rad_s': peak_omega,
'peak_period_s': peak_period,
'peak_rao': peak_rao,
'resonance_detected': peak_rao > 2.0 # Typical threshold
}
# Example
frequencies = np.linspace(0.1, 2.0, 100)
rao_amplitudes = 1.5 / np.sqrt((1 - (frequencies/0.5)**2)**2 + (0.1*frequencies/0.5)**2)
peak_info = find_rao_peak_period(frequencies, rao_amplitudes)
print(f"Natural period: {peak_info['peak_period_s']:.2f} s")
print(f"Peak RAO: {peak_info['peak_rao']:.2f} m/m")
```
### 3. Added Mass and Damping
**Frequency-Dependent Coefficients:**
```python
def interpolate_hydrodynamic_coefficients(
omega_target: float,
omega_data: np.ndarray,
coefficient_data: np.ndarray
) -> np.ndarray:
"""
Interpolate added mass or damping at target frequency.
Args:
omega_target: Target frequency (rad/s)
omega_data: Frequency data from BEM
coefficient_data: Coefficient matrix (n_freq x 6 x 6)
Returns:
Interpolated 6x6 coefficient matrix
"""
from scipy.interpolate import interp1d
# Interpolate each element
coefficient_interp = np.zeros((6, 6))
for i in range(6):
for j in range(6):
# Extract time series for this coefficient
coef_series = coefficient_data[:, i, j]
# Create interpolator
interpolator = interp1d(
omega_data,
coef_series,
kind='cubic',
fill_value='extrapolate'
)
# Interpolate
coefficient_interp[i, j] = interpolator(omega_target)
return coefficient_interp
# Example usage
omega_data = np.array([0.1, 0.5, 1.0, 1.5, 2.0]) # rad/s
added_mass_data = np.random.rand(5, 6, 6) * 10000 # Sample data
# Interpolate at T = 8s (omega = 0.785 rad/s)
A_interp = interpolate_hydrodynamic_coefficients(
omega_target=2*np.pi/8,
omega_data=omega_data,
coefficient_data=added_mass_data
)
print(f"Added mass at T=8s:")
print(A_interp)
```
**Infinite Frequency Added Mass:**
```python
def calculate_infinite_frequency_added_mass(
omega_data: np.ndarray,
added_mass_data: np.ndarray
) -> np.ndarray:
"""
Estimate infinite frequency added mass (A_inf).
A_inf = lim(ω→∞) A(ω)
Args:
omega_data: Frequency array
added_mass_data: Added mass array (n_freq x 6 x 6)
Returns:
6x6 infinite frequency added mass
"""
# Use highest frequency values and extrapolate
# Typically: fit A(ω) = A_inf + C/ω²
A_inf = np.zeros((6, 6))
for i in range(6):
for j in range(6):
# Take average of highest 3 frequencies
A_inf[i, j] = np.mean(added_mass_data[-3:, i, j])
return A_inf
```
### 4. Wave Forces
**Froude-Krylov Force:**
```python
def calculate_froude_krylov_force(
wave_amplitude: float,
omega: float,
waterplane_area: float,
center_of_buoyancy_depth: float,
rho: float = 1025
) -> float:
"""
Calculate Froude-Krylov force (undisturbed wave pressure).
F_FK = ρ g ζ_a A_wp e^(k z_b)
Args:
wave_amplitude: Wave amplitude (m)
omega: Wave frequency (rad/s)
waterplane_area: Waterplane area (m²)
center_of_buoyancy_depth: Depth of center of buoyancy (m)
rho: Water density (kg/m³)
Returns:
Froude-Krylov force amplitude (N)
"""
Related in subject-matter-expert
fatigue-analysis
IncludedFatigue analysis for offshore structures including S-N curves, rainflow counting, Miner's rule, and DNV standards
subject-matter-expert
wave-theory
IncludedOcean wave theory including wave spectra, statistics, irregular seas, and wave transformation for offshore engineering
subject-matter-expert
ship-dynamics-6dof
Included6DOF ship dynamics, equations of motion, seakeeping analysis, and natural frequency calculations
subject-matter-expert
marine-offshore-engineering
IncludedMarine and offshore engineering fundamentals for platform design, subsea systems, and regulatory compliance
subject-matter-expert
mooring-analysis
IncludedMooring system design, analysis, and assessment for floating offshore platforms
subject-matter-expert