Documente Academic
Documente Profesional
Documente Cultură
MARIA CAICEDO CHAMORRO
DAVID REYES LOPEZ
𝑣12 𝑝1 𝑣22 𝑝2
+ ℎ1 + = + ℎ2 + →EC1 𝑣12 𝑣22 𝑝2
2𝑔 ℽ 2𝑔 ℽ + ℎ1 − ℎ𝑝 + ℎ𝑏 = 2𝑔 + ℎ2 + ℽ →EC18
2𝑔
𝑟
1 𝑑 2,51
= −2 log ( + ) 𝑅𝑒 < 1𝑥105
𝑉 √𝑓 3,7 𝑅𝑒 √𝑓
= 𝑄 →EC2
𝑡
𝑟 1,11
𝑄 = 𝑣 ∗ 𝐴 →EC3 1 6,9
= −1,8 log ( + 𝑑 ) 𝑅𝑒 > 1𝑥105
√𝑓 𝑅𝑒 3,7
𝜋
𝐴 = 4 𝐷2 →EC4
𝑘−𝑘1 𝑘 −𝑘
= 𝑑1−𝑑2 →EC5 CALCULOS DE TOQUILLA
𝑑−𝑑1 1 2 𝑄11 = 𝑄1 ∗ 0.001
1000
𝑃𝑀1 = 𝑃𝐸1 ∗
ℎ𝑝 = ℎ𝑝1 + ℎ𝑝2 →EC6 𝑛𝐺
𝑃𝑀1
𝑃𝑇 =
𝑣2
𝑛𝑇
ℎ𝑝1 = Σ𝑘 ∗ 2𝑔 →EC7 𝑃𝑇
𝐻𝑇 =
(𝑄11 ∗ 9810)
28
𝑙 𝑣2 𝐻𝑃1 = 𝐻𝑇 ∗
ℎ𝑝2 = f ∗ 𝑑 ∗ 2𝑔 →EC8 100
𝑄112
𝑑1 = √√ ∗ 10
Σ𝑘 = 𝐾 + 𝑃𝑒𝑟𝑑𝑖𝑑𝑎𝑠 →EC9 ((12.1026024) ∗ (𝐻𝑇 + 𝐻𝑃1 − 𝐻1))
% --- Outputs from this function are % INGRESAR_DATOS MATLAB code for
returned to the command line. ingresar_datos.fig
function varargout = % INGRESAR_DATOS, by itself, creates
portada_OutputFcn(hObject, eventdata, a new INGRESAR_DATOS or raises the
handles) existing
% varargout cell array for returning % singleton*.
output args (see VARARGOUT); %
% hObject handle to figure % H = INGRESAR_DATOS returns the
% eventdata reserved - to be defined in handle to a new INGRESAR_DATOS or the
a future version of MATLAB handle to
% handles structure with handles and % the existing singleton*.
user data (see GUIDATA) %
%
% Get default command line output from INGRESAR_DATOS('CALLBACK',hObject,eventDa
handles structure ta,handles,...) calls the local
varargout{1} = handles.output; % function named CALLBACK in
INGRESAR_DATOS.M with the given input
arguments.
%
% --- Executes on button press in %
togglebutton1. INGRESAR_DATOS('Property','Value',...)
function togglebutton1_Callback(hObject, creates a new INGRESAR_DATOS or raises
eventdata, handles) the
% hObject handle to togglebutton1 (see % existing singleton*. Starting
GCBO) from the left, property value pairs are
% eventdata reserved - to be defined in % applied to the GUI before
a future version of MATLAB ingresar_datos_OpeningFcn gets called.
% handles structure with handles and An
user data (see GUIDATA) % unrecognized property name or
close(portada); invalid value makes property application
ingresar_datos; % stop. All inputs are passed to
% Hint: get(hObject,'Value') returns ingresar_datos_OpeningFcn via varargin.
toggle state of togglebutton1 %
% *See GUI Options on GUIDE's Tools
De este código resulta la siguiente interfaz: menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
gui_State.gui_Callback =
str2func(varargin{1}); function edit1_Callback(hObject,
end eventdata, handles)
% hObject handle to edit1 (see GCBO)
if nargout % eventdata reserved - to be defined in
[varargout{1:nargout}] = a future version of MATLAB
gui_mainfcn(gui_State, varargin{:}); % handles structure with handles and
else user data (see GUIDATA)
gui_mainfcn(gui_State, varargin{:});
end % Hints: get(hObject,'String') returns
% End initialization code - DO NOT EDIT contents of edit1 as text
%
str2double(get(hObject,'String')) returns
% --- Executes just before ingresar_datos contents of edit1 as a double
is made visible.
function
ingresar_datos_OpeningFcn(hObject, % --- Executes during object creation,
eventdata, handles, varargin) after setting all properties.
% This function has no output args, see function edit1_CreateFcn(hObject,
OutputFcn. eventdata, handles)
% hObject handle to figure % hObject handle to edit1 (see GCBO)
% eventdata reserved - to be defined in % eventdata reserved - to be defined in
a future version of MATLAB a future version of MATLAB
% handles structure with handles and % handles empty - handles not created
user data (see GUIDATA) until after all CreateFcns called
% varargin command line arguments to
ingresar_datos (see VARARGIN) % Hint: edit controls usually have a
white background on Windows.
% Choose default command line output for % See ISPC and COMPUTER.
ingresar_datos if ispc &&
handles.output = hObject; isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
% Update handles structure
guidata(hObject, handles); set(hObject,'BackgroundColor','white');
end
% UIWAIT makes ingresar_datos wait for
user response (see UIRESUME)
% uiwait(handles.figure1);
function edit2_Callback(hObject,
eventdata, handles)
% --- Outputs from this function are % hObject handle to edit2 (see GCBO)
returned to the command line. % eventdata reserved - to be defined in
function varargout = a future version of MATLAB
ingresar_datos_OutputFcn(hObject, % handles structure with handles and
eventdata, handles) user data (see GUIDATA)
% varargout cell array for returning
output args (see VARARGOUT); % Hints: get(hObject,'String') returns
% hObject handle to figure contents of edit2 as text
% eventdata reserved - to be defined in %
a future version of MATLAB str2double(get(hObject,'String')) returns
% handles structure with handles and contents of edit2 as a double
user data (see GUIDATA)
% Get default command line output from % --- Executes during object creation,
handles structure after setting all properties.
varargout{1} = handles.output; function edit2_CreateFcn(hObject,
eventdata, handles)
% hObject handle to edit2 (see GCBO)
5
if ispc && %
isequal(get(hObject,'BackgroundColor'), str2double(get(hObject,'String')) returns
get(0,'defaultUicontrolBackgroundColor')) contents of edit10 as a double
set(hObject,'BackgroundColor','white');
end % --- Executes during object creation,
after setting all properties.
function edit10_CreateFcn(hObject,
eventdata, handles)
function edit9_Callback(hObject, % hObject handle to edit10 (see GCBO)
eventdata, handles) % eventdata reserved - to be defined in
% hObject handle to edit9 (see GCBO) a future version of MATLAB
% eventdata reserved - to be defined in % handles empty - handles not created
a future version of MATLAB until after all CreateFcns called
% handles structure with handles and
user data (see GUIDATA) % Hint: edit controls usually have a
white background on Windows.
% Hints: get(hObject,'String') returns % See ISPC and COMPUTER.
contents of edit9 as text if ispc &&
% isequal(get(hObject,'BackgroundColor'),
str2double(get(hObject,'String')) returns get(0,'defaultUicontrolBackgroundColor'))
contents of edit9 as a double
set(hObject,'BackgroundColor','white');
end
% --- Executes during object creation,
after setting all properties.
function edit9_CreateFcn(hObject,
eventdata, handles) function edit11_Callback(hObject,
% hObject handle to edit9 (see GCBO) eventdata, handles)
% eventdata reserved - to be defined in % hObject handle to edit11 (see GCBO)
a future version of MATLAB % eventdata reserved - to be defined in
% handles empty - handles not created a future version of MATLAB
until after all CreateFcns called % handles structure with handles and
user data (see GUIDATA)
% Hint: edit controls usually have a
white background on Windows. % Hints: get(hObject,'String') returns
% See ISPC and COMPUTER. contents of edit11 as text
if ispc && %
isequal(get(hObject,'BackgroundColor'), str2double(get(hObject,'String')) returns
get(0,'defaultUicontrolBackgroundColor')) contents of edit11 as a double
set(hObject,'BackgroundColor','white');
end % --- Executes during object creation,
after setting all properties.
function edit11_CreateFcn(hObject,
eventdata, handles)
function edit10_Callback(hObject, % hObject handle to edit11 (see GCBO)
eventdata, handles) % eventdata reserved - to be defined in
% hObject handle to edit10 (see GCBO) a future version of MATLAB
% eventdata reserved - to be defined in % handles empty - handles not created
a future version of MATLAB until after all CreateFcns called
% handles structure with handles and
user data (see GUIDATA) % Hint: edit controls usually have a
white background on Windows.
% Hints: get(hObject,'String') returns % See ISPC and COMPUTER.
contents of edit10 as text if ispc &&
isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
8
set(hObject,'BackgroundColor','white');
end % --- Executes during object creation,
after setting all properties.
function edit27_CreateFcn(hObject,
eventdata, handles)
% hObject handle to edit27 (see GCBO)
function edit25_Callback(hObject, % eventdata reserved - to be defined in
eventdata, handles) a future version of MATLAB
% hObject handle to edit25 (see GCBO) % handles empty - handles not created
% eventdata reserved - to be defined in until after all CreateFcns called
a future version of MATLAB
% handles structure with handles and % Hint: edit controls usually have a
user data (see GUIDATA) white background on Windows.
% See ISPC and COMPUTER.
% Hints: get(hObject,'String') returns if ispc &&
contents of edit25 as text isequal(get(hObject,'BackgroundColor'),
% get(0,'defaultUicontrolBackgroundColor'))
str2double(get(hObject,'String')) returns
contents of edit25 as a double set(hObject,'BackgroundColor','white');
end
%
str2double(get(hObject,'String')) returns set(hObject,'BackgroundColor','white');
contents of edit28 as a double end
Imagen 2.
function edit40_Callback(hObject, RESULTADOS OBTENIDOS: En esta parte del programa
eventdata, handles) se mostrará los resultados obtenidos teniendo encuentra los
% hObject handle to edit40 (see GCBO) datos de entrada.
% eventdata reserved - to be defined in A continuación se mostrara 3 ejecuciones del programa
a future version of MATLAB realizado con diferentes datos :
% handles structure with handles and
user data (see GUIDATA) EJECUCIÓN #1
Imagen 4. Imagen 8.
EJECUCIÓN # 2
Imagen 5.
Imagen 6.
EJECUCIÓN #3
Imagen 7.