Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yaw inertias for fixed-bottom #191

Merged
merged 2 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/06_IEA-15-240-RWT/modeling_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Level3: # Options for WEIS fidelity level 3 = nonlinear time domain
TeetDOF: False
DrTrDOF: False
GenDOF: True
YawDOF: False
YawDOF: True
TwFADOF1 : True
TwFADOF2 : True
TwSSDOF1 : True
Expand Down
7 changes: 5 additions & 2 deletions weis/aeroelasticse/openmdao_openfast.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def setup(self):
self.add_input('tower_height', val=0.0, units='m', desc='tower height from the tower base')
self.add_input('tower_base_height', val=0.0, units='m', desc='tower base height from the ground or mean sea level')
self.add_input('tower_cd', val=np.zeros(n_height_tow), desc='drag coefficients along tower height at corresponding locations')
self.add_input("tower_I_base", np.zeros(6), units="kg*m**2", desc="tower moments of inertia at the tower base")

# These next ones are needed for SubDyn
n_height_mon = n_full_mon = 0
Expand Down Expand Up @@ -879,7 +880,8 @@ def update_FAST_model(self, fst_vt, inputs, discrete_inputs):
fst_vt['ElastoDyn']['HubCM'] = inputs['hub_system_cm'][0] # k*inputs['overhang'][0] - inputs['hub_system_cm'][0], but we need to solve the circular dependency in DriveSE first
fst_vt['ElastoDyn']['NacMass'] = inputs['above_yaw_mass'][0]
fst_vt['ElastoDyn']['YawBrMass'] = inputs['yaw_mass'][0]
fst_vt['ElastoDyn']['NacYIner'] = inputs['nacelle_I_TT'][2]
# Advice from R. Bergua, add 1/3 the tower yaw inertia here because it is activated as a lumped modal mass
fst_vt['ElastoDyn']['NacYIner'] = inputs['nacelle_I_TT'][2] + inputs['tower_I_base'][2]/3.0
fst_vt['ElastoDyn']['NacCMxn'] = -k*inputs['nacelle_cm'][0]
fst_vt['ElastoDyn']['NacCMyn'] = inputs['nacelle_cm'][1]
fst_vt['ElastoDyn']['NacCMzn'] = inputs['nacelle_cm'][2]
Expand Down Expand Up @@ -916,7 +918,8 @@ def update_FAST_model(self, fst_vt, inputs, discrete_inputs):
fst_vt['ElastoDyn']['PtfmMass'] = 0.
fst_vt['ElastoDyn']['PtfmRIner'] = 0.
fst_vt['ElastoDyn']['PtfmPIner'] = 0.
fst_vt['ElastoDyn']['PtfmYIner'] = 0.
# Advice from R. Bergua- Use a dummy quantity (at least 1e4) here when have fixed-bottom support
fst_vt['ElastoDyn']['PtfmYIner'] = 1e8 if modopt['flags']['offshore'] else 0.0
fst_vt['ElastoDyn']['PtfmCMxt'] = 0.
fst_vt['ElastoDyn']['PtfmCMyt'] = 0.
fst_vt['ElastoDyn']['PtfmCMzt'] = float(inputs['tower_base_height'])
Expand Down
1 change: 1 addition & 0 deletions weis/glue_code/glue_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ def setup(self):
self.connect('tower.cd', 'aeroelastic.tower_cd')
self.connect('tower_grid.height', 'aeroelastic.tower_height')
self.connect('tower_grid.foundation_height', 'aeroelastic.tower_base_height')
self.connect('towerse.tower_I_base', 'aeroelastic.tower_I_base')
if modeling_options["flags"]["monopile"] or modeling_options["flags"]["jacket"]:
self.connect('fixedse.torsion_freqs', 'aeroelastic.tor_freq', src_indices=[0])
self.connect('fixedse.tower_fore_aft_modes', 'aeroelastic.fore_aft_modes')
Expand Down