Skip to content

Commit 1b0e1f0

Browse files
committed
updates to testing files.
This also creates many software in the loop tests for testing with using the TLC files.
1 parent ae13d3e commit 1b0e1f0

File tree

94 files changed

+2129
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+2129
-67
lines changed
Binary file not shown.

Resources/Testing/TMATS_Auto_Test.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848

4949
%Run Simulation
5050
TB_Output = sim(MWS.Auto.BedName,'SrcWorkspace','current');
51+
% TB_Output = sim(MWS.Auto.BedName,'SrcWorkspace','current','SimulationMode','rapid');
52+
% TB_Output = sim(MWS.Auto.BedName,'SrcWorkspace','current');
5153
%Gather Outputs
5254
% if(nargout == 0)
5355
% assignin('base','TB_Output',TB_Output);

Resources/Testing/TMATS_Run_Test.m

Lines changed: 69 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,76 @@ function TMATS_Run_Test()
33

44
% for steady state tests.
55

6+
% MWS.Multi.Full = [...
7+
% {'Actuator_FO'}...
8+
% {'Ambient'}...
9+
% {'Bleed'}...
10+
% {'Burner'}...
11+
% {'Comp'}...
12+
% {'ControllerPI'}...
13+
% {'CorN'}...
14+
% {'CorW'}...
15+
% {'CorWf'}...
16+
% {'Duct'}...
17+
% {'FlwPthChar'}...
18+
% {'Mixer'}...
19+
% {'Mod_Source'}...
20+
% {'Nozzle'}...
21+
% {'OutLoopInt'}...
22+
% {'pt2s'}...
23+
% {'Sensor_FO'}...
24+
% {'Shaft'}...
25+
% {'Splitter'}...
26+
% {'sp2t'}...
27+
% {'SolverSS'}...
28+
% {'SolverDyn'}...
29+
% {'StaticCalc'}...
30+
% {'t2h'}...
31+
% {'Turbine'}...
32+
% {'Turbine_PSI'}...
33+
% {'Valve'}...
34+
% {'Valve_PHY'}...
35+
% {'VCond'}...
36+
% ];
37+
38+
% MWS.Multi.Full = [...
39+
% {'Ambient'}...
40+
% {'Bleed'}...
41+
% {'Burner'}...
42+
% {'Comp'}...
43+
% {'CompVG'}...
44+
% {'h2t'}...
45+
% {'Mixer'}...
46+
% {'Nozzle'}...
47+
% {'pt2s'}...
48+
% {'sp2t'}...
49+
% {'StaticCalc'}...
50+
% {'t2h'}...
51+
% {'Turbine'}...
52+
% {'Turbine_PSI'}...
53+
% {'Valve'}...
54+
% {'Valve_PHY'}...
55+
% ];
56+
657
MWS.Multi.Full = [...
7-
{'Actuator_FO'}...
8-
{'Ambient'}...
9-
{'Burner'}...
10-
{'Comp'}...
11-
{'ControllerPI'}...
12-
{'CorN'}...
13-
{'CorW'}...
14-
{'CorWf'}...
15-
{'Duct'}...
16-
{'FlwPthChar'}...
17-
{'Mod_Source'}...
18-
{'Nozzle'}...
19-
{'OutLoopInt'}...
20-
{'Sensor_FO'}...
21-
{'Shaft'}...
22-
{'Splitter'}...
23-
{'SolverSS'}...
24-
{'SolverDyn'}...
25-
{'Turbine'}...
26-
{'Turbine_PSI'}...
27-
{'Valve'}...
28-
{'Valve_PHY'}...
29-
{'VCond'}...
30-
];
58+
{'AmbientSIL'}...
59+
% {'Bleed'}...
60+
% {'Burner'}...
61+
% {'Comp'}...
62+
% {'CompVG'}...
63+
% {'h2t'}...
64+
% {'Mixer'}...
65+
% {'Nozzle'}...
66+
% {'pt2s'}...
67+
% {'sp2t'}...
68+
% {'StaticCalc'}...
69+
% {'t2h'}...
70+
% {'Turbine'}...
71+
% {'Turbine_PSI'}...
72+
% {'Valve'}...
73+
% {'Valve_PHY'}...
74+
];
75+
3176

3277
%-------Change MWS.Multi.Tests to vector of tests to be run. -----------
3378
MWS.Multi.Tests = [...

Resources/Testing/TMATS_comparison.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ function TMATS_comparison(varargin)
9191

9292
assignin('base','TST',TST);
9393

94-
plot(MxEr_tst);
94+
plot(MxEr_tst,'o');
9595

20.9 KB
Binary file not shown.
18.4 KB
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
function [MWS] = Tsetup_AmbientSIL(MWS)
2+
% TMATS -- setup_Ambient.m
3+
% *************************************************************************
4+
% written by Jeffryes Chapman
5+
% NASA Glenn Research Center, Cleveland, OH
6+
% Dec 18th, 2012
7+
%
8+
% This function creates the properties of the Ambient component.
9+
% *************************************************************************
10+
11+
MWS = MWS;
12+
13+
14+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
function [MWS,Max_Iter] = TVec_AmbientSIL(MWS)
2+
% TMATS -- setup_Ambient.m
3+
% *************************************************************************
4+
% written by Jeffryes Chapman
5+
% NASA Glenn Research Center, Cleveland, OH
6+
% Dec 18th, 2012
7+
%
8+
% This function creates the properties of the Ambient component.
9+
% *************************************************************************
10+
11+
MWS.TV.VarNames = {'Amb' 'W' 'Alt' 'dTamb' 'MN'};
12+
13+
WIn = [102 104];
14+
AltIn = 1000;
15+
dTambIn = 1;
16+
MNIn = 0.5;
17+
18+
19+
a = 1;
20+
for i = 1:length(WIn)
21+
for ii = 1:length(AltIn)
22+
for iii = 1:length(dTambIn)
23+
for iiii = 1:length(MNIn)
24+
MWS.TV.TV(1,a) = WIn(i);
25+
MWS.TV.TV(2,a) = AltIn(ii);
26+
MWS.TV.TV(3,a) = dTambIn(iii);
27+
MWS.TV.TV(4,a) = MNIn(iiii);
28+
a = a + 1;
29+
end
30+
end
31+
end
32+
33+
end
34+
35+
36+
37+
38+
39+
17 KB
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
function [MWS] = Tsetup_Bleed(MWS)
2+
% TMATS -- setup_Bleed.m
3+
% *************************************************************************
4+
% written by Jeffryes Chapman
5+
% NASA Glenn Research Center, Cleveland, OH
6+
% Sept 20th, 2012
7+
%
8+
% This function creates the properties of the Bleed component.
9+
% *************************************************************************
10+
11+
12+
MWS.Bleed.W = [1.1 , 0.5];
13+
14+
15+

0 commit comments

Comments
 (0)