-
Notifications
You must be signed in to change notification settings - Fork 67
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
Deprecated SolveIVP transcription. simulate
method now uses the ExplicitShooting transcription without derivatives.
#898
Changes from all commits
152fb37
d370fbd
c84b8c6
69bdaa4
24c7f2d
0873b18
530d3bf
5f79af6
8f0857b
4a77f7e
371c1a1
1ecc972
a1fc4a8
34ef146
d8f94bd
dfa86a5
ca41c12
6c87537
e1a7778
9993e22
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ def test_cruise_results_gl(self): | |
p.setup() | ||
|
||
p['phase0.t_initial'] = 0.0 | ||
p['phase0.t_duration'] = 1.515132 * 3600.0 | ||
p['phase0.t_duration'] = 3600.0 | ||
p['phase0.states:range'] = phase.interp('range', (0, 1296.4)) | ||
p['phase0.states:mass_fuel'] = phase.interp('mass_fuel', (12236.594555, 1)) | ||
p['phase0.states:alt'] = 5.0 | ||
|
@@ -181,7 +181,7 @@ def test_cruise_results_radau(self): | |
p.setup() | ||
|
||
p['phase0.t_initial'] = 0.0 | ||
p['phase0.t_duration'] = 1.515132 * 3600.0 | ||
p['phase0.t_duration'] = 1.0 * 3600.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. initial value was out of bounds of the design variable |
||
p['phase0.states:range'] = phase.interp('range', (0, 1296.4)) | ||
p['phase0.states:mass_fuel'] = phase.interp('mass_fuel', (12236.594555, 0)) | ||
p['phase0.states:alt'] = 5.0 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,8 +166,8 @@ def test_make_sim_reports(self): | |
report_subdirs = sorted([e for e in pathlib.Path(get_reports_dir()).iterdir() if e.is_dir()]) | ||
|
||
# Test that a report subdir was made | ||
# # There is the nominal problem, the simulation problem, and a subproblem for each segment in the simulation. | ||
self.assertEqual(len(report_subdirs), 12) | ||
# There is the nominal problem, the simulation problem, and a subproblem for the simulation. | ||
self.assertEqual(len(report_subdirs), 3) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed due to having fewer subproblems involved. |
||
|
||
for subdir in report_subdirs: | ||
path = pathlib.Path(subdir).joinpath(self.n2_filename) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,32 +55,52 @@ def test_ex_brachistochrone_radau_compressed(self): | |
compressed=True) | ||
self.run_asserts(p) | ||
self.tearDown() | ||
if os.path.exists('ex_brach_radau_compressed.db'): | ||
os.remove('ex_brach_radau_compressed.db') | ||
|
||
def test_ex_brachistochrone_radau_uncompressed(self): | ||
ex_brachistochrone.SHOW_PLOTS = True | ||
p = ex_brachistochrone.brachistochrone_min_time(transcription='radau-ps', | ||
compressed=False) | ||
self.run_asserts(p) | ||
self.tearDown() | ||
if os.path.exists('ex_brach_radau_uncompressed.db'): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Handled by @use_tempdir |
||
os.remove('ex_brach_radau_uncompressed.db') | ||
|
||
def test_ex_brachistochrone_gl_compressed(self): | ||
ex_brachistochrone.SHOW_PLOTS = True | ||
p = ex_brachistochrone.brachistochrone_min_time(transcription='gauss-lobatto', | ||
compressed=True) | ||
self.run_asserts(p) | ||
self.tearDown() | ||
if os.path.exists('ex_brach_gl_compressed.db'): | ||
os.remove('ex_brach_gl_compressed.db') | ||
|
||
def test_ex_brachistochrone_gl_uncompressed(self): | ||
ex_brachistochrone.SHOW_PLOTS = True | ||
p = ex_brachistochrone.brachistochrone_min_time(transcription='gauss-lobatto', | ||
compressed=False) | ||
self.run_asserts(p) | ||
self.tearDown() | ||
if os.path.exists('ex_brach_gl_uncompressed.db'): | ||
os.remove('ex_brach_gl_uncompressed.db') | ||
|
||
def test_ex_brachistochrone_shooting_gl_compressed(self): | ||
ex_brachistochrone.SHOW_PLOTS = True | ||
p = ex_brachistochrone.brachistochrone_min_time(transcription='shooting-gauss-lobatto', | ||
compressed=True) | ||
self.run_asserts(p) | ||
self.tearDown() | ||
|
||
def test_ex_brachistochrone_shooting_gl_uncompressed(self): | ||
ex_brachistochrone.SHOW_PLOTS = True | ||
p = ex_brachistochrone.brachistochrone_min_time(transcription='shooting-gauss-lobatto', | ||
compressed=False) | ||
self.run_asserts(p) | ||
self.tearDown() | ||
|
||
def test_ex_brachistochrone_shooting_radau_compressed(self): | ||
ex_brachistochrone.SHOW_PLOTS = True | ||
p = ex_brachistochrone.brachistochrone_min_time(transcription='shooting-radau', | ||
compressed=True) | ||
self.run_asserts(p) | ||
self.tearDown() | ||
|
||
def test_ex_brachistochrone_shooting_radau_uncompressed(self): | ||
ex_brachistochrone.SHOW_PLOTS = True | ||
p = ex_brachistochrone.brachistochrone_min_time(transcription='shooting-radau', | ||
compressed=False) | ||
self.run_asserts(p) | ||
self.tearDown() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .analytic_phase import AnalyticPhase | ||
from .phase import Phase | ||
from .simulation_phase import SimulationPhase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
initial value was out of bounds of the design variable.