Delivered to the Government in Accordance with Contract FA8650-10-C-7080

 (c) 2011 United Technologies Corp.
Developed with the sponsorship of the Defense Advanced Research Projects Agency (DARPA).
 
Permission is hereby granted, free of charge, to any person obtaining a copy of this data, including any software or models in source or binary form, as well as any drawings, specifications, and documentation (collectively "the Data"), to deal in the Data without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Data, and to permit persons to whom the Data is furnished to do so, subject to the following conditions:
 
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Data.
 
THE DATA IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, SPONSORS, DEVELOPERS, CONTRIBUTORS, OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE DATA OR THE USE OR OTHER DEALINGS IN THE DATA.


% BaselineTMSConfig Heats configuration file for the BaselineTMS system model
warning('off','MATLAB:dispatcher:InexactCaseMatch');
Options = SetHEATS('MissionFile','TMSMission', 'SystemFile', 'BaselineTMS','Save','off','Plot','off');

% Design
% OptimOptions = optimset('DiffMinChange', 1e-6 , ...
%                         'DiffMaxChange', 1e-5 , ...     
%                         'TolX'         , 1e-4 , ...
%                         'TolFun'       , 1e-4 , ... 
%                         'TolCon'       , 1e-3 , ...
%                         'MaxFunEvals'  , 750  , ...
%                         'Display','iter');

% Perfromance
OptimOptions = optimset('DiffMinChange', 1e-6 , ...
                        'DiffMaxChange', 1e-5 , ...     
                        'TolX'         , 1e-3 , ...
                        'TolFun'       , 1e-3 , ... 
                        'TolCon'       , 1e-2 , ...
                        'MaxFunEvals'  , 250  , ...
                        'Display','iter');

#

% CVS Version control line. DO NOT EDIT!
SYS.Opt.Rev.BaselineTMSConfig = '$Revision: 1.0 $';

%try SYS.Pars.RTTMode; catch SYS.Pars.RTTMode = 'off'; end
try SYS.Opt.Model; catch SYS.Opt.Model = 'size'; end

switch lower(SYS.Opt.Model)
case 'size'
% size system pumps
% set design pressure rise
    SYS.ABPump.Pars.DeltaP = ConvertUnits('psia', 1000.0, 'import');
    SYS.MFPump.Pars.DeltaP = ConvertUnits('psia', 1000.0, 'import');
end

%          variable_name                 initial_guess               lower_bound                 upper_bound 
VParam = {'Param.EngActTempOut'                  400.0, SYS.Conditions.Tank.Temp, 2*SYS.Conditions.Tank.Temp
          'Param.ActPumpRecircTemp'              400.0, SYS.Conditions.Tank.Temp, 2*SYS.Conditions.Tank.Temp
          'Param.ActPumpRecircFlow'                 .5,                     0.01,                          1
          'Param.RTTFuelFlow'                       .2,                      0.0,                          2};

NumV = size(VParam, 1);
if (strcmp(SYS.Opt.Model,'size'))
    NumV = NumV - 2;
    SYS.Param.ActPumpRecircFlow = 0;
    SYS.Param.RTTFuelFlow = 0;
end
if (strcmp(SYS.Opt.Model,'performanceRTToff'))
    NumV = NumV - 1;
    SYS.Param.RTTFuelFlow = 0;
end
for j =1:NumV
    SYS.Opt.Names.X{j}=VParam{j,1};
    X0(j)=VParam{j,2};
    Bounds(j,1)=VParam{j,3};
    Bounds(j,2)=VParam{j,4};
end

%*********************************************************************
% CVS Version Control Log Data. DO NOT EDIT BELOW THIS LINE!
% $Log: BaselineTMSConfig.m,v $