Mech Report Initial Sizing Updated

Embed Size (px)

Citation preview

  • 8/11/2019 Mech Report Initial Sizing Updated

    1/30

    ()

    ()

    ()

    .

    () ()

    .

    .

    .

    .

    , .

    ()

    ()

    ()

    ()

    .

  • 8/11/2019 Mech Report Initial Sizing Updated

    2/30

    ,

    . .

    , .

    ().

    .

    .

    , , ,

    .

    .

  • 8/11/2019 Mech Report Initial Sizing Updated

    3/30

    .

    .

    .

    , /

    /

    .

    .

    .

    ,

    , .

    ( / )

    .

    1( / )

  • 8/11/2019 Mech Report Initial Sizing Updated

    4/30

    .

    (0) .

    ( ).

    .

    ..

    (+)/2.

    .

  • 8/11/2019 Mech Report Initial Sizing Updated

    5/30

    functionvarargout = MECH_REPORT_CONSTRAINT_ANALYSIS(varargin)% MECH_REPORT_CONSTRAINT_ANALYSIS MATLAB code for

    MECH_REPORT_CONSTRAINT_ANALYSIS.fig% MECH_REPORT_CONSTRAINT_ANALYSIS, by itself, creates a new

    MECH_REPORT_CONSTRAINT_ANALYSIS or raises the existing% singleton*.%% H = MECH_REPORT_CONSTRAINT_ANALYSIS returns the handle to a new

    MECH_REPORT_CONSTRAINT_ANALYSIS or the handle to% the existing singleton*.%%

    MECH_REPORT_CONSTRAINT_ANALYSIS('CALLBACK',hObject,eventData,handles,...)

    calls the local% function named CALLBACK in MECH_REPORT_CONSTRAINT_ANALYSIS.M with the

    given input arguments.%

    % MECH_REPORT_CONSTRAINT_ANALYSIS('Property','Value',...) creates a newMECH_REPORT_CONSTRAINT_ANALYSIS or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before MECH_REPORT_CONSTRAINT_ANALYSIS_OpeningFcn

    gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to

    MECH_REPORT_CONSTRAINT_ANALYSIS_OpeningFcn via varargin.%% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one% instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES

    % Edit the above text to modify the response to help

    MECH_REPORT_CONSTRAINT_ANALYSIS

    % Last Modified by GUIDE v2.5 25-Aug-2013 12:14:41

    % Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...

    'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn',

    @MECH_REPORT_CONSTRAINT_ANALYSIS_OpeningFcn, ...'gui_OutputFcn',

    @MECH_REPORT_CONSTRAINT_ANALYSIS_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);

    ifnargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});

    end

    ifnargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

    else

  • 8/11/2019 Mech Report Initial Sizing Updated

    6/30

    gui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT

    % --- Executes just before MECH_REPORT_CONSTRAINT_ANALYSIS is made visible.

    functionMECH_REPORT_CONSTRAINT_ANALYSIS_OpeningFcn(hObject, eventdata,handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin command line arguments to MECH_REPORT_CONSTRAINT_ANALYSIS (see

    VARARGIN)

    % Choose default command line output for MECH_REPORT_CONSTRAINT_ANALYSIShandles.output = hObject;

    % Update handles structure

    guidata(hObject, handles);

    % UIWAIT makes MECH_REPORT_CONSTRAINT_ANALYSIS wait for user response (see

    UIRESUME)% uiwait(handles.figure1);

    % --- Outputs from this function are returned to the command line.functionvarargout = MECH_REPORT_CONSTRAINT_ANALYSIS_OutputFcn(hObject,

    eventdata, handles)

    % varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB

    % handles structure with handles and user data (see GUIDATA)

    % Get default command line output from handles structurevarargout{1} = handles.output;

    functionedit1_Callback(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit1 as text% str2double(get(hObject,'String')) returns contents of edit1 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit1_CreateFcn(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

  • 8/11/2019 Mech Report Initial Sizing Updated

    7/30

  • 8/11/2019 Mech Report Initial Sizing Updated

    8/30

    ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit4_Callback(hObject, eventdata, handles)% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit4 as text% str2double(get(hObject,'String')) returns contents of edit4 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit4_CreateFcn(hObject, eventdata, handles)

    % hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit5_Callback(hObject, eventdata, handles)% hObject handle to edit5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit5 as text% str2double(get(hObject,'String')) returns contents of edit5 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit5_CreateFcn(hObject, eventdata, handles)% hObject handle to edit5 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

  • 8/11/2019 Mech Report Initial Sizing Updated

    9/30

    functionedit6_Callback(hObject, eventdata, handles)% hObject handle to edit6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB

    % handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit6 as text% str2double(get(hObject,'String')) returns contents of edit6 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit6_CreateFcn(hObject, eventdata, handles)% hObject handle to edit6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit7_Callback(hObject, eventdata, handles)% hObject handle to edit7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit7 as text% str2double(get(hObject,'String')) returns contents of edit7 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit7_CreateFcn(hObject, eventdata, handles)% hObject handle to edit7 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

  • 8/11/2019 Mech Report Initial Sizing Updated

    10/30

    functionedit8_Callback(hObject, eventdata, handles)% hObject handle to edit8 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit8 as text% str2double(get(hObject,'String')) returns contents of edit8 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit8_CreateFcn(hObject, eventdata, handles)% hObject handle to edit8 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');end

    functionedit9_Callback(hObject, eventdata, handles)% hObject handle to edit9 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit9 as text% str2double(get(hObject,'String')) returns contents of edit9 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit9_CreateFcn(hObject, eventdata, handles)% hObject handle to edit9 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))

    set(hObject,'BackgroundColor','white');end

    functionedit10_Callback(hObject, eventdata, handles)% hObject handle to edit10 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

  • 8/11/2019 Mech Report Initial Sizing Updated

    11/30

    % Hints: get(hObject,'String') returns contents of edit10 as text% str2double(get(hObject,'String')) returns contents of edit10 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit10_CreateFcn(hObject, eventdata, handles)% hObject handle to edit10 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit11_Callback(hObject, eventdata, handles)% hObject handle to edit11 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit11 as text% str2double(get(hObject,'String')) returns contents of edit11 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit11_CreateFcn(hObject, eventdata, handles)% hObject handle to edit11 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit12_Callback(hObject, eventdata, handles)% hObject handle to edit12 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit12 as text% str2double(get(hObject,'String')) returns contents of edit12 as a

    double

  • 8/11/2019 Mech Report Initial Sizing Updated

    12/30

  • 8/11/2019 Mech Report Initial Sizing Updated

    13/30

    % hObject handle to edit14 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit15_Callback(hObject, eventdata, handles)% hObject handle to edit15 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit15 as text

    % str2double(get(hObject,'String')) returns contents of edit15 as adouble

    % --- Executes during object creation, after setting all properties.functionedit15_CreateFcn(hObject, eventdata, handles)% hObject handle to edit15 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit16_Callback(hObject, eventdata, handles)% hObject handle to edit16 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit16 as text% str2double(get(hObject,'String')) returns contents of edit16 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit16_CreateFcn(hObject, eventdata, handles)% hObject handle to edit16 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

  • 8/11/2019 Mech Report Initial Sizing Updated

    14/30

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit17_Callback(hObject, eventdata, handles)% hObject handle to edit17 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit17 as text% str2double(get(hObject,'String')) returns contents of edit17 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit17_CreateFcn(hObject, eventdata, handles)% hObject handle to edit17 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit18_Callback(hObject, eventdata, handles)% hObject handle to edit18 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit18 as text% str2double(get(hObject,'String')) returns contents of edit18 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit18_CreateFcn(hObject, eventdata, handles)% hObject handle to edit18 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))

  • 8/11/2019 Mech Report Initial Sizing Updated

    15/30

    set(hObject,'BackgroundColor','white');end

    functionedit19_Callback(hObject, eventdata, handles)

    % hObject handle to edit19 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit19 as text% str2double(get(hObject,'String')) returns contents of edit19 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit19_CreateFcn(hObject, eventdata, handles)% hObject handle to edit19 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB

    % handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit20_Callback(hObject, eventdata, handles)% hObject handle to edit20 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit20 as text% str2double(get(hObject,'String')) returns contents of edit20 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit20_CreateFcn(hObject, eventdata, handles)% hObject handle to edit20 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

  • 8/11/2019 Mech Report Initial Sizing Updated

    16/30

    functionedit21_Callback(hObject, eventdata, handles)% hObject handle to edit21 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit21 as text% str2double(get(hObject,'String')) returns contents of edit21 as adouble

    % --- Executes during object creation, after setting all properties.functionedit21_CreateFcn(hObject, eventdata, handles)% hObject handle to edit21 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.

    ifispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))

    set(hObject,'BackgroundColor','white');end

    functionedit22_Callback(hObject, eventdata, handles)% hObject handle to edit22 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit22 as text

    % str2double(get(hObject,'String')) returns contents of edit22 as adouble

    % --- Executes during object creation, after setting all properties.functionedit22_CreateFcn(hObject, eventdata, handles)% hObject handle to edit22 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit23_Callback(hObject, eventdata, handles)% hObject handle to edit23 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB

  • 8/11/2019 Mech Report Initial Sizing Updated

    17/30

    % handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit23 as text% str2double(get(hObject,'String')) returns contents of edit23 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit23_CreateFcn(hObject, eventdata, handles)% hObject handle to edit23 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit24_Callback(hObject, eventdata, handles)% hObject handle to edit24 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit24 as text% str2double(get(hObject,'String')) returns contents of edit24 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit24_CreateFcn(hObject, eventdata, handles)% hObject handle to edit24 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit25_Callback(hObject, eventdata, handles)% hObject handle to edit25 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit25 as text

  • 8/11/2019 Mech Report Initial Sizing Updated

    18/30

  • 8/11/2019 Mech Report Initial Sizing Updated

    19/30

    % --- Executes during object creation, after setting all properties.functionedit27_CreateFcn(hObject, eventdata, handles)% hObject handle to edit27 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.

    ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit28_Callback(hObject, eventdata, handles)% hObject handle to edit28 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit28 as text% str2double(get(hObject,'String')) returns contents of edit28 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit28_CreateFcn(hObject, eventdata, handles)% hObject handle to edit28 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.

    % See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit29_Callback(hObject, eventdata, handles)% hObject handle to edit29 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit29 as text% str2double(get(hObject,'String')) returns contents of edit29 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit29_CreateFcn(hObject, eventdata, handles)% hObject handle to edit29 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB

  • 8/11/2019 Mech Report Initial Sizing Updated

    20/30

  • 8/11/2019 Mech Report Initial Sizing Updated

    21/30

    ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit32_Callback(hObject, eventdata, handles)% hObject handle to edit32 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit32 as text% str2double(get(hObject,'String')) returns contents of edit32 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit32_CreateFcn(hObject, eventdata, handles)

    % hObject handle to edit32 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit33_Callback(hObject, eventdata, handles)% hObject handle to edit33 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit33 as text% str2double(get(hObject,'String')) returns contents of edit33 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit33_CreateFcn(hObject, eventdata, handles)% hObject handle to edit33 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

  • 8/11/2019 Mech Report Initial Sizing Updated

    22/30

  • 8/11/2019 Mech Report Initial Sizing Updated

    23/30

    % hObject handle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    functionedit44_Callback(hObject, eventdata, handles)% hObject handle to edit44 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit44 as text% str2double(get(hObject,'String')) returns contents of edit44 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit44_CreateFcn(hObject, eventdata, handles)% hObject handle to edit44 (see GCBO)

    % eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

    functionedit45_Callback(hObject, eventdata, handles)% hObject handle to edit45 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit45 as text% str2double(get(hObject,'String')) returns contents of edit45 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit45_CreateFcn(hObject, eventdata, handles)% hObject handle to edit45 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

  • 8/11/2019 Mech Report Initial Sizing Updated

    24/30

    % --- Executes on button press in pushbutton2.functionpushbutton2_Callback(hObject, eventdata, handles)% hObject handle to pushbutton2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    %design parameterstakeoff_distance=str2double(get(handles.edit1,'String'));landing_distance=str2double(get(handles.edit2,'String'));v_stall=str2double(get(handles.edit3,'String'));endurance=str2double(get(handles.edit4,'String'));v_dash=str2double(get(handles.edit5,'String'));wo_payload=str2double(get(handles.edit6,'String'));v_cruise=str2double(get(handles.edit7,'String'));%aero datacl_max=str2double(get(handles.edit8,'String'));alpha=str2double(get(handles.edit44,'String'));cl_max_flapped=str2double(get(handles.edit45,'String'));g=str2double(get(handles.edit9,'String'));cdo=str2double(get(handles.edit10,'String'));rho=str2double(get(handles.edit11,'String'));taper=str2double(get(handles.edit12,'String'));mu_landing=str2double(get(handles.edit13,'String'));mu_takeoff=str2double(get(handles.edit14,'String'));wo_guess=str2double(get(handles.edit15,'String'));load_factor=str2double(get(handles.edit16,'String'));span_efficiency=str2double(get(handles.edit17,'String'));prop_efficiency=str2double(get(handles.edit18,'String'));aspect_ratio=str2double(get(handles.edit19,'String'));%Range parameterswo_min=str2double(get(handles.edit20,'String'));

    wo_max=str2double(get(handles.edit21,'String'));wo_inc=str2double(get(handles.edit22,'String'));pl_min=str2double(get(handles.edit23,'String'));pl_max=str2double(get(handles.edit24,'String'));pl_inc=str2double(get(handles.edit25,'String'));wl_min=str2double(get(handles.edit26,'String'));wl_max=str2double(get(handles.edit27,'String'));wl_inc=str2double(get(handles.edit28,'String'));ar_min=str2double(get(handles.edit29,'String'));ar_max=str2double(get(handles.edit30,'String'));ar_inc=str2double(get(handles.edit31,'String'));%Fuel fractionbeta_takeoff=str2double(get(handles.edit32,'String'));beta_climb=str2double(get(handles.edit33,'String'));beta_landing=str2double(get(handles.edit34,'String'));beta_descent=str2double(get(handles.edit35,'String'));

    fuel_fraction=0.3;length1=((wo_max-wo_min)/wo_inc)+1; % No. of different Wolength2=((pl_max-pl_min)/pl_inc)+1; % No. of different PLwo_matrix=zeros(2,length2,length1);wo_temp=wo_min;fori=1:length1

  • 8/11/2019 Mech Report Initial Sizing Updated

    25/30

    wo(i)=wo_temp;wo_temp=wo_temp+wo_inc;pl_temp=pl_min;forj=1:length2powerloading(j)=pl_temp;pl_temp=pl_temp+pl_inc;K=(0.6*power(aspect_ratio,0.05)*power(powerloading(j),0.1)*power(v_dash,0.17)

    );k=(-K*power(wo(i),0.85))/(wo_payload+(wo(i)*(fuel_fraction-1)));wingloading(j)=power(k,20);endint2dmatrix=[powerloading;wingloading];wo_matrix(:,:,i)=int2dmatrix;endfigure;fori=1:length1powerloading=wo_matrix(1,:,i);wingloading=wo_matrix(2,:,i);ctr=1;flag_wl=0;

    forj=1:length2if(wingloading(j)=2)powerloading2(ctr)=powerloading(j);wingloading2(ctr)=wingloading(j);ctr=ctr+1;flag_wl=1;endendctr=ctr-1;wingloadingwo(i)wo_string=num2str(wo(i));grid on;ifflag_wl==1plot(wingloading2(1:ctr),powerloading2(1:ctr));set(gca,'YTick',pl_min:pl_inc:pl_max);text(min(wingloading2),min(powerloading2),wo_string);xlabel('Wingloading');ylabel('Powerloading');title('PL vs WL at different Wo');hold on;endend% Stage 2: Constraints%Takeoff constraintq_takeoff=0.5*rho*1.2*1.2*v_stall*v_stall;wingloading_t=wl_min:wl_inc:wl_max;

    count=length(wingloading_t);fori=1:countthrustloading_t(1,i)=((1.44*beta_takeoff*beta_takeoff)/(alpha*rho*cl_max_flap

    ped*g*takeoff_distance))*wingloading_t(1,i);thrustloading_t(1,i)=thrustloading_t(1,i)+((cdo*q_takeoff)/(beta_takeoff*wing

    loading_t(1,i)))+mu_takeoff;endpowerloading_t=thrustloading_t*1.2*v_stall;powerloading_t=powerloading_t/(550*prop_efficiency);plot(wingloading_t,powerloading_t,'r','linewidth',3);

  • 8/11/2019 Mech Report Initial Sizing Updated

    26/30

    hold on;% Landing Constraintwingloading_d=((landing_distance*rho*cl_max_flapped*g*mu_landing)/(1.68*0.75)

    );w_by_s_landing=wingloading_d(1,1);plot([w_by_s_landing w_by_s_landing],[0 pl_max],'g','linewidth',3);text(w_by_s_landing,pl_max,'Landing');hold on;% Stall Constraintwingloading_s=0.5*rho*v_stall*v_stall*cl_max;w_by_s_stall=wingloading_s(1,1);plot([w_by_s_stall w_by_s_stall],[0 pl_max],'y','linewidth',3);text(w_by_s_stall,pl_max,'Stall');hold on;%load factorq_turn=0.5*rho*v_cruise*v_cruise;wingloading_l=wl_min:wl_inc:wl_max;count=length(wingloading_l);fori=1:countthrustloading_l(1,i)= ((q_turn*cdo/wingloading_l(1,i)) +

    (wingloading_l(1,i)*load_factor*load_factor/q_turn/pi/aspect_ratio/span_efficiency));endpowerloading_l=thrustloading_l*v_cruise;powerloading_l=powerloading_l/(550*prop_efficiency);plot(wingloading_l,powerloading_l,'c','linewidth',3);%text(wingloading_1, powerloading_1, 'load factor');hold on;

    functionedit48_Callback(hObject, eventdata, handles)% hObject handle to edit48 (see GCBO)

    % eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit48 as text% str2double(get(hObject,'String')) returns contents of edit48 as a

    double

    % --- Executes during object creation, after setting all properties.functionedit48_CreateFcn(hObject, eventdata, handles)% hObject handle to edit48 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.ifispc && isequal(get(hObject,'BackgroundColor'),

    get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');

    end

  • 8/11/2019 Mech Report Initial Sizing Updated

    27/30

    functionedit49_Callback(hObject, eventdata, handles)% hObject handle to edit49 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)

    % Hints: get(hObject,'String') returns contents of edit49 as text% str2double(get(hObject,'String')) returns contents of edit49 as adouble

    % --- Executes during object creation, after setting all properties.functionedit49_CreateFcn(hObject, eventdata, handles)% hObject handle to edit49 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called

    % Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.

    ifispc && isequal(get(hObject,'BackgroundColor'),get(0,'defaultUicontrolBackgroundColor'))

    set(hObject,'BackgroundColor','white');end

    % --- Executes on button press in pushbutton3.functionpushbutton3_Callback(hObject, eventdata, handles)% hObject handle to pushbutton3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%design parameterstakeoff_distance=str2double(get(handles.edit1,'String'));

    landing_distance=str2double(get(handles.edit2,'String'));v_stall=str2double(get(handles.edit3,'String'));endurance=str2double(get(handles.edit4,'String'));v_dash=str2double(get(handles.edit5,'String'));wo_payload=str2double(get(handles.edit6,'String'));v_cruise=str2double(get(handles.edit7,'String'));%aero datacl_max=str2double(get(handles.edit8,'String'));alpha=str2double(get(handles.edit44,'String'));cl_max_flapped=str2double(get(handles.edit45,'String'));g=str2double(get(handles.edit9,'String'));cdo=str2double(get(handles.edit10,'String'));rho=str2double(get(handles.edit11,'String'));taper=str2double(get(handles.edit12,'String'));mu_landing=str2double(get(handles.edit13,'String'));mu_takeoff=str2double(get(handles.edit14,'String'));wo_guess=str2double(get(handles.edit15,'String'));load_factor=str2double(get(handles.edit16,'String'));span_efficiency=str2double(get(handles.edit17,'String'));prop_efficiency=str2double(get(handles.edit18,'String'));aspect_ratio=str2double(get(handles.edit19,'String'));%Range parameterswo_min=str2double(get(handles.edit20,'String'));

  • 8/11/2019 Mech Report Initial Sizing Updated

    28/30

    wo_max=str2double(get(handles.edit21,'String'));wo_inc=str2double(get(handles.edit22,'String'));pl_min=str2double(get(handles.edit23,'String'));pl_max=str2double(get(handles.edit24,'String'));pl_inc=str2double(get(handles.edit25,'String'));wl_min=str2double(get(handles.edit26,'String'));wl_max=str2double(get(handles.edit27,'String'));wl_inc=str2double(get(handles.edit28,'String'));ar_min=str2double(get(handles.edit29,'String'));ar_max=str2double(get(handles.edit30,'String'));ar_inc=str2double(get(handles.edit31,'String'));%Fuel fractionbeta_takeoff=str2double(get(handles.edit32,'String'));beta_climb=str2double(get(handles.edit33,'String'));beta_landing=str2double(get(handles.edit34,'String'));beta_descent=str2double(get(handles.edit35,'String'));

    fuel_fraction=0.3;

    p_by_w_selected=str2double(get(handles.edit48, 'string'));w_by_s_selected=str2double(get(handles.edit49,'string'));% Empty weight fraction and Wo_actualdiff=100;wo_temp=wo_guess;whileabs(diff)>0.001empty_weight_fraction=(0.6*power(wo_temp,-

    0.15)*power(aspect_ratio,0.05)*power(p_by_w_selected,0.1)*power(v_dash,0.17)*

    power(w_by_s_selected,-0.05));wo_actual=wo_payload/(1-empty_weight_fraction-fuel_fraction);diff=wo_actual-wo_temp;wo_temp=wo_actual-0.5*diff;end

    w0=num2str(wo_actual);set(handles.text49, 'string', w0);

  • 8/11/2019 Mech Report Initial Sizing Updated

    29/30

  • 8/11/2019 Mech Report Initial Sizing Updated

    30/30