%Set length and set up initial float locations
 water_depth = 3200;
 lc_length = 2130;  % = scope = 1.2
 lc_length = 1970;  % = scope = 1.15
 luc_length = 800;
 cn_length = 30;
 uuc_length = 700;
 wire_rope_length = 180;  %180m wire rope 
 
 scope = (lc_length+luc_length+uuc_length+wire_rope_length+cn_length)/water_depth;
 
 
 
 %Create .spec file
 fid = fopen('config.spec','w');
 fprintf(fid,'#define WATER_DEPTH %6.3f \n',water_depth);
 fprintf(fid,'#define CFACT %6.3f \n',curr_fact);
 fprintf(fid,'#define AMP %6.3f \n',wave_amp);
 fprintf(fid,'#define PER %6.3f \n',wave_per);
 fprintf(fid,'#define WIND %6.3f \n',wind_spd);
 fprintf(fid,'#define LC_LENGTH %6.0f \n',lc_length);
 fprintf(fid,'#define LUC_LENGTH %6.0f \n',luc_length);
 fprintf(fid,'#define CN_LENGTH %6.0f \n',cn_length);
 fprintf(fid,'#define UUC_LENGTH %6.0f \n',uuc_length);




 
 fclose(fid);
 clear fid

 