diff --git a/examples/RAO_fl.pkl b/examples/RAO_fl.pkl index 0002ae9..0cece3c 100644 Binary files a/examples/RAO_fl.pkl and b/examples/RAO_fl.pkl differ diff --git a/examples/lumped_mass.py b/examples/lumped_mass.py index 63b4e31..ba0a067 100644 --- a/examples/lumped_mass.py +++ b/examples/lumped_mass.py @@ -62,8 +62,8 @@ def JONSWAP(ws, Hs, Tp, Gamma=None): # Get the dynamic tension along the line line = ms.lineList[0] # Get the line object RAO_data = pickle.load(open(os.path.join(current_dir, 'RAO_fl.pkl'), 'rb')) # Read the nFreq x 3 RAO matrix (nFreq x 4 complex numpy array, first column are the frequencies in rad/s) -RAO_fl = RAO_data[:, 1:] # Motion RAOs of the fairlead -w = RAO_data[:, 0] # Frequencies of the RAO data +RAO_fl = RAO_data['RAO_fl'] # Motion RAOs of the fairlead +w = RAO_data['w'] # Frequencies of the RAO data Sw = JONSWAP(ws = w, Hs = 6, Tp = 8) # Arbitrary wave spectrum T_nodes_amp, T_nodes_psd,T_nodes_std,s,r_static,r_dynamic,r_total,X = line.dynamicSolve(w, Sw, RAO_A=0,RAO_B=RAO_fl, depth=np.abs(line.rA[2]))