# README Code Master These Lena Ströer: Main folder: MasterThese. To run the code, this folder needs to be copied to a directory of your own computer. It might be necessary to carry out small adjustments in the codes considering the local directory of your computer. MasterThese contains the following: ## CODES: The codes 01_Environmental_data.ipynb, 02_independent_movements.ipynb, 03_Response_Emulator_SBIT.ipynb and 04_Response_Emulator_Tower.ipynb are the most important codes of this thesis. - In the file 01_Environmental_data.ipynb the wind and wave data relevant for this thesis are preprocessed. In detail that means we upsampled/ downsampled the data, so we receive data sets of equal length. The wave data points exactly match the wind data points. First, we resampled the environmental data to 1s, but since we are using 1 min maxima of the deflections, a sampling period of 1 minute is sufficient. The file outputs the data sets wave_data_resampled1min_UTC.csv and wind_data_resampled1min_UTC.csv. If one uses a sampling period of 1 second, this alternative is also provided. - The file 02_independent_movements.ipynb reads the measurement data, environmental data, GPS data and the blade landings, and includes the functions of the impact algorithm, the independent movements identification and the block maxima method. Installation periods are defined, impact events between SBIT and tower are found, independent deflections of SBIT and tower are identified and the corresponding time periods in the environmental data are found. Finally, 1-min maxima of the deflections are found by the implemented block maxima method. The same has been applied to environmental data. This code outputs the file data_for_response_emulator.csv. Use this file to run the response emulator models. - In the files 03_Response_Emulator_SBIT.ipynb and 04_Response_Emulator_Tower.ipynb, the model for the deflection of the SBIT and the tower conditional on environmental parameters is developed and implemented. To reproduce the main results of this thesis, use these codes. -The files 05_test_codes_tb8 contain the initial codes for turbine 8. In the beginning, we conducted tests and the first attempts to identify impacts on the behalf of turbine 8, since here the highest data density is available. To reproduce initial attempts and our approach, use the codes provided with the naming indicated above. Note, that the folder old can serve as an inspiration but has not been updated. Therefore, we do not guarantee that the codes work due to changed directories of files etc. ## DATA The data used in this thesis are divided into GPS data, environmental data and measurement data of the turbines. Note, that all these data originate from the measurement campaign during the installation of wind farm Triangel Borkum II. - In the folder turbines_measurements, the measured accelerations, velocities, deflections and positions are saved. Note, that all these data can also be found on [1]. The measurements for each turbine are saved in a separate folder and further divided into the measurements of the helihoist sensor and the SBIT root sensor. These data are used to identify impacts and consequently independent oscillation periods of SBIT and tower during installation. Further, the deflection is the main response of SBIT and turbine we focus on in this thesis. - In the folder GPS, the recorded GPS data are stored. These data are used to determine the installation periods. - In the folder environmental_data_all the measured wind and wave data are collected. These data are used to build the statistical response emulator for the turbine's deflection during the installation conditional on wind speed and wave height. [1] Sander, Aljoscha. (2020). Oscillations of Offshore Wind Turbines undergoing Installation I: Raw Measurements (Version 1) [Data set]. Zenodo. https://doi.org/10.5281/zenodo.4141208