function varargout = tarea30(varargin)
% TAREA30 MATLAB code for tarea30.fig
% TAREA30, by itself, creates a new TAREA30 or raises the existing
% singleton*.
%
% H = TAREA30 returns the handle to a new TAREA30 or the handle to
% the existing singleton*.
%
% TAREA30('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in TAREA30.M with the given input
arguments.
%
% TAREA30('Property','Value',...) creates a new TAREA30 or raises
the
% existing singleton*. Starting from the left, property value pairs
are
% applied to the GUI before tarea30_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property
application
% stop. All inputs are passed to tarea30_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 tarea30
% Last Modified by GUIDE v2.5 30-Jun-2018 01:58:05
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @tarea30_OpeningFcn, ...
'gui_OutputFcn', @tarea30_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before tarea30 is made visible.
function tarea30_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 tarea30 (see VARARGIN)
% Choose default command line output for tarea30
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes tarea30 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = tarea30_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 structure
varargout{1} = handles.output;
function QT_Callback(hObject, eventdata, handles)
% hObject handle to QT (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 QT as text
% str2double(get(hObject,'String')) returns contents of QT as a
double
% --- Executes during object creation, after setting all properties.
function QT_CreateFcn(hObject, eventdata, handles)
% hObject handle to QT (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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function B_Callback(hObject, eventdata, handles)
% hObject handle to B (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 B as text
% str2double(get(hObject,'String')) returns contents of B as a
double
% --- Executes during object creation, after setting all properties.
function B_CreateFcn(hObject, eventdata, handles)
% hObject handle to B (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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function H_Callback(hObject, eventdata, handles)
% hObject handle to H (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 H as text
% str2double(get(hObject,'String')) returns contents of H as a
double
% --- Executes during object creation, after setting all properties.
function H_CreateFcn(hObject, eventdata, handles)
% hObject handle to H (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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit4_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.
function edit4_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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function N1_Callback(hObject, eventdata, handles)
% hObject handle to N1 (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 N1 as text
% str2double(get(hObject,'String')) returns contents of N1 as a
double
% --- Executes during object creation, after setting all properties.
function N1_CreateFcn(hObject, eventdata, handles)
% hObject handle to N1 (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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function N2_Callback(hObject, eventdata, handles)
% hObject handle to N2 (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 N2 as text
% str2double(get(hObject,'String')) returns contents of N2 as a
double
% --- Executes during object creation, after setting all properties.
function N2_CreateFcn(hObject, eventdata, handles)
% hObject handle to N2 (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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function N3_Callback(hObject, eventdata, handles)
% hObject handle to N3 (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 N3 as text
% str2double(get(hObject,'String')) returns contents of N3 as a
double
% --- Executes during object creation, after setting all properties.
function N3_CreateFcn(hObject, eventdata, handles)
% hObject handle to N3 (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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function P_Callback(hObject, eventdata, handles)
% hObject handle to P (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 P as text
% str2double(get(hObject,'String')) returns contents of P as a
double
% --- Executes during object creation, after setting all properties.
function P_CreateFcn(hObject, eventdata, handles)
% hObject handle to P (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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function QC_Callback(hObject, eventdata, handles)
% hObject handle to QC (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 QC as text
% str2double(get(hObject,'String')) returns contents of QC as a
double
% --- Executes during object creation, after setting all properties.
function QC_CreateFcn(hObject, eventdata, handles)
% hObject handle to QC (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.
if ispc && isequal(get(hObject,'BackgroundColor'),
get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in calcular.
function calcular_Callback(hObject, eventdata, handles)
% hObject handle to calcular (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
qt=get(handles.QT,'String');
b=get(handles.B,'String');
h=get(handles.H,'String');
qc=get(handles.QC,'String');
n1=get(handles.N1,'String');
n2=get(handles.N2,'String');
n3=get(handles.N3,'String');
p=get(handles.P,'String');
qt=str2num(qt);
b=str2num(b);
h=str2num(h);
qc=str2num(qc);
n1=str2num(n1);
n2=str2num(n2);
n3=str2num(n3);
p=str2num(p);
c=(1-(0.5*((h*p)/(qt-h*p))));
x=0.15;
y=(0.5+0.1*(sqrt((qt-h*p)/((0.5*b+h)*p))));
z=(y/1.5);
e=(2.5*qc*100);
w=((((x+y)/2)*(b/2))/(e*n1));
t=((((y+z)/2)*(b/2))/(e*n2));
u=((((z)/2)*(b))/(e*n3));
a=(w+t+u);
s=c*(qt-p*h)*a*100;
set(handles.salida,'String',num2str(s))
% --- Executes on button press in borrar.
function borrar_Callback(hObject, eventdata, handles)
% hObject handle to borrar (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
set(handles.QT,'String','')
set(handles.B,'String','')
set(handles.H,'String','')
set(handles.QC,'String','')
set(handles.N1,'String','')
set(handles.N2,'String','')
set(handles.N3,'String','')
set(handles.P,'String','')
set(handles.salida,'String','')
CALCULO DE ASIENTOS EN AREMAS
método de Schmertmann- (Zapata cuadrada)
qt
H q 0.15 q zp
IZ
B/2 N1
---------------------------
N2
B -----------------
N3
2B
Calculo para el asiento Coeficiente de influencia Coeficiente de profundidad
2B
( IE Δz ) √ q tn '
S=C 1 qtn ∑
0
z
I zp=1+0.1
σ
'
vq
C1 =1−0.5 ( )
σ0
qtn
Módulo de Elasticidad
TIPO DE SUELO q c /N(Kp/cm2)
E=2.5 qc Arena fina 4
Arena Media 5
Arena Gruesa 7
PROBLEMA
Una zapara cuadrada de 10m de lado se va a cimentar es un terreno constituido por arenas cuyo
peso específico aparente es ꙋ=20KN/m2, trasmitiendo una presión de 100 KN/m2 y estando el
plano de cimentación a un metro de profundidad de la superficie de terreno.
Si se pide estimar el asiento de la zapata si los ensayos de penetración dinámica estándar (SPT)
realizados han proporcionado los golpes representativos indicados en la figura.
100 KN/m2
H q 0.15 0.387 0.581 IZ
5 N1=20
---------------------------
5 N2=25
-----------------
N3=30
10
Asiento =1.7712 cm