Code covered by the BSD License  

Highlights from
Concrete Mix Design

image thumbnail

Concrete Mix Design

by

 

Concrete is composed of aggregates, cement, water and many contain other cementitious materials.

concreteMIXdesign(varargin)
function varargout = concreteMIXdesign(varargin)
% CONCRETEMIXDESIGN M-file for concreteMIXdesign.fig
%      CONCRETEMIXDESIGN, by itself, creates a new CONCRETEMIXDESIGN or raises the existing
%      singleton*.
%
%      H = CONCRETEMIXDESIGN returns the handle to a new CONCRETEMIXDESIGN or the handle to
%      the existing singleton*.
%
%      CONCRETEMIXDESIGN('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in CONCRETEMIXDESIGN.M with the given input arguments.
%
%      CONCRETEMIXDESIGN('Property','Value',...) creates a new CONCRETEMIXDESIGN or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before concreteMIXdesign_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to concreteMIXdesign_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 concreteMIXdesign

% Last Modified by GUIDE v2.5 26-Oct-2011 17:29:17

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @concreteMIXdesign_OpeningFcn, ...
                   'gui_OutputFcn',  @concreteMIXdesign_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 concreteMIXdesign is made visible.
function concreteMIXdesign_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 concreteMIXdesign (see VARARGIN)

% Choose default command line output for concreteMIXdesign
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes concreteMIXdesign wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = concreteMIXdesign_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 s_Callback(hObject, eventdata, handles)
% hObject    handle to s (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 s as text
%        str2double(get(hObject,'String')) returns contents of s as a double


% --- Executes during object creation, after setting all properties.
function s_CreateFcn(hObject, eventdata, handles)
% hObject    handle to s (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 g_c_Callback(hObject, eventdata, handles)
% hObject    handle to g_c (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 g_c as text
%        str2double(get(hObject,'String')) returns contents of g_c as a double


% --- Executes during object creation, after setting all properties.
function g_c_CreateFcn(hObject, eventdata, handles)
% hObject    handle to g_c (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 w_w_Callback(hObject, eventdata, handles)
% hObject    handle to w_w (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 w_w as text
%        str2double(get(hObject,'String')) returns contents of w_w as a double


% --- Executes during object creation, after setting all properties.
function w_w_CreateFcn(hObject, eventdata, handles)
% hObject    handle to w_w (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 r_wc_Callback(hObject, eventdata, handles)
% hObject    handle to r_wc (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 r_wc as text
%        str2double(get(hObject,'String')) returns contents of r_wc as a double


% --- Executes during object creation, after setting all properties.
function r_wc_CreateFcn(hObject, eventdata, handles)
% hObject    handle to r_wc (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 pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
gc = str2num(get(handles.g_c,'String'));
s = str2num(get(handles.s,'String'));
spc = str2num(get(handles.sp_c,'String'));
spca = str2num(get(handles.sp_ca,'String'));
spfa = str2num(get(handles.sp_fa,'String'));
rwc = str2num(get(handles.r_wc,'String'));
ww = str2num(get(handles.w_w,'String')); 
wcr = str2num(get(handles.w_cr,'String'));
%calculation
d = 2450 ;
v = (wcr)/d ;
ts = gc + 1.65*s ;
wc = (ww)/(rwc) ;
ta = .98 - (ww)/1000 - (wc)/((spc)*1000) ;
ca = .65 * (ta) ;
fa = .35 * (ta) ;
fca = 1000 * (spca) * (ca) ;
ffa = 1000 * (spfa) * (fa) ;
%assumed data
set(handles.a1,'String','4. Specific Gravity of Water is 1 and density is 1000.');
set(handles.a2,'String','1. percentage of Coarse Agg is 65% and Fine Agg. is 35%');
set(handles.a3,'String','2. Air content is 2% per meter cube and  density of concrete is 2450 kg/m^3');
set(handles.a4,'String','3. size of Coarse Agg. is 20 mm and Fine Agg. is 12mm');
set(handles.r_comment,'String',' All units are in kilograms ');

%showing result
set(handles.r_c,'String',num2str((wc)*v));
set(handles.r_w,'String',num2str((ww)*v));
set(handles.r_ca,'String',num2str((fca)*v));
set(handles.r_fa,'String',num2str((ffa)*v));
guidata(hObject, handles);


















function sp_c_Callback(hObject, eventdata, handles)
% hObject    handle to sp_c (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 sp_c as text
%        str2double(get(hObject,'String')) returns contents of sp_c as a double


% --- Executes during object creation, after setting all properties.
function sp_c_CreateFcn(hObject, eventdata, handles)
% hObject    handle to sp_c (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 sp_fa_Callback(hObject, eventdata, handles)
% hObject    handle to sp_fa (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 sp_fa as text
%        str2double(get(hObject,'String')) returns contents of sp_fa as a double


% --- Executes during object creation, after setting all properties.
function sp_fa_CreateFcn(hObject, eventdata, handles)
% hObject    handle to sp_fa (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 sp_ca_Callback(hObject, eventdata, handles)
% hObject    handle to sp_ca (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 sp_ca as text
%        str2double(get(hObject,'String')) returns contents of sp_ca as a double


% --- Executes during object creation, after setting all properties.
function sp_ca_CreateFcn(hObject, eventdata, handles)
% hObject    handle to sp_ca (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 w_cr_Callback(hObject, eventdata, handles)
% hObject    handle to w_cr (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 w_cr as text
%        str2double(get(hObject,'String')) returns contents of w_cr as a double


% --- Executes during object creation, after setting all properties.
function w_cr_CreateFcn(hObject, eventdata, handles)
% hObject    handle to w_cr (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

Contact us