Files
3D_EDFM_SIM-X/gui_support/app/createEDFMSimulatorGuideLayout.m
T

758 lines
56 KiB
Matlab

function handles = createEDFMSimulatorGuideLayout()
%CREATEEDFMSIMULATORGUIDELAYOUT Build the GUIDE-compatible EDFM GUI layout.
% This file is generated from gui_support/app/context.txt to preserve the App Designer layout.
fig = figure('Visible', 'off', 'Name', 'EDFM Simulator', 'NumberTitle', 'off', ...
'MenuBar', 'none', 'ToolBar', 'none', 'Resize', 'on', 'Units', 'pixels', ...
'Position', [100 100 1275 807], 'Tag', 'UIFigure');
handles = struct();
handles.UIFigure = fig;
handles.TemplateDropDown = uicontrol('Parent', fig, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [18 774 120 22], ...
'String', {'', ''}, 'Value', 1, 'Tag', 'TemplateDropDown');
setGuidePopupValue(handles.TemplateDropDown, '');
handles.LoadTemplateButton = uicontrol('Parent', fig, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [177 774 94 23], ...
'String', 'Load Template', 'Tag', 'LoadTemplateButton');
handles.ImportConfigButton = uicontrol('Parent', fig, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [405 774 87 23], ...
'String', 'Import Config', 'Tag', 'ImportConfigButton');
handles.ExportConfigButton = uicontrol('Parent', fig, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [524 774 88 23], ...
'String', 'Export Config', 'Tag', 'ExportConfigButton');
handles.RunButton = uicontrol('Parent', fig, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [642 774 70 23], ...
'String', 'Run', 'Tag', 'RunButton');
handles.ImportResultButton = uicontrol('Parent', fig, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [754 774 86 23], ...
'String', 'Import Result', 'Tag', 'ImportResultButton');
handles.ExportResultButton = uicontrol('Parent', fig, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [875 774 87 23], ...
'String', 'Export Result', 'Tag', 'ExportResultButton');
handles.StatusLabel = uicontrol('Parent', fig, 'Style', 'text', 'Units', 'pixels', 'Position', [984 774 251 22], ...
'String', 'Status', 'HorizontalAlignment', 'left', 'Tag', 'StatusLabel');
handles.TabGroup = uitabgroup('Parent', fig, 'Units', 'pixels', 'Position', [8 46 1247 706], 'Tag', 'TabGroup');
handles.ModelTab = uitab('Parent', handles.TabGroup, 'Title', 'Model', 'Tag', 'ModelTab');
handles.GridModelDropDownLabel = uicontrol('Parent', handles.ModelTab, 'Style', 'text', 'Units', 'pixels', 'Position', [62 630 60 22], ...
'String', 'GridModel', 'HorizontalAlignment', 'right', 'Tag', 'GridModelDropDownLabel');
handles.ModelGridModelDropDown = uicontrol('Parent', handles.ModelTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [137 630 100 22], ...
'String', {'1', '2', '', ''}, 'Value', 1, 'Tag', 'ModelGridModelDropDown');
setGuidePopupValue(handles.ModelGridModelDropDown, '');
handles.FlowModelDropDownLabel = uicontrol('Parent', handles.ModelTab, 'Style', 'text', 'Units', 'pixels', 'Position', [67 566 63 22], ...
'String', 'FlowModel', 'HorizontalAlignment', 'right', 'Tag', 'FlowModelDropDownLabel');
handles.ModelFlowModelDropDown = uicontrol('Parent', handles.ModelTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [145 566 100 22], ...
'String', {'1', '2', '3'}, 'Value', 1, 'Tag', 'ModelFlowModelDropDown');
setGuidePopupValue(handles.ModelFlowModelDropDown, '1');
handles.GridTab = uitab('Parent', handles.TabGroup, 'Title', 'Grid', 'Tag', 'GridTab');
handles.DxTextAreaLabel = uicontrol('Parent', handles.GridTab, 'Style', 'text', 'Units', 'pixels', 'Position', [49 643 25 22], ...
'String', 'Dx', 'HorizontalAlignment', 'right', 'Tag', 'DxTextAreaLabel');
handles.GridDxTextArea = uicontrol('Parent', handles.GridTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [89 566 263 101], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'GridDxTextArea');
handles.DyTextAreaLabel = uicontrol('Parent', handles.GridTab, 'Style', 'text', 'Units', 'pixels', 'Position', [49 529 25 22], ...
'String', 'Dy', 'HorizontalAlignment', 'right', 'Tag', 'DyTextAreaLabel');
handles.GridDyTextArea = uicontrol('Parent', handles.GridTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [89 455 263 98], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'GridDyTextArea');
handles.DzTextAreaLabel = uicontrol('Parent', handles.GridTab, 'Style', 'text', 'Units', 'pixels', 'Position', [52 400 25 22], ...
'String', 'Dz', 'HorizontalAlignment', 'right', 'Tag', 'DzTextAreaLabel');
handles.GridDzTextArea = uicontrol('Parent', handles.GridTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [92 300 263 124], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'GridDzTextArea');
handles.NTGTextAreaLabel = uicontrol('Parent', handles.GridTab, 'Style', 'text', 'Units', 'pixels', 'Position', [48 231 30 22], ...
'String', 'NTG', 'HorizontalAlignment', 'right', 'Tag', 'NTGTextAreaLabel');
handles.GridNTGTextArea = uicontrol('Parent', handles.GridTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [93 147 267 108], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'GridNTGTextArea');
handles.FractureTab = uitab('Parent', handles.TabGroup, 'Title', 'Fracture', 'Tag', 'FractureTab');
handles.FractureInputTextAreaLabel = uicontrol('Parent', handles.FractureTab, 'Style', 'text', 'Units', 'pixels', 'Position', [59 571 76 22], ...
'String', 'FractureInput', 'HorizontalAlignment', 'right', 'Tag', 'FractureInputTextAreaLabel');
handles.FractureInputTextArea = uicontrol('Parent', handles.FractureTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [150 497 241 98], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'FractureInputTextArea');
handles.DiscretizationTab = uitab('Parent', handles.TabGroup, 'Title', 'Discretization', 'Tag', 'DiscretizationTab');
handles.TabGroup3 = uitabgroup('Parent', handles.DiscretizationTab, 'Units', 'pixels', 'Position', [48 37 1156 430], 'Tag', 'TabGroup3');
handles.SPTab = uitab('Parent', handles.TabGroup3, 'Title', 'SP', 'Tag', 'SPTab');
handles.BoundaryTextAreaLabel = uicontrol('Parent', handles.SPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [30 360 56 22], ...
'String', 'Boundary', 'HorizontalAlignment', 'right', 'Tag', 'BoundaryTextAreaLabel');
handles.SPBoundaryTextArea = uicontrol('Parent', handles.SPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [101 307 150 77], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'SPBoundaryTextArea');
handles.InvalidLayerTextAreaLabel = uicontrol('Parent', handles.SPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [19 265 70 22], ...
'String', 'InvalidLayer', 'HorizontalAlignment', 'right', 'Tag', 'InvalidLayerTextAreaLabel');
handles.SPInvalidLayerTextArea = uicontrol('Parent', handles.SPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [104 211 150 78], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'SPInvalidLayerTextArea');
handles.MatrixKxTextAreaLabel = uicontrol('Parent', handles.SPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [301 355 52 22], ...
'String', 'MatrixKx', 'HorizontalAlignment', 'right', 'Tag', 'MatrixKxTextAreaLabel');
handles.SPMatrixKxTextArea = uicontrol('Parent', handles.SPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [368 319 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'SPMatrixKxTextArea');
handles.MatrixKyTextAreaLabel = uicontrol('Parent', handles.SPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [302 259 52 22], ...
'String', 'MatrixKy', 'HorizontalAlignment', 'right', 'Tag', 'MatrixKyTextAreaLabel');
handles.SPMatrixKyTextArea = uicontrol('Parent', handles.SPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [369 223 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'SPMatrixKyTextArea');
handles.MatrixKzTextAreaLabel = uicontrol('Parent', handles.SPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [301 157 52 22], ...
'String', 'MatrixKz', 'HorizontalAlignment', 'right', 'Tag', 'MatrixKzTextAreaLabel');
handles.SPMatrixKzTextArea = uicontrol('Parent', handles.SPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [368 121 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'SPMatrixKzTextArea');
handles.MatrixPoriTextAreaLabel = uicontrol('Parent', handles.SPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [294 51 59 22], ...
'String', 'MatrixPori', 'HorizontalAlignment', 'right', 'Tag', 'MatrixPoriTextAreaLabel');
handles.SPMatrixPoriTextArea = uicontrol('Parent', handles.SPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [368 15 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'SPMatrixPoriTextArea');
handles.RockDensityEditFieldLabel = uicontrol('Parent', handles.SPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [16 165 72 22], ...
'String', 'RockDensity', 'HorizontalAlignment', 'right', 'Tag', 'RockDensityEditFieldLabel');
handles.SPRockDensityEditField = uicontrol('Parent', handles.SPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [103 165 144 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'SPRockDensityEditField');
handles.DPTab = uitab('Parent', handles.TabGroup3, 'Title', 'DP', 'Tag', 'DPTab');
handles.kxTextAreaLabel = uicontrol('Parent', handles.DPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [66 365 25 22], ...
'String', 'kx', 'HorizontalAlignment', 'right', 'Tag', 'kxTextAreaLabel');
handles.DPFractureLayerKxTextArea = uicontrol('Parent', handles.DPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [106 329 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DPFractureLayerKxTextArea');
handles.kyTextAreaLabel = uicontrol('Parent', handles.DPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [68 289 25 22], ...
'String', 'ky', 'HorizontalAlignment', 'right', 'Tag', 'kyTextAreaLabel');
handles.DPFractureLayerKyTextArea = uicontrol('Parent', handles.DPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [108 253 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DPFractureLayerKyTextArea');
handles.kzTextAreaLabel = uicontrol('Parent', handles.DPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [76 207 25 22], ...
'String', 'kz', 'HorizontalAlignment', 'right', 'Tag', 'kzTextAreaLabel');
handles.DPFractureLayerKzTextArea = uicontrol('Parent', handles.DPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [116 171 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DPFractureLayerKzTextArea');
handles.kx_matrixLayerTextAreaLabel = uicontrol('Parent', handles.DPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [701 190 86 22], ...
'String', 'kx_matrixLayer', 'HorizontalAlignment', 'right', 'Tag', 'kx_matrixLayerTextAreaLabel');
handles.DPMatrixLayerKxTextArea = uicontrol('Parent', handles.DPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [802 154 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DPMatrixLayerKxTextArea');
handles.ky_matrixLayerTextAreaLabel = uicontrol('Parent', handles.DPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [341 173 86 22], ...
'String', 'ky_matrixLayer', 'HorizontalAlignment', 'right', 'Tag', 'ky_matrixLayerTextAreaLabel');
handles.DPMatrixLayerKyTextArea = uicontrol('Parent', handles.DPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [442 137 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DPMatrixLayerKyTextArea');
handles.kz_matrixLayerTextAreaLabel = uicontrol('Parent', handles.DPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [349 260 86 22], ...
'String', 'kz_matrixLayer', 'HorizontalAlignment', 'right', 'Tag', 'kz_matrixLayerTextAreaLabel');
handles.DPMatrixLayerKzTextArea = uicontrol('Parent', handles.DPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [450 224 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DPMatrixLayerKzTextArea');
handles.pori_matrixLayerTextAreaLabel = uicontrol('Parent', handles.DPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [618 283 94 22], ...
'String', 'pori_matrixLayer', 'HorizontalAlignment', 'right', 'Tag', 'pori_matrixLayerTextAreaLabel');
handles.DPMatrixLayerPoriTextArea = uicontrol('Parent', handles.DPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [727 247 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DPMatrixLayerPoriTextArea');
handles.sigmaTextAreaLabel = uicontrol('Parent', handles.DPTab, 'Style', 'text', 'Units', 'pixels', 'Position', [373 366 37 22], ...
'String', 'sigma', 'HorizontalAlignment', 'right', 'Tag', 'sigmaTextAreaLabel');
handles.DPShapeFactorTextArea = uicontrol('Parent', handles.DPTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [425 330 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DPShapeFactorTextArea');
handles.CommonKfLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [83 655 65 22], ...
'String', 'CommonKf', 'HorizontalAlignment', 'right', 'Tag', 'CommonKfLabel');
handles.CommonKfTextArea = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [163 619 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'CommonKfTextArea');
handles.CommonWfLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [333 653 68 22], ...
'String', 'CommonWf', 'HorizontalAlignment', 'right', 'Tag', 'CommonWfLabel');
handles.CommonWfTextArea = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [416 617 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'CommonWfTextArea');
handles.CommonPorfLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [594 655 76 22], ...
'String', 'CommonPorf', 'HorizontalAlignment', 'right', 'Tag', 'CommonPorfLabel');
handles.CommonPorfTextArea = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [685 619 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'CommonPorfTextArea');
handles.CommonCporfLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [844 651 83 22], ...
'String', 'CommonCporf', 'HorizontalAlignment', 'right', 'Tag', 'CommonCporfLabel');
handles.CommonCporfEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [942 651 142 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonCporfEditField');
handles.CommonPrporfLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [843 622 86 22], ...
'String', 'CommonPrporf', 'HorizontalAlignment', 'right', 'Tag', 'CommonPrporfLabel');
handles.CommonPrporfEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [944 622 140 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonPrporfEditField');
handles.CommonStressFractureLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [19 588 132 22], ...
'String', 'CommonStressFracture', 'HorizontalAlignment', 'right', 'Tag', 'CommonStressFractureLabel');
handles.CommonStressFractureEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [166 588 138 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonStressFractureEditField');
handles.CommonStressMatrixLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [326 580 120 22], ...
'String', 'CommonStressMatrix', 'HorizontalAlignment', 'right', 'Tag', 'CommonStressMatrixLabel');
handles.CommonStressMatrixEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [461 580 142 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonStressMatrixEditField');
handles.CommonStressRefPressureLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [666 580 154 22], ...
'String', 'CommonStressRefPressure', 'HorizontalAlignment', 'right', 'Tag', 'CommonStressRefPressureLabel');
handles.CommonStressRefPressureEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [835 580 129 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonStressRefPressureEditField');
handles.CommonRptLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [53 542 72 22], ...
'String', 'CommonRpt', 'HorizontalAlignment', 'right', 'Tag', 'CommonRptLabel');
handles.CommonRptEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [140 542 170 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonRptEditField');
handles.CommonCfLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [317 545 66 22], ...
'String', 'CommonCf', 'HorizontalAlignment', 'right', 'Tag', 'CommonCfLabel');
handles.CommonCfEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [398 545 172 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonCfEditField');
handles.CommonCaLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [691 542 69 22], ...
'String', 'CommonCa', 'HorizontalAlignment', 'right', 'Tag', 'CommonCaLabel');
handles.CommonCaEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [775 542 165 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonCaEditField');
handles.CommonPrporLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [58 503 83 22], ...
'String', 'CommonPrpor', 'HorizontalAlignment', 'right', 'Tag', 'CommonPrporLabel');
handles.CommonPrporEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [156 503 148 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonPrporEditField');
handles.CommonCporLabel = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'text', 'Units', 'pixels', 'Position', [325 502 80 22], ...
'String', 'CommonCpor', 'HorizontalAlignment', 'right', 'Tag', 'CommonCporLabel');
handles.CommonCporEditField = uicontrol('Parent', handles.DiscretizationTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [420 502 150 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'CommonCporEditField');
handles.FlowTab = uitab('Parent', handles.TabGroup, 'Title', 'Flow', 'Tag', 'FlowTab');
handles.TabGroup2 = uitabgroup('Parent', handles.FlowTab, 'Units', 'pixels', 'Position', [54 12 1120 267], 'Tag', 'TabGroup2');
handles.GasWaterTab = uitab('Parent', handles.TabGroup2, 'Title', 'GasWater', 'Tag', 'GasWaterTab');
handles.ifpcglEditFieldLabel = uicontrol('Parent', handles.GasWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [37 197 33 22], ...
'String', 'ifpcgl', 'HorizontalAlignment', 'right', 'Tag', 'ifpcglEditFieldLabel');
handles.GWifpcglEditField = uicontrol('Parent', handles.GasWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [85 197 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'GWifpcglEditField');
handles.RPGWTextAreaLabel = uicontrol('Parent', handles.GasWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [21 148 42 22], ...
'String', 'RPGW', 'HorizontalAlignment', 'right', 'Tag', 'RPGWTextAreaLabel');
handles.GWRPGWTextArea = uicontrol('Parent', handles.GasWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [78 112 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'GWRPGWTextArea');
handles.PRFTextAreaLabel = uicontrol('Parent', handles.GasWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [43 71 29 22], ...
'String', 'PRF', 'HorizontalAlignment', 'right', 'Tag', 'PRFTextAreaLabel');
handles.GWPRFTextArea = uicontrol('Parent', handles.GasWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [87 35 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'GWPRFTextArea');
handles.OilWaterTab = uitab('Parent', handles.TabGroup2, 'Title', 'OilWater', 'Tag', 'OilWaterTab');
handles.density_o_scEditFieldLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [242 199 75 22], ...
'String', 'density_o_sc', 'HorizontalAlignment', 'right', 'Tag', 'density_o_scEditFieldLabel');
handles.OWdensity_o_scEditField = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [332 199 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'OWdensity_o_scEditField');
handles.proEditFieldLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [255 168 25 22], ...
'String', 'pro', 'HorizontalAlignment', 'right', 'Tag', 'proEditFieldLabel');
handles.OWproEditField = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [295 168 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'OWproEditField');
handles.BoiEditFieldLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [254 132 25 22], ...
'String', 'Boi', 'HorizontalAlignment', 'right', 'Tag', 'BoiEditFieldLabel');
handles.OWBoiEditField = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [294 132 112 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'OWBoiEditField');
handles.coEditFieldLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [248 94 25 22], ...
'String', 'co', 'HorizontalAlignment', 'right', 'Tag', 'coEditFieldLabel');
handles.OWcoEditField = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [288 94 111 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'OWcoEditField');
handles.voiEditFieldLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [266 60 25 22], ...
'String', 'voi', 'HorizontalAlignment', 'right', 'Tag', 'voiEditFieldLabel');
handles.OWvoiEditField = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [306 60 110 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'OWvoiEditField');
handles.cvoEditFieldLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [462 194 25 22], ...
'String', 'cvo', 'HorizontalAlignment', 'right', 'Tag', 'cvoEditFieldLabel');
handles.OWcvoEditField = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [502 194 112 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'OWcvoEditField');
handles.ifpcowEditFieldLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [27 123 39 22], ...
'String', 'ifpcow', 'HorizontalAlignment', 'right', 'Tag', 'ifpcowEditFieldLabel');
handles.OWifpcowEditField = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [81 123 120 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'OWifpcowEditField');
handles.PRMTextAreaLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [470 148 32 22], ...
'String', 'PRM', 'HorizontalAlignment', 'right', 'Tag', 'PRMTextAreaLabel');
handles.OWPRMTextArea = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [508 112 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'OWPRMTextArea');
handles.PRFTextAreaLabel_2 = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [18 82 29 22], ...
'String', 'PRF', 'HorizontalAlignment', 'right', 'Tag', 'PRFTextAreaLabel_2');
handles.OWPRFTextArea = uicontrol('Parent', handles.OilWaterTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [62 46 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'OWPRFTextArea');
handles.oil_modelLabel = uicontrol('Parent', handles.OilWaterTab, 'Style', 'text', 'Units', 'pixels', 'Position', [50 205 56 22], ...
'String', 'oil_model', 'HorizontalAlignment', 'right', 'Tag', 'oil_modelLabel');
handles.OWoil_modelDropDown = uicontrol('Parent', handles.OilWaterTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [121 205 100 22], ...
'String', {''}, 'Value', 1, 'Tag', 'OWoil_modelDropDown');
setGuidePopupValue(handles.OWoil_modelDropDown, '');
handles.MultiComponentTab = uitab('Parent', handles.TabGroup2, 'Title', 'MultiComponent', 'Tag', 'MultiComponentTab');
handles.cs_NcTextAreaLabel = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [16 191 38 22], ...
'String', 'cs_Nc', 'HorizontalAlignment', 'right', 'Tag', 'cs_NcTextAreaLabel');
handles.MCcs_NcTextArea = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [68 156 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'MCcs_NcTextArea');
handles.kr_nosurfTextAreaLabel = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [17 121 55 22], ...
'String', 'kr_nosurf', 'HorizontalAlignment', 'right', 'Tag', 'kr_nosurfTextAreaLabel');
handles.MCkr_nosurfTextArea = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [86 86 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'MCkr_nosurfTextArea');
handles.kr_surfTextAreaLabel = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [11 44 42 22], ...
'String', 'kr_surf', 'HorizontalAlignment', 'right', 'Tag', 'kr_surfTextAreaLabel');
handles.MCkr_surfTextArea = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [67 9 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'MCkr_surfTextArea');
handles.PCTextAreaLabel = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [863 189 25 22], ...
'String', 'PC', 'HorizontalAlignment', 'right', 'Tag', 'PCTextAreaLabel');
handles.MCPCTextArea = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [903 153 150 60], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'MCPCTextArea');
handles.cs_Nc_fractureTextAreaLabel = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [258 213 86 22], ...
'String', 'cs_Nc_fracture', 'HorizontalAlignment', 'right', 'Tag', 'cs_Nc_fractureTextAreaLabel');
handles.MCcs_Nc_fractureTextArea = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [359 183 150 54], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'MCcs_Nc_fractureTextArea');
handles.kr_nosurf_fractureTextAreaLabel = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [244 157 102 22], ...
'String', 'kr_nosurf_fracture', 'HorizontalAlignment', 'right', 'Tag', 'kr_nosurf_fractureTextAreaLabel');
handles.MCkr_nosurf_fractureTextArea = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [361 126 150 55], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'MCkr_nosurf_fractureTextArea');
handles.kr_surf_fractureTextAreaLabel = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [254 94 89 22], ...
'String', 'kr_surf_fracture', 'HorizontalAlignment', 'right', 'Tag', 'kr_surf_fractureTextAreaLabel');
handles.MCkr_surf_fractureTextArea = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [358 66 150 52], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'MCkr_surf_fractureTextArea');
handles.PC_fractureTextAreaLabel = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [271 33 69 22], ...
'String', 'PC_fracture', 'HorizontalAlignment', 'right', 'Tag', 'PC_fractureTextAreaLabel');
handles.MCPC_fractureTextArea = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [355 5 150 52], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'MCPC_fractureTextArea');
handles.ifpcglEditFieldLabel_2 = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [545 112 33 22], ...
'String', 'ifpcgl', 'HorizontalAlignment', 'right', 'Tag', 'ifpcglEditFieldLabel_2');
handles.MCifpcglEditField = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [593 112 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'MCifpcglEditField');
handles.stress_factor_fractureEditFieldLabel_2 = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [541 197 121 22], ...
'String', 'stress_factor_fracture', 'HorizontalAlignment', 'right', 'Tag', 'stress_factor_fractureEditFieldLabel_2');
handles.MCstress_factor_fractureEditField = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [677 197 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'MCstress_factor_fractureEditField');
handles.stress_factor_matrixEditFieldLabel_2 = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [554 168 113 22], ...
'String', 'stress_factor_matrix', 'HorizontalAlignment', 'right', 'Tag', 'stress_factor_matrixEditFieldLabel_2');
handles.MCstress_factor_matrixEditField = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [682 168 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'MCstress_factor_matrixEditField');
handles.stress_factor_ref_pressureEditFieldLabel_2 = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'text', 'Units', 'pixels', 'Position', [514 142 148 22], ...
'String', 'stress_factor_ref_pressure', 'HorizontalAlignment', 'right', 'Tag', 'stress_factor_ref_pressureEditFieldLabel_2');
handles.MCstress_factor_ref_pressureEditField = uicontrol('Parent', handles.MultiComponentTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [677 142 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'MCstress_factor_ref_pressureEditField');
handles.InitStatusLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [87 645 167 22], ...
'String', 'InitStatus', 'HorizontalAlignment', 'left', 'Tag', 'InitStatusLabel');
handles.InitialPressureEditFieldLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [58 607 81 22], ...
'String', 'InitialPressure', 'HorizontalAlignment', 'right', 'Tag', 'InitialPressureEditFieldLabel');
handles.InitialPressureEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [154 607 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'InitialPressureEditField');
handles.InitialSwEditFieldLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [334 609 50 22], ...
'String', 'InitialSw', 'HorizontalAlignment', 'right', 'Tag', 'InitialSwEditFieldLabel');
handles.InitialSwEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [399 609 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'InitialSwEditField');
handles.InitialCsEditFieldLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [567 609 48 22], ...
'String', 'InitialCs', 'HorizontalAlignment', 'right', 'Tag', 'InitialCsEditFieldLabel');
handles.InitialCsEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [630 609 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'InitialCsEditField');
handles.InitialCbEditFieldLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [806 609 48 22], ...
'String', 'InitialCb', 'HorizontalAlignment', 'right', 'Tag', 'InitialCbEditFieldLabel');
handles.InitialCbEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [869 609 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'InitialCbEditField');
handles.DensityWScLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [40 529 70 22], ...
'String', 'DensityWSc', 'HorizontalAlignment', 'right', 'Tag', 'DensityWScLabel');
handles.FlowCommonDensityWScEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [125 529 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonDensityWScEditField');
handles.GasLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [84 503 27 22], ...
'String', 'Gas', 'HorizontalAlignment', 'left', 'Tag', 'GasLabel');
handles.PrwLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [247 531 26 22], ...
'String', 'Prw', 'HorizontalAlignment', 'right', 'Tag', 'PrwLabel');
handles.FlowCommonPrwEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [288 531 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonPrwEditField');
handles.BwiLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [423 529 25 22], ...
'String', 'Bwi', 'HorizontalAlignment', 'right', 'Tag', 'BwiLabel');
handles.FlowCommonBwiEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [463 529 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonBwiEditField');
handles.CwLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [582 529 25 22], ...
'String', 'Cw', 'HorizontalAlignment', 'right', 'Tag', 'CwLabel');
handles.FlowCommonCwEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [622 529 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonCwEditField');
handles.VwiLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [737 529 25 22], ...
'String', 'Vwi', 'HorizontalAlignment', 'right', 'Tag', 'VwiLabel');
handles.FlowCommonVwiEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [777 529 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonVwiEditField');
handles.CvwLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [896 529 28 22], ...
'String', 'Cvw', 'HorizontalAlignment', 'right', 'Tag', 'CvwLabel');
handles.FlowCommonCvwEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [939 529 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonCvwEditField');
handles.PGradThresholdLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [1037 529 93 22], ...
'String', 'PGradThreshold', 'HorizontalAlignment', 'right', 'Tag', 'PGradThresholdLabel');
handles.FlowCommonPGradThresholdEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [1145 529 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonPGradThresholdEditField');
handles.WaterLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [78 565 37 22], ...
'String', 'Water', 'HorizontalAlignment', 'left', 'Tag', 'WaterLabel');
handles.DensityGScLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [38 476 68 22], ...
'String', 'DensityGSc', 'HorizontalAlignment', 'right', 'Tag', 'DensityGScLabel');
handles.FlowCommonDensityGScEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [121 476 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonDensityGScEditField');
handles.GasPrgLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [244 476 46 22], ...
'String', 'GasPrg', 'HorizontalAlignment', 'right', 'Tag', 'GasPrgLabel');
handles.FlowCommonGasPrgEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [305 476 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasPrgEditField');
handles.GasBgiLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [418 476 44 22], ...
'String', 'GasBgi', 'HorizontalAlignment', 'right', 'Tag', 'GasBgiLabel');
handles.FlowCommonGasBgiEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [477 476 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasBgiEditField');
handles.GasCgLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [604 476 42 22], ...
'String', 'GasCg', 'HorizontalAlignment', 'right', 'Tag', 'GasCgLabel');
handles.FlowCommonGasCgEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [661 476 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasCgEditField');
handles.GasVgiLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [787 476 44 22], ...
'String', 'GasVgi', 'HorizontalAlignment', 'right', 'Tag', 'GasVgiLabel');
handles.FlowCommonGasVgiEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [846 476 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasVgiEditField');
handles.GasCvgLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [964 476 48 22], ...
'String', 'GasCvg', 'HorizontalAlignment', 'right', 'Tag', 'GasCvgLabel');
handles.FlowCommonGasCvgEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [1027 476 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasCvgEditField');
handles.GasVLLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [55 442 42 22], ...
'String', 'GasVL', 'HorizontalAlignment', 'right', 'Tag', 'GasVLLabel');
handles.FlowCommonGasVLEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [112 442 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasVLEditField');
handles.GasPLLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [246 442 42 22], ...
'String', 'GasPL', 'HorizontalAlignment', 'right', 'Tag', 'GasPLLabel');
handles.FlowCommonGasPLEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [303 442 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasPLEditField');
handles.GasKnLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [431 434 42 22], ...
'String', 'GasKn', 'HorizontalAlignment', 'right', 'Tag', 'GasKnLabel');
handles.FlowCommonGasKnEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [488 434 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasKnEditField');
handles.GasBetaNonDarcyLabel = uicontrol('Parent', handles.FlowTab, 'Style', 'text', 'Units', 'pixels', 'Position', [623 426 105 22], ...
'String', 'GasBetaNonDarcy', 'HorizontalAlignment', 'right', 'Tag', 'GasBetaNonDarcyLabel');
handles.FlowCommonGasBetaNonDarcyEditField = uicontrol('Parent', handles.FlowTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [743 426 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'FlowCommonGasBetaNonDarcyEditField');
handles.WellsTab = uitab('Parent', handles.TabGroup, 'Title', 'Wells', 'Tag', 'WellsTab');
handles.Well1Table = uitable('Parent', handles.WellsTab, 'Units', 'pixels', 'Position', [43 194 446 167], ...
'ColumnName', {'Well1'}, 'RowName', {}, 'ColumnEditable', true, 'Tag', 'Well1Table');
handles.FractureWellLocationTable = uitable('Parent', handles.WellsTab, 'Units', 'pixels', 'Position', [737 520 445 100], ...
'ColumnName', {'FractureWellLocation'}, 'RowName', {}, 'ColumnEditable', true, 'Tag', 'FractureWellLocationTable');
handles.Well2Table = uitable('Parent', handles.WellsTab, 'Units', 'pixels', 'Position', [35 476 594 185], ...
'ColumnName', {'Well2'}, 'RowName', {}, 'ColumnEditable', true, 'Tag', 'Well2Table');
handles.ScheduleTable = uitable('Parent', handles.WellsTab, 'Units', 'pixels', 'Position', [552 176 362 185], ...
'ColumnName', {'Schedule'}, 'RowName', {}, 'ColumnEditable', true, 'Tag', 'ScheduleTable');
handles.TimeTextAreaLabel = uicontrol('Parent', handles.WellsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [949 288 31 22], ...
'String', 'Time', 'HorizontalAlignment', 'right', 'Tag', 'TimeTextAreaLabel');
handles.TimeTextArea = uicontrol('Parent', handles.WellsTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [995 288 181 22], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'TimeTextArea');
handles.DtMinTextAreaLabel = uicontrol('Parent', handles.WellsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [943 240 36 22], ...
'String', 'DtMin', 'HorizontalAlignment', 'right', 'Tag', 'DtMinTextAreaLabel');
handles.DtMinTextArea = uicontrol('Parent', handles.WellsTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [994 240 182 22], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DtMinTextArea');
handles.DtMaxTextAreaLabel = uicontrol('Parent', handles.WellsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [944 184 40 22], ...
'String', 'DtMax', 'HorizontalAlignment', 'right', 'Tag', 'DtMaxTextAreaLabel');
handles.DtMaxTextArea = uicontrol('Parent', handles.WellsTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [999 183 182 24], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'DtMaxTextArea');
handles.AddWell1RowButton = uicontrol('Parent', handles.WellsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [144 128 100 41], ...
'String', 'AddWell1Row', 'Tag', 'AddWell1RowButton');
handles.DeleteWell1RowButton = uicontrol('Parent', handles.WellsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [309 126 103 41], ...
'String', 'DeleteWell1Row', 'Tag', 'DeleteWell1RowButton');
handles.DeleteWell2RowButton = uicontrol('Parent', handles.WellsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [414 425 103 23], ...
'String', 'DeleteWell2Row', 'Tag', 'DeleteWell2RowButton');
handles.AddWell2RowButton = uicontrol('Parent', handles.WellsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [188 427 100 23], ...
'String', 'AddWell2Row', 'Tag', 'AddWell2RowButton');
handles.AddScheduleRowButton = uicontrol('Parent', handles.WellsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [649 123 110 23], ...
'String', 'AddScheduleRow', 'Tag', 'AddScheduleRowButton');
handles.DeleteScheduleRowButton = uicontrol('Parent', handles.WellsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [790 123 124 23], ...
'String', 'DeleteScheduleRow', 'Tag', 'DeleteScheduleRowButton');
handles.DeleteFracLocRowButton = uicontrol('Parent', handles.WellsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [1096 466 117 23], ...
'String', 'DeleteFracLocRow', 'Tag', 'DeleteFracLocRowButton');
handles.AddFracLocRowButton = uicontrol('Parent', handles.WellsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [954 464 104 23], ...
'String', 'AddFracLocRow', 'Tag', 'AddFracLocRowButton');
handles.ScheduleTimeConfigLabel = uicontrol('Parent', handles.WellsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [1003 331 131 30], ...
'String', 'Schedule Time Config', 'HorizontalAlignment', 'left', 'Tag', 'ScheduleTimeConfigLabel');
handles.ConventionalWellsLabel = uicontrol('Parent', handles.WellsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [27 130 108 40], ...
'String', 'Conventional Wells', 'HorizontalAlignment', 'left', 'Tag', 'ConventionalWellsLabel');
handles.FractureWellsLabel = uicontrol('Parent', handles.WellsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [43 428 82 22], ...
'String', 'Fracture Wells', 'HorizontalAlignment', 'left', 'Tag', 'FractureWellsLabel');
handles.ScheduleLabel = uicontrol('Parent', handles.WellsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [555 127 55 22], ...
'String', 'Schedule', 'HorizontalAlignment', 'left', 'Tag', 'ScheduleLabel');
handles.SelectedFractureWellLabel = uicontrol('Parent', handles.WellsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [723 464 126 22], ...
'String', 'Selected Fracture Well', 'HorizontalAlignment', 'right', 'Tag', 'SelectedFractureWellLabel');
handles.SelectedFracWellDropDown = uicontrol('Parent', handles.WellsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [864 464 70 22], ...
'String', {''}, 'Value', 1, 'Tag', 'SelectedFracWellDropDown');
setGuidePopupValue(handles.SelectedFracWellDropDown, '');
handles.SolverRunTab = uitab('Parent', handles.TabGroup, 'Title', 'Solver&Run', 'Tag', 'SolverRunTab');
handles.RunLogTextAreaLabel = uicontrol('Parent', handles.SolverRunTab, 'Style', 'text', 'Units', 'pixels', 'Position', [263 571 47 22], ...
'String', 'RunLog', 'HorizontalAlignment', 'right', 'Tag', 'RunLogTextAreaLabel');
handles.RunLogTextArea = uicontrol('Parent', handles.SolverRunTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [325 150 899 445], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'RunLogTextArea');
handles.RunProgressLabel = uicontrol('Parent', handles.SolverRunTab, 'Style', 'text', 'Units', 'pixels', 'Position', [313 624 209 22], ...
'String', 'RunProgress', 'HorizontalAlignment', 'left', 'Tag', 'RunProgressLabel');
handles.YitaPEditFieldLabel = uicontrol('Parent', handles.SolverRunTab, 'Style', 'text', 'Units', 'pixels', 'Position', [59 565 33 22], ...
'String', 'YitaP', 'HorizontalAlignment', 'right', 'Tag', 'YitaPEditFieldLabel');
handles.YitaPEditField = uicontrol('Parent', handles.SolverRunTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [113 565 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'YitaPEditField');
handles.YitaSEditFieldLabel = uicontrol('Parent', handles.SolverRunTab, 'Style', 'text', 'Units', 'pixels', 'Position', [57 515 33 22], ...
'String', 'YitaS', 'HorizontalAlignment', 'right', 'Tag', 'YitaSEditFieldLabel');
handles.YitaSEditField = uicontrol('Parent', handles.SolverRunTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [113 515 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'YitaSEditField');
handles.OmegaEditFieldLabel = uicontrol('Parent', handles.SolverRunTab, 'Style', 'text', 'Units', 'pixels', 'Position', [53 471 44 22], ...
'String', 'Omega', 'HorizontalAlignment', 'right', 'Tag', 'OmegaEditFieldLabel');
handles.OmegaEditField = uicontrol('Parent', handles.SolverRunTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [113 471 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'OmegaEditField');
handles.NmaxEditFieldLabel = uicontrol('Parent', handles.SolverRunTab, 'Style', 'text', 'Units', 'pixels', 'Position', [53 417 36 22], ...
'String', 'Nmax', 'HorizontalAlignment', 'right', 'Tag', 'NmaxEditFieldLabel');
handles.NmaxEditField = uicontrol('Parent', handles.SolverRunTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [113 418 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'NmaxEditField');
handles.EpsAveEditFieldLabel = uicontrol('Parent', handles.SolverRunTab, 'Style', 'text', 'Units', 'pixels', 'Position', [49 365 46 22], ...
'String', 'EpsAve', 'HorizontalAlignment', 'right', 'Tag', 'EpsAveEditFieldLabel');
handles.EpsAveEditField = uicontrol('Parent', handles.SolverRunTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [113 361 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'EpsAveEditField');
handles.EpsMaxEditFieldLabel = uicontrol('Parent', handles.SolverRunTab, 'Style', 'text', 'Units', 'pixels', 'Position', [49 308 48 22], ...
'String', 'EpsMax', 'HorizontalAlignment', 'right', 'Tag', 'EpsMaxEditFieldLabel');
handles.EpsMaxEditField = uicontrol('Parent', handles.SolverRunTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [113 308 100 22], ...
'HorizontalAlignment', 'left', 'String', '0', 'UserData', struct('Type', 'numeric'), 'Tag', 'EpsMaxEditField');
handles.ResultsTab = uitab('Parent', handles.TabGroup, 'Title', 'Results', 'Tag', 'ResultsTab');
handles.ResultAxes = axes('Parent', handles.ResultsTab, 'Units', 'pixels', 'Position', [217 22 987 585], 'Tag', 'ResultAxes');
handles.Plot2DLayerButton = uicontrol('Parent', handles.ResultsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [55 445 111 23], ...
'String', 'Plot2DLayer', 'Tag', 'Plot2DLayerButton');
handles.Plot3DDistributionButton = uicontrol('Parent', handles.ResultsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [49 379 115 23], ...
'String', 'Plot3DDistribution', 'Tag', 'Plot3DDistributionButton');
handles.PlotPermButton = uicontrol('Parent', handles.ResultsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [52 329 111 23], ...
'String', 'PlotPerm', 'Tag', 'PlotPermButton');
handles.PlotSPDPButton = uicontrol('Parent', handles.ResultsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [47 278 116 23], ...
'String', 'PlotSPDP', 'Tag', 'PlotSPDPButton');
handles.PlotWellResponseButton = uicontrol('Parent', handles.ResultsTab, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [50 502 117 23], ...
'String', 'PlotWellResponse', 'Tag', 'PlotWellResponseButton');
handles.PlotLayerDropDownLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [15 224 56 22], ...
'String', 'PlotLayer', 'HorizontalAlignment', 'right', 'Tag', 'PlotLayerDropDownLabel');
handles.PlotLayerDropDown = uicontrol('Parent', handles.ResultsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [86 224 78 22], ...
'String', {''}, 'Value', 1, 'Tag', 'PlotLayerDropDown');
setGuidePopupValue(handles.PlotLayerDropDown, '');
handles.PlotPropertyDropDownLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [8 182 71 22], ...
'String', 'PlotProperty', 'HorizontalAlignment', 'right', 'Tag', 'PlotPropertyDropDownLabel');
handles.PlotPropertyDropDown = uicontrol('Parent', handles.ResultsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [94 182 68 22], ...
'String', {''}, 'Value', 1, 'Tag', 'PlotPropertyDropDown');
setGuidePopupValue(handles.PlotPropertyDropDown, '');
handles.PlotMetricDropDownLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [5 97 58 22], ...
'String', 'PlotMetric', 'HorizontalAlignment', 'right', 'Tag', 'PlotMetricDropDownLabel');
handles.PlotMetricDropDown = uicontrol('Parent', handles.ResultsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [78 97 86 22], ...
'String', {''}, 'Value', 1, 'Tag', 'PlotMetricDropDown');
setGuidePopupValue(handles.PlotMetricDropDown, '');
handles.PlotWellDropDownLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [12 139 49 22], ...
'String', 'PlotWell', 'HorizontalAlignment', 'right', 'Tag', 'PlotWellDropDownLabel');
handles.PlotWellDropDown = uicontrol('Parent', handles.ResultsTab, 'Style', 'popupmenu', 'Units', 'pixels', 'Position', [76 139 87 22], ...
'String', {''}, 'Value', 1, 'Tag', 'PlotWellDropDown');
setGuidePopupValue(handles.PlotWellDropDown, '');
handles.PlotTimeStepSlider = uicontrol('Parent', handles.ResultsTab, 'Style', 'slider', 'Units', 'pixels', 'Position', [15 578 150 3], ...
'Min', 0, 'Max', 100, 'Value', 0, 'Tag', 'PlotTimeStepSlider');
handles.PlotTimeStepValueLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [54 609 106 22], ...
'String', 'PlotTimeStepValue', 'HorizontalAlignment', 'left', 'Tag', 'PlotTimeStepValueLabel');
handles.ResultSummaryTextAreaLabel = uicontrol('Parent', handles.ResultsTab, 'Style', 'text', 'Units', 'pixels', 'Position', [312 625 90 21], ...
'String', 'ResultSummary', 'HorizontalAlignment', 'right', 'Tag', 'ResultSummaryTextAreaLabel');
handles.ResultSummaryTextArea = uicontrol('Parent', handles.ResultsTab, 'Style', 'edit', 'Units', 'pixels', 'Position', [460 619 636 44], ...
'Max', 2, 'Min', 0, 'HorizontalAlignment', 'left', 'String', '', 'Tag', 'ResultSummaryTextArea');
handles.NewConfigButton = uicontrol('Parent', fig, 'Style', 'pushbutton', 'Units', 'pixels', 'Position', [292 773 94 23], ...
'String', 'New Config', 'Tag', 'NewConfigButton');
title(handles.ResultAxes, 'Result');
xlabel(handles.ResultAxes, 'X');
ylabel(handles.ResultAxes, 'Y');
zlabel(handles.ResultAxes, 'Z');
set(fig, 'Visible', 'on');
end
function setGuidePopupValue(handleObj, value)
items = get(handleObj, 'String');
if ischar(items), items = cellstr(items); end
idx = find(strcmp(items, char(string(value))), 1);
if isempty(idx), idx = 1; end
set(handleObj, 'Value', idx);
end