forked from aerospaceresearch/ESDC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ESDC.m
49 lines (34 loc) · 1.89 KB
/
ESDC.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
%main function of the ESDC program. The tools allows for generic spacecraft design based on correlations and application of an evolutionary algorithm.
%https://standards.nasa.gov/standard/gsfc/gsfc-std-1000 gold rules for margins and more
function [ ] =ESDC()
clc
t_0= now; % Reference timer for performance evaluation: Start
% Path adding for relevant folders containing code
addpath('Code/Analysis'); % Code concercning system analaysis
addpath('Code/Evolver'); % Code concerning Evolution algorithm definitions
addpath('Code/Input'); % Code dealinng with input handling
addpath('Code/Output'); % Code deadling with output handling
addpath('Code/Scaling'); % Code dealing with scaling laws
addpath('Code/Support'); % Code serving various support functions
add_paths_for_visualization(); % additional paths for the visulisation codes like video and animation creation
% Start
startup(); % Display startup messages, licenses etc.
%Update Scaling Data Base
force_db_update = 0 ;
update_scaling_model(force_db_update); % Checks for changes in the data bases and derives changed scaling laws
%Input
[input db_data config] = input_processing(); %Reads input files for the specific simulaton at hand
%Evolve
t_1=now; % Reference timer for performance evaluation: After evoluation completion
evolution_data = evolver(input, db_data, config); % Main solver performance here
evolution_time(t_1); % Calculate the time for the evolution process
%Output
output_XML_generation(input, db_data, config, evolution_data);
%Visual Output
%disp('Visual production ')
%visualization(evolution_data, config);
%disp('Visual production complete')
%End
disp('ESDC complete')
eval_total_time(t_0, t_end=now)
endfunction