Skip to content
Snippets Groups Projects
Commit 3ff97d13 authored by Jenni Rinker's avatar Jenni Rinker
Browse files

modifying to work with discon interface

parent 3c68332b
No related branches found
No related tags found
No related merge requests found
;oc3_monopile_phase_1 version 3, 12-06-13, Anyd
begin Simulation;
;oc3_monopile_phase_1
;
begin simulation;
time_stop 100;
solvertype 1 ; (newmark)
on_no_convergence continue ;
logfile ./log/oc3_monopile_phase_1.log ;
animation ./animation/oc3_monopile_phase_1.dat;
; animation ./animation/oc3_monopile_phase_1.dat;
;
begin newmark;
deltat 0.02;
......@@ -322,19 +323,6 @@ begin wind ;
shear_format 1 0.14 ;0=none,1=constant,2=log,3=power,4=linear
turb_format 0 ; 0=none, 1=mann,2=flex
tower_shadow_method 3 ; 0=none, 1=potential flow, 2=jet
; scale_time_start 0 ;
; wind_ramp_factor 0.0 [t0] [wsp factor] 1.0 ;
; [gust] iec_gust [gust_type] [gust_A] [gust_phi0] [gust_t0] [gust_T] ;
;
begin mann;
filename_u ./turb/dummyu.bin ;
filename_v ./turb/dummyv.bin ;
filename_w ./turb/dummyw.bin ;
box_dim_u 8192 0.0 ;
box_dim_v 32 4.6875;
box_dim_w 32 4.6875;
std_scaling 1.0 0.7 0.5 ;
end mann;
;
begin tower_shadow_potential_2;
tower_mbdy_link tower;
......@@ -398,49 +386,42 @@ end aero ;
;
;-------------------------------------------------------------------------------------------------
begin dll;
begin hawc_dll;
filename ./control/bladed2hawc.dll ;
dll_subroutine regulation ;
arraysizes 15 15 ;
deltat 0.02;
begin output;
general time ; 1
constraint bearing2 pitch1 1; angle and angle velocity written to dll 2,3
constraint bearing2 pitch2 1; angle and angle velocity written to dll 4,5
constraint bearing2 pitch3 1; angle and angle velocity written to dll 6,7
constraint bearing2 shaft_rot 1; angle and angle velocity written to dll (slow speed shaft) 8,9
wind free_wind 1 0.0 0.0 -90.0; local wind at fixed position: coo (1=global,2=non-rotation rotor coo.), pos x, pos y, pos z 10,11,12
general constant 97.0 ; generator exchange ratio 13
end output;
;
begin actions;
body moment_ext shaft 1 3;
end actions;
end hawc_dll;
;
begin hawc_dll;
filename ./control/pitchservo_pos.dll ;
dll_subroutine servo ;
arraysizes 15 15 ;
deltat 0.02 ;
begin output;
general time ; 1
dll inpvec 1 2; 2
dll inpvec 1 3; 3
dll inpvec 1 4; 4
constraint bearing2 pitch1 1; angle and angle velocity written to dll 5,6
constraint bearing2 pitch2 1; angle and angle velocity written to dll 7,8
constraint bearing2 pitch3 1; angle and angle velocity written to dll 9,10
end output;
;
begin actions;
body bearing_angle pitch1;
body bearing_angle pitch2;
body bearing_angle pitch3;
end actions;
end hawc_dll;
begin type2_dll; 1. discon controller interface
name nrel_5mw_interface ;
filename ./control/nrel_5mw_interface.dll ;
dll_subroutine_init initialize_type2dll ;
dll_subroutine_update update_type2dll ;
arraysizes_init 100 1 ;
arraysizes_update 100 100 ;
;
begin init ; parameters needed to initialize DLL
constant 1 97 ; Gear ratio [-]
constant 2 0.04 ; Time constant for low-pass filter on pitch [s]
constant 3 3 ; Number of blades [-]
constant 4 0 ; Enable DLL log [0=disable, 1=enable]
end init ;
;
begin output; HAWC2 channels passed to the interface DLL
general status ; Status [-]
general time ; Time [s]
constraint bearing1 shaft_rot 1 only 2 ; LSS [rad/s]
constraint bearing2 pitch1 1 only 1 ; Blade1 pitch angle [rad]
constraint bearing2 pitch2 1 only 1 ; Blade1 pitch angle [rad]
constraint bearing2 pitch3 1 only 1 ; Blade1 pitch angle [rad]
wind free_wind_hor 1 0.0 0.0 -90.0 only 1; Hub-height wind speed [m/s]
end output;
;
begin actions; actions applied to the turbine
mbdy moment_int shaft 1 3 shaft towertop 2 ; Generator LSS torque [Nm]
constraint bearing2 angle pitch1 ; Angle pitch1 bearing [rad]
constraint bearing2 angle pitch2 ; Angle pitch2 bearing [rad]
constraint bearing2 angle pitch3 ; Angle pitch3 bearing [rad]
end actions;
;
end type2_dll;
;
begin hawc_dll;
begin hawc_dll; 2. damper
filename ./control/damper.dll ;
dll_subroutine damp ;
arraysizes 15 15 ;
......@@ -457,7 +438,7 @@ begin dll;
end actions;
end hawc_dll;
;
begin type2_dll;
begin type2_dll; 3. gearbox converter
name gear;
filename ./control/hss_convert.dll ;
arraysizes_init 3 1 ;
......@@ -482,9 +463,9 @@ end dll;
begin output;
filename ./res/oc3_monopile_phase_1 ;
; time 50.0 650.0 ;
buffer 1 ;
buffer 9999 ;
general time;
data_format hawc_binary;
data_format gtsdf;
;
constraint bearing1 shaft_rot 2; angle and angle velocity
constraint bearing2 pitch1 5; angle and angle velocity
......@@ -521,26 +502,15 @@ begin output;
mbdy momentvec tower 1 1 tower # tower MSL ;
mbdy forcevec tower 1 1 tower # tower MSL ;
;
dll outvec 1 1 # time;
dll outvec 1 2 # pitch angle 1;
dll outvec 1 3 # pitch vel 1;
dll outvec 1 4 # pitch angle 2;
dll outvec 1 5 # pitch vel 2;
dll outvec 1 6 # pitch angle 3;
dll outvec 1 7 # pitch vel 3;
dll outvec 1 8 # gen. azi slow;
dll outvec 1 9 # gen. speed slow;
dll outvec 1 10 # free wind x;
dll outvec 1 11 # free wind y;
dll outvec 1 12 # free wind z;
dll outvec 1 13 # gear ratio;
dll inpvec 1 1 # Mgen slow;
dll inpvec 1 2 # pitchref 1;
dll inpvec 1 3 # pitchref 2;
dll inpvec 1 4 # pitchref 3;
dll inpvec 1 7 # F;
dll inpvec 1 8 # Mechanical power generator [kW];
dll inpvec 1 10 # Pitch rate [rad/s];
; control dll
dll inpvec 1 1 # mgen lss; [Nm]
dll inpvec 1 2 # blade1 pitch; [rad]
dll inpvec 1 3 # blade2 pitch; [rad]
dll inpvec 1 4 # blade3 pitch; [rad]
dll inpvec 1 5 # electrical power; [kW]
dll inpvec 1 6 # genspeed; [rpm]
dll inpvec 1 7 # unfiltered pitch; [rad]
; damper dlls
dll inpvec 2 1 # pitch 1;
dll inpvec 2 2 # pitch 2;
dll inpvec 2 3 # pitch 3;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment