FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Ship::Ship2::RadiationModel Class Reference

#include <RadiationModel.h>

Classes

struct  Options
 
struct  Pair
 

Public Member Functions

int NumStates () const
 
const std::vector< Pair > & Pairs () const
 
const Matrix6d & AddedMassInfinite () const
 The added mass at infinite frequency the model was fitted with.
 
void Derivatives (const double *x, const Vector6d &nu, double *xdot) const
 dx/dt for the states x and the body velocity nu.
 
Vector6d MemoryForce (const double *x) const
 The memory force mu (the radiation force is -A(inf) dnu/dt - mu).
 
Eigen::Matrix< std::complex< double >, 6, 6 > Response (double omega) const
 The fitted K(j omega), for checks.
 

Static Public Member Functions

static RadiationModel Fit (const VesselData &data, const Options &options)
 Fits the model to data (needs its added mass at infinite frequency; without it A(omega_max) is used).
 
static RadiationModel Fit (const VesselData &data)
 

Detailed Description

The radiation memory of a hull as state-space models fitted to its 3D frequency-domain data (ADR 0001, D3).

The radiation force is -A(inf) dnu/dt - mu, with mu_i = sum_j (K_ij * nu_j) the convolution of the retardation functions with the body velocity nu. For every coupled pair (i, j), surge included, the frequency response K_ij(j omega) = B_ij(omega) + j omega (A_ij(omega) - A_ij(inf)) is fitted with a strictly proper rational function by vector fitting (Ship::VectorFit, real realization): dx/dt = A x + B nu_j, mu_i += C x. The order is the lowest of 2, 4, ... up to maxOrder whose relative RMS error is below tolerance (else the best) among the fits whose poles all have a damping ratio of at least minDamping (a retardation function is smooth: a lightly damped pole fits noise at the end of the frequency range and makes the memory ring long after the motion). A pair whose response is below negligible of the larger diagonal response of its two modes gets no states.


The documentation for this class was generated from the following file: