From d4ebace88587c25fa114ac4ac6fb5855610d2be8 Mon Sep 17 00:00:00 2001 From: dzalkind Date: Fri, 8 Mar 2024 16:12:44 -0700 Subject: [PATCH] Add frame3dd flag to Rotor and TowerSE tests --- wisdem/test/test_rotorse/test_rotor_structure.py | 10 ++++++++++ wisdem/test/test_towerse/test_tower.py | 1 + 2 files changed, 11 insertions(+) diff --git a/wisdem/test/test_rotorse/test_rotor_structure.py b/wisdem/test/test_rotorse/test_rotor_structure.py index 60487c3d5..a806d959c 100644 --- a/wisdem/test/test_rotorse/test_rotor_structure.py +++ b/wisdem/test/test_rotorse/test_rotor_structure.py @@ -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) @@ -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) @@ -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 @@ -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 @@ -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"] = {} diff --git a/wisdem/test/test_towerse/test_tower.py b/wisdem/test/test_towerse/test_tower.py index e9bab1d71..052719551 100644 --- a/wisdem/test/test_towerse/test_tower.py +++ b/wisdem/test/test_towerse/test_tower.py @@ -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