Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Aircraft Design
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNICADO
Aircraft Design
Merge requests
!208
Feature/constraint analysis workshop updates
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/constraint analysis workshop updates
feature/constraint_analysis_workshop_updates
into
develop
Overview
0
Commits
5
Pipelines
0
Changes
1
Merged
Meric Taneri
requested to merge
feature/constraint_analysis_workshop_updates
into
develop
2 months ago
Overview
0
Commits
5
Pipelines
0
Changes
1
Expand
Refactoring is finalized, plots are fixed
0
1
Merge request reports
Compare
develop
version 2
48ba19eb
2 months ago
version 1
6314d795
2 months ago
develop (base)
and
latest version
latest version
f79aaaf4
5 commits,
2 months ago
version 2
48ba19eb
4 commits,
2 months ago
version 1
6314d795
3 commits,
2 months ago
1 file
+
25
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
constraint_analysis/src/energy_based/energy_based.cpp
+
25
−
2
Options
@@ -105,7 +105,9 @@ void EnergyBased::operator()()
break
;
}
}
Mattingly
::
constraint_analysis
constraint_analysis_plotting
=
constraint_analysis_tool
;
readMission
mission_data
(
missionCSV
);
assess_constraints
(
W_over_S_data
,
constraint_analysis_tool
,
mission_data
,
engine
);
@@ -141,9 +143,30 @@ void EnergyBased::operator()()
/* Plot the complete design chart with constraints, boundaries and design point*/
std
::
string
plotting
=
this
->
configuration
()
->
at
(
"module_configuration_file/control_settings/plot_output/enable/value"
);
if
(
plotting
==
"true"
)
{
WS_start
=
50
;
WS_end
=
820
;
WS_size
=
WS_end
-
WS_start
+
1
;
// Range from 50 to 820, inclusive
std
::
vector
<
double
>
W_over_S_data
(
WS_size
);
for
(
int
i
=
0
;
i
<
WS_size
;
++
i
)
{
W_over_S_data
[
i
]
=
(
WS_start
+
i
)
*
9.81
;
}
this
->
constraint_list
=
{};
this
->
boundaries
=
{};
assess_constraints
(
W_over_S_data
,
constraint_analysis_plotting
,
mission_data
,
engine
);
Simple_Analysis
min_finder_2
=
Simple_Analysis
(
this
->
constraint_list
,
this
->
aircraft_xml
(),
this
->
boundaries
);
min_finder_2
.
find_dominant_curve
();
ConstraintAnalysis_Plot
ca_plot
;
ca_plot
.
fill_infeasible_area
(
W_over_S_data
,
min_finder
.
dominant_thrust_to_weight
,
boundaries
);
ca_plot
.
fill_infeasible_area
(
W_over_S_data
,
min_finder_2
.
dominant_thrust_to_weight
,
boundaries
);
for
(
auto
ca_case
:
this
->
constraint_list
)
{
ca_plot
.
add_curve
(
ca_case
.
wing_loading
,
ca_case
.
thrust_to_weight
,
ca_case
.
constraint_case
);
Loading