Skip to content

Commit

Permalink
Add frame3dd flag to Rotor and TowerSE tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Mar 8, 2024
1 parent 648bcc5 commit d4ebace
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wisdem/test/test_rotorse/test_rotor_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def testBladeCurvature(self):
options["WISDEM"] = {}
options["WISDEM"]["RotorSE"] = {}
options["WISDEM"]["RotorSE"]["n_span"] = npts
options["WISDEM"]["RotorSE"]["frame3dd"] = {}
options["WISDEM"]["RotorSE"]["frame3dd"]['flag'] = True

myobj = rs.BladeCurvature(modeling_options=options)

Expand Down Expand Up @@ -93,6 +95,8 @@ def testTotalLoads(self):
options["WISDEM"] = {}
options["WISDEM"]["RotorSE"] = {}
options["WISDEM"]["RotorSE"]["n_span"] = npts
options["WISDEM"]["RotorSE"]["frame3dd"] = {}
options["WISDEM"]["RotorSE"]["frame3dd"]['flag'] = True

myobj = rs.TotalLoads(modeling_options=options)

Expand Down Expand Up @@ -168,6 +172,8 @@ def testRunFrame3DD(self):
options["WISDEM"]["RotorSE"] = {}
options["WISDEM"]["RotorSE"]["n_span"] = npts
options["WISDEM"]["RotorSE"]["n_freq"] = nfreq
options["WISDEM"]["RotorSE"]["frame3dd"] = {}
options["WISDEM"]["RotorSE"]["frame3dd"]['flag'] = True

myobj = rs.RunFrame3DD(modeling_options=options)
myobj.n_span = npts
Expand Down Expand Up @@ -227,6 +233,8 @@ def testComputeStrains(self):
options["WISDEM"] = {}
options["WISDEM"]["RotorSE"] = {}
options["WISDEM"]["RotorSE"]["n_span"] = npts
options["WISDEM"]["RotorSE"]["frame3dd"] = {}
options["WISDEM"]["RotorSE"]["frame3dd"]['flag'] = True

myobj = rs.ComputeStrains(modeling_options=options)
myobj.n_span = npts
Expand Down Expand Up @@ -369,6 +377,8 @@ def testConstraints(self):
options["WISDEM"]["RotorSE"]["n_span"] = npts
options["WISDEM"]["RotorSE"]["n_freq"] = 6
options["WISDEM"]["RotorSE"]["gamma_freq"] = 1.1
options["WISDEM"]["RotorSE"]["frame3dd"] = {}
options["WISDEM"]["RotorSE"]["frame3dd"]['flag'] = True

myopt = {}
myopt["design_variables"] = {}
Expand Down
1 change: 1 addition & 0 deletions wisdem/test/test_towerse/test_tower.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def setUp(self):

# Simplified the options available to the user
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"] = {}
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"]["flag"] = True
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"]["shear"] = True
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"]["geom"] = True
self.modeling_options["WISDEM"]["TowerSE"]["frame3dd"]["modal_method"] = 1
Expand Down

0 comments on commit d4ebace

Please sign in to comment.