Skip to content

Commit 2beb04f

Browse files
committed
Remove and revert extra commits
1 parent 82c8d8a commit 2beb04f

File tree

5 files changed

+40
-164
lines changed

5 files changed

+40
-164
lines changed

Examples/07_openfast_outputs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def main():
3636
# --- Comment,uncomment, create, and change these as desired...
3737
cases = {}
3838
cases['Baseline'] = ['Wind1VelX', 'BldPitch1', 'GenTq', 'RotSpeed']
39-
#cases['Rotor'] = ['BldPitch1', 'GenTq', 'GenPwr']
40-
#cases['Platform Motion'] = ['PtfmSurge', 'PtfmSway', 'PtfmHeave', 'PtfmPitch','PtfmRoll','PtfmYaw']
39+
# cases['Rotor'] = ['BldPitch1', 'GenTq', 'GenPwr']
40+
# cases['Platform Motion'] = ['PtfmSurge', 'PtfmSway', 'PtfmHeave', 'PtfmPitch','PtfmRoll','PtfmYaw']
4141

4242

4343
# Instantiate fast_IO

Examples/28_tower_resonance.py

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ def main():
4545

4646
# Set DISCON input dynamically through yaml/dict
4747
controller_params = {}
48-
controller_params['ASO_Mode'] = 0
4948
controller_params['TRA_Mode'] = 2
5049
controller_params['vs_minspd'] = 0. # Reduce minimum rotor speed so that saturation does not interfere with exclusion
5150
controller_params['VS_ControlMode'] = 3.
@@ -64,20 +63,20 @@ def main():
6463
# A few different cases highlight TRA
6564

6665
# Ramp: good demo of functionality, short for CI
67-
#r.wind_case_fcn = cl.ramp
68-
#r.wind_case_opts = {
69-
# 'U_start': 0, # from 10 to 15 m/s
70-
# 'U_end': 10,
71-
# 't_start': 100,
72-
# 't_end': 300,
73-
# }
66+
r.wind_case_fcn = cl.ramp
67+
r.wind_case_opts = {
68+
'U_start': 0, # from 10 to 15 m/s
69+
'U_end': 10,
70+
't_start': 100,
71+
't_end': 300
72+
}
7473

7574
# # steady
76-
r.wind_case_fcn = cl.power_curve
77-
r.wind_case_opts = {
78-
'U': 6.5, # from 10 to 15 m/s
79-
'TMax': 400,
80-
}
75+
# r.wind_case_fcn = cl.power_curve
76+
# r.wind_case_opts = {
77+
# 'U': 6.5, # from 10 to 15 m/s
78+
# 'TMax': 400,
79+
# }
8180

8281
# # turbulence
8382
# r.wind_case_fcn = cl.turb_bts
@@ -90,16 +89,14 @@ def main():
9089
r.control_sweep_fcn = cl.sweep_yaml_input
9190
r.control_sweep_opts = {
9291
'control_param': 'TRA_Mode',
93-
#'param_values': [0]
9492
'param_values': [0,1]
9593
}
9694

9795
r.controller_params = controller_params
9896
r.save_dir = run_dir
9997
r.rosco_dir = rosco_dir
10098
r.case_inputs = {}
101-
r.rosco_dll = "C:/Users/musah/ROSCO/rosco/controller/build/libdiscon.dll"
102-
r.n_cores = 1
99+
r.n_cores = 2
103100
r.run_FAST()
104101

105102

Examples/Test_Cases/IEA-15-240-RWT/IEA-15-240-RWT-UMaineSemi/ReadFASTbinary.m

Lines changed: 0 additions & 138 deletions
This file was deleted.

Examples/Test_Cases/IEA-15-240-RWT/IEA-15-240-RWT-UMaineSemi/ggg.txt

Lines changed: 0 additions & 8 deletions
This file was deleted.

rosco/controller/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,32 @@ else (NWTC_SYS_FILE)
6969
message(FATAL_ERROR "Cannot determine system file used with NWTC_Library")
7070
endif (NWTC_SYS_FILE)
7171

72+
# ZMQ Library
73+
find_package(PkgConfig)
74+
pkg_check_modules(PC_ZeroMQ libzmq)
75+
if(PC_ZeroMQ_FOUND)
76+
# Find ZeroMQ installation
77+
find_path(ZeroMQ_INCLUDE_DIR
78+
NAMES zmq.h
79+
PATHS ${PC_ZeroMQ_INCLUDE_DIRS}
80+
)
81+
find_library(ZeroMQ_LIBRARY
82+
NAMES zmq
83+
PATHS ${PC_ZeroMQ_LIBRARY_DIRS}
84+
)
85+
include_directories(${ZeroMQ_INCLUDE_DIR})
86+
87+
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -L${PC_ZeroMQ_LIBRARY_DIRS} -lzmq")
7288

89+
# Compile C-based ZeroMQ client as object library
90+
add_compile_options(-I${ZeroMQ_INCLUDE_DIR} -l${ZeroMQ_LIBRARY} -fPIC)
91+
add_library(zmq_client OBJECT src/zmq_client.c)
92+
93+
# Add definition
94+
add_definitions(-DZMQ_CLIENT="TRUE")
95+
set(SOURCES ${SOURCES}
96+
$<TARGET_OBJECTS:zmq_client>)
97+
endif()
7398

7499
add_library(discon SHARED ${SOURCES})
75100

0 commit comments

Comments
 (0)