These Matlab scripts, function, and data files can be used to calculate non-dimensional turbine performance coefficients and generate the plots in Polagye et al. (2019) - Comparison of cross-flow turbine performance under torque-regulated and speed-regulated control.

Data File:
- experiment_data.mat: Experimental turbine performance data

Matlab Script:
- Main.m: main matlab script to process data and plot results

Matlab Support Functions (used by Main.m):
- calculate_coefficients.m: calculates non-dimensional performance coefficients
- calculate_hydrodynamics.m: calculates hydrodynamic torque and power
- calculate_phase.m: calculates phase-averaged turbine performance
- calculate_rotations.m: calculates average performance for each turbine rotation
- calculate_speedacc.m: calculates turbine rotational speed and acceleration from turbine position
- calculate_time_average.m: calculate time-average turbine performance at each point on the performance curve
- lbmap.m: color map generator
- plot_performance_curve.m: plot time-average performance curve with IQR range
- plot_phase_curve.m: plot phase-average performance curve with IQR range
- time_stamp.m: generate time stamps for performance data
- trim_data.m: trim performance data to an integer number of rotations