Computational Lab
Computational Lab
MATLAB is widely used for numerical computation, data visualization, simulation, and
programming, particularly in engineering, science, and mathematics. It integrates computation,
visualization, and programming in an easy-to-use interface where problems and solutions are
expressed in familiar mathematical notation. Over the years, MATLAB has evolved significantly,
incorporating features like object-oriented programming, graphical user interface (GUI) development,
cloud integration, and support for embedded systems.
Popular versions include MATLAB 4.x, 5.x, 6.0 (R12), 6.5 (R13), R14 (2004), and more recent
releases like R2024b and R2025a. It primarily uses. mat for data files and. mlx for live script files.
MATLAB’s strength lies in its ability to combine code, algorithms, and visualization within a single
platform, making it an indispensable tool in both academic research and industrial applications.
Applications of MATLAB
• Control Systems Design
• Digital Signal and Image Processing
• Machine Learning and Artificial Intelligence
• Data Analysis and Visualization
• Communication Systems
• Robotics and Mechatronics
• Structural and Civil Engineering simulations
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
• Financial Modelling
• Academic Research and Teaching
Basic Example:
a = 5;
b = 10;
c = a + b;
disp(['The sum is: ', num2str(c)]);
Output:
The sum is: 15
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Interfaces with CAD, Excel, and structural software (e.g., SAP2000, ETABS) for data
exchange and post-processing.
MATLAB INTERFACE AND TABS
MATLAB’s interface is organized into different sections and tabs, each designed to help users
write code, manage files, visualize data, and run simulations efficiently. Understanding these
components is essential for effective MATLAB use, especially in technical fields like engineering,
data science, and research.
2. Workspace Panel
Purpose: Shows all active variables in the current session.
Features:
• View variable names, values, sizes, types
• Double-click to open variables in spreadsheet format
• Right-click for plotting and clearing
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Use: Monitor and interact with variables used in scripts or during live coding.
3. Command Window
Purpose: Main area for executing commands directly.
Features:
• Write and execute one-line commands
• Test functions, perform calculations, and debug
• Use up/down arrow to access command history
Use: For quick tests, calculations, and small-scale experimentation before full scripting.
1. Home Tab
• File operations (New Script, Save, Open)
• Preferences and Layout settings
• Add-ons (Toolboxes and apps)
Best for starting a project or managing files
2. Plots Tab
• Quick access to line, bar, scatter plots
• 2D/3D visualization tools
• Plot customization tools
Used to visualize data directly from Workspace
3. Apps Tab
• Access to built-in apps like Curve Fitting, Simulink, Control System Designer
• Launch App Designer for GUI development
Used when GUI or pre-built tools are preferred over scripting
7. View Tab
• Show/hide Command Window, Workspace, Current Folder, Editor
• Save custom layout setups
Helpful for customizing the interface to personal workflow
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Introduction:
Reinforced Cement Concrete (RCC) beams are fundamental structural components designed
to resist bending, shear, and axial loads. The design process involves determining the required
dimensions and reinforcement based on loading conditions and material strengths. This project uses
MATLAB to automate the analysis and design of simply supported RCC beams using Limit State
Method (LSM) as per IS 456:2000 guidelines.
Aim: To analyse and design an RCC beam subjected to uniform loading using MATLAB based on
Indian standards.
Objectives:
Important Formulae:
Parameter Explanations
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Procedure :
MATLAB CODE:
% Convert to Nmm
Mu = Mu * 1e6;
% Effective depth
d = sqrt(Mu / (0.138 * fck * b));
% Lever arm
z = 0.9 * d;
% Area of steel
Ast = Mu / (0.87 * fy * z);
% Shear check
Vu_N = Vu * 1e3; % Convert to N
tau_v = Vu_N / (b * d); % Shear stress
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
% Output
fprintf('Effective depth required = %.2f mm\n', d);
fprintf('Area of steel required = %.2f mm^2\n', Ast);
fprintf('Shear stress = %.2f N/mm^2\n', tau_v);
Design Output:
• Effective depth required = __________ mm
• Area of steel required (Ast) =_ __________ mm²
• Shear stress (τᵥ) = __________ N/mm²
Code Explanation:
[Start]
↓
Input beam dimensions and material properties
↓
Calculate Mu and Vu
↓
Convert Mu to Nmm
↓
Calculate effective depth (d)
↓
Compute lever arm (z)
↓
Calculate required steel area (Ast)
↓
Compute shear stress (τv)
↓
Display results
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
INTRODUCTION:
Reinforced Cement Concrete (RCC) columns are primary vertical structural members
responsible for transmitting axial loads from slabs and beams to foundations. Their design must ensure
safety under axial load and moments. Using MATLAB simplifies the iterative calculations required,
ensures codal compliance (as per IS 456:2000), and improves design accuracy and speed.
AIM: To analyse and design RCC column sections subjected to axial load using MATLAB
programming based on Limit State Method.
OBJECTIVES:
DESIGN PARAMETERS:
DESIGN PROCEDURE:
1. Input basic geometry, material properties, and axial load.
2. Compute gross area of column (Ac).
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
MATLAB CODE:
Start
↓
Input Data
↓
Calculate Area of Column (Ac)
↓
Calculate Minimum Eccentricity (emin)
↓
Calculate Required Steel Area (Asc)
↓
Check Minimum and Maximum Limits for Asc
↓
Calculate Number of Bars Required
↓
Display Design Output
↓
End
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Introduction
Structural analysis of 2D beams involves determining how beams respond under various types
of loads (point load, uniformly distributed load, moment, etc.) and support conditions (simply
supported, fixed, cantilever). The objective is to calculate shear force, bending moment, and
deflections along the length of the beam. MATLAB provides a flexible environment to implement
beam theories, solve equations of equilibrium, and plot result diagrams with accuracy and speed.
Aim: To analyse 2D beams with different loading and support conditions using MATLAB.
Objectives:
Formulae:
• Sum of vertical forces = 0: Used to compute support reactions.
• Shear Force (V) at a section = Total vertical forces on one side of the section.
• Bending Moment (M) at a section = Moment of all forces about that section.
• Equilibrium equations are used for statically determinate structures:
o ΣFy = 0 → Vertical force balance
o ΣM = 0 → Moment balance
• For continuous/fixed beams:
o Use stiffness method: [K]{d} = {F}
▪ K: global stiffness matrix
▪ d: displacement vector
▪ F: force/load vector
Parameter Explanations
• L: Beam length (in meters)
• E: Modulus of Elasticity (Pa)
• I: Moment of Inertia (m⁴)
• P: Point Load (N)
• a: Load position from the left support (m)
• RA, RB: Reaction forces at supports A and B
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
MATLAB CODE
% Beam Parameters
L = 6; % Length in meters
E = 2e11; % Modulus of Elasticity (Pa)
I = 4e-6; % Moment of Inertia (m^4)
P = 1000; % Point Load (N)
a = 3; % Load position (m)
% Reaction forces for simply supported beam
RA = P * (L - a) / L;
RB = P * a / L;
% Discretization
x = linspace(0, L, 500);
V = zeros(size(x));
M = zeros(size(x));
% Calculating shear force and bending moment
for i = 1:length(x)
if x(i) < a
V(i) = RA;
M(i) = RA * x(i);
else
V(i) = RA - P;
M(i) = RA * x(i) - P * (x(i) - a);
end
end
% Plotting
subplot(2,1,1);
plot(x, V, 'b', 'LineWidth', 2);
title('Shear Force Diagram');
xlabel('Beam Length (m)');
ylabel('Shear Force (N)');
grid on;
subplot(2,1,2);
plot(x, M, 'r', 'LineWidth', 2);
title('Bending Moment Diagram');
xlabel('Beam Length (m)');
ylabel('Bending Moment (Nm)');
grid on;
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Procedure
1. Define the length, material properties, and cross-section (E and I).
2. Assign loading conditions (point load, UDL, etc.) and their positions.
3. Calculate support reactions using equilibrium.
4. Discretize the beam length for analysis (100 to 1000 points).
5. For each segment, compute shear force and bending moment.
6. Plot Shear Force Diagram (SFD) and Bending Moment Diagram (BMD).
Output:
For a beam of length 6 m with a 1000 N point load at 3 m:
• Reaction at A = 500 N
• Reaction at B = 500 N
• Maximum Bending Moment = Nm at center
• Shear Force is constant up to the load point and drops by 1000 N.
Start
↓
Input beam parameters (L, E, I, P, a)
↓
Compute support reactions (RA, RB)
↓
Discretize beam into segments (x)
↓
For each x: Compute V(x), M(x)
↓
Plot SFD and BMD
↓
End
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Introduction
Unidirectional fiber-reinforced composite materials consist of high-strength fibers embedded
in a matrix, with all fibers aligned in the same direction. These composites exhibit highly anisotropic
behavior, especially in the fiber direction, offering exceptional stiffness and strength. To evaluate
their mechanical behavior, the Rule of Mixtures is applied to predict elastic constants such as
longitudinal modulus, transverse modulus, shear modulus, and Poisson’s ratio.
Objectives
• To calculate the longitudinal modulus, transverse modulus, shear modulus, and Poisson’s ratio
of composite material using the Rule of Mixtures.
• To implement MATLAB code for computation and visualization of these properties with
respect to fiber volume fraction.
Formulae:
• Longitudinal Modulus (E1): product of fiber volume fraction and fiber modulus plus matrix
volume fraction and matrix modulus.
Transverse Modulus
• (E2): reciprocal of sum of fiber volume fraction divided by fiber modulus and matrix volume
fraction divided by matrix modulus.
Shear Modulus
• (G12): reciprocal of sum of fiber volume fraction divided by fiber shear modulus and matrix
volume fraction divided by matrix shear modulus.
Poisson’s Ratio
• (v12): product of fiber volume fraction and fiber Poisson’s ratio plus matrix volume fraction
and matrix Poisson’s ratio.
Parameter Explanations
• Ef – Young’s modulus of fiber (Pa)
• Em – Young’s modulus of matrix (Pa)
• Gf – Shear modulus of fiber (Pa)
• Gm – Shear modulus of matrix (Pa)
• vf – Poisson’s ratio of fiber
• vm – Poisson’s ratio of matrix
• Vf – Volume fraction of fiber
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Procedure
• Define material properties: Ef, Em, Gf, Gm, vf, vm
• Generate a range of fiber volume fractions Vf from 0 to 1
• Calculate corresponding matrix volume fraction Vm
• Apply Rule of Mixtures formulas to compute E1, E2, G12, and v12
• Plot each parameter versus Vf using MATLAB
MATLAB Code
% Unidirectional Composite Analysis using Rule of Mixtures
% Material properties
Ef = 85e9; % Fiber Young’s modulus (Pa)
Em = 3.5e9; % Matrix Young’s modulus (Pa)
Gf = 35e9; % Fiber shear modulus (Pa)
Gm = 1.3e9; % Matrix shear modulus (Pa)
vf = 0.22; % Fiber Poisson’s ratio
vm = 0.35; % Matrix Poisson’s ratio
% Plotting results
figure;
subplot (2,2,1);
plot (Vf, E1/1e9, 'b', 'Linewidth', 2);
xlabel('Fiber Volume Fraction'); ylabel('E1 (GPa)');
title ('Longitudinal Modulus');
subplot (2,2,2);
plot (Vf, E2/1e9, 'r', 'LineWidth', 2);
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
subplot (2,2,3);
plot (Vf, G12/1e9, 'g', 'Linewidth', 2);
xlabel('Fiber Volume Fraction'); ylabel('G12 (GPa)');
title ('Shear Modulus');
subplot (2,2,4);
plot (Vf, v12, 'k', 'LineWidth', 2);
xlabel('Fiber Volume Fraction'); ylabel('v12');
title ('Poisson’s Ratio');
sgtitle('Engineering Constants vs Fiber Volume Fraction');
Start
↓
Input fiber and matrix properties
↓
Generate Vf from 0 to 1
↓
Calculate Vm = 1 - Vf
↓
Compute E1, E2, G12, v12
↓
Plot results
↓
End
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Introduction
Steel beams are structural members that primarily resist bending. They are widely used in
construction due to their strength, ductility, and versatility. Under loading, a beam develops bending
moments and shear forces which induce stresses within the member. This analysis determines those
internal stresses and deflection using standard mechanical formulas. MATLAB is used as a tool to
automate and visualize this process.
Aim : To analyse a simply supported steel beam under uniformly distributed load using MATLAB
and determine key structural responses such as bending moment, bending stress, shear stress, and
deflection.
Objectives
Formulae:
• Moment of Inertia (I) = (Breadth × Depth³) ÷ 12
• Section Modulus (Z) = Moment of Inertia ÷ (Depth ÷ 2)
• Maximum Bending Moment (M) = (Load × Length²) ÷ 8
• Maximum Shear Force (V) = (Load × Length) ÷ 2
• Bending Stress (σ) = Bending Moment ÷ Section Modulus
• Shear Stress (τ) = Shear Force ÷ (Breadth × Depth)
• Deflection (Δ) = (5 × Load × Length⁴) ÷ (384 × Modulus of Elasticity × Moment of Inertia)
Parameter:
• b = breadth (width) of beam section (mm)
• d = depth (height) of beam section (mm)
• L = span of the beam (mm)
• w = uniformly distributed load on the beam (N/mm)
• E = modulus of elasticity for steel (typically 2 × 10⁵ N/mm²)
• I = moment of inertia (mm⁴)
• Z = section modulus (mm³)
• M = bending moment (N·mm)
• V = shear force (N)
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Procedure
1. Define all geometric and loading parameters
2. Calculate moment of inertia and section modulus
3. Determine maximum bending moment and shear force
4. Compute bending stress and shear stress
5. Calculate deflection using the standard deflection formula
6. Display and interpret the results
7. Use MATLAB for fast and repeatable computation
MATLAB CODE
clc;
clear;
% Input Data
b = 150; % Width in mm
d = 300; % Depth in mm
L = 6000; % Span in mm
w = 20; % Uniformly distributed load in N/mm
E = 2e5; % Modulus of Elasticity in N/mm²
% Calculations
I = (b * d^3) / 12; % Moment of Inertia
Z = I / (d / 2); % Section Modulus
M = (w * L^2) / 8; % Maximum Bending Moment
V = (w * L) / 2; % Maximum Shear Force
sigma = M / Z; % Bending Stress
tau = V / (b * d); % Shear Stress
delta = (5 * w * L^4) / (384 * E * I); % Maximum Deflection
% Design Output
fprintf('\n--- DESIGN OUTPUT ---\n');
fprintf('Moment of Inertia (I) = %.2f mm^4\n', I);
fprintf('Section Modulus (Z) = %.2f mm^3\n', Z);
fprintf('Maximum Bending Moment (M) = %.2f N.mm\n', M);
fprintf('Maximum Bending Stress (σ) = %.2f N/mm²\n', sigma);
fprintf('Maximum Shear Force (V) = %.2f N\n', V);
fprintf('Maximum Shear Stress (τ) = %.2f N/mm²\n', tau);
fprintf('Maximum Deflection (Δ) = %.2f mm\n', delta);
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
design output :
Moment of Inertia (I) = _______________ mm^4
Section Modulus (Z) = _______________ mm^3
Maximum Bending Moment (M) = ____________ N.mm
Maximum Bending Stress (σ) = ______ N/mm²
Maximum Shear Force (V) = _________ N
Maximum Shear Stress (τ) = ________ N/mm²
Maximum Deflection (Δ) = ________mm
Start
↓
Input Parameters
↓
Calculate I and Z
↓
Calculate M and V
↓
Compute σ and τ
↓
Calculate Deflection Δ
↓
Display Results
↓
End
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Introduction
Steel columns are crucial load-carrying structural members that transfer axial loads from
slabs and beams to foundations. Their design must ensure stability against buckling and strength
against compression. The analysis typically involves determining axial load capacity, checking
slenderness ratios, and ensuring the stress is within allowable limits as per IS 800 or other design
codes.
Aim: To analyse a steel column under axial compressive load using MATLAB.
Objectives :
• To compute cross-sectional properties, slenderness ratio, and allowable stress.
• To verify safety of the steel column based on design limits.
Formulae :
• Cross-sectional area (A) = width × depth
• Moment of inertia (I) = (width × depth³) / 12
• Slenderness ratio (λ) = Effective length / Radius of gyration
• Radius of gyration (r) = √(I / A)
• Permissible stress (σ_allow) = Based on IS 800 formula for buckling
• Axial load capacity (P_allow) = σ_allow × A
Parameter Explanations
• Width (b): Cross-section width of the column in mm
• Depth (d): Cross-section depth of the column in mm
• L: Effective length of the column in mm
• E: Modulus of elasticity (typically 2 × 10⁵ N/mm² for steel)
• fy: Yield stress of steel (e.g., 250 or 350 N/mm²)
• A: Area of column section (mm²)
• I: Moment of inertia (mm⁴)
• λ: Slenderness ratio
• r: Radius of gyration (mm)
• σ_allow: Permissible axial stress from IS 800
• P_allow: Safe axial load capacity (N)
Procedure
• Input geometric and material properties.
• Calculate area and moment of inertia.
• Compute radius of gyration and slenderness ratio.
• Determine allowable compressive stress based on slenderness.
• Calculate axial load-carrying capacity.
• Compare with applied load to check safety.
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
MATLAB CODE
clc; clear;
% Input Data
b = 200; % Width of column (mm)
d = 300; % Depth of column (mm)
L = 3000; % Effective length (mm)
E = 2e5; % Modulus of elasticity (N/mm²)
fy = 250; % Yield strength (N/mm²)
% Cross-sectional properties
A = b * d; % Area in mm²
I = (b * d^3) / 12; % Moment of inertia
r = sqrt(I / A); % Radius of gyration
lambda = L / r; % Slenderness ratio
% Permissible compressive stress using IS 800 approximate formula
sigma_allow = 0.6 * fy / (1 + (lambda / 180)^2);
P_allow = sigma_allow * A;
% Design Output
fprintf('\n--- DESIGN OUTPUT ---\n');
fprintf('Cross-sectional Area (A) = %.2f mm²\n', A);
fprintf('Moment of Inertia (I) = %.2f mm⁴\n', I);
fprintf('Radius of Gyration (r) = %.2f mm\n', r);
fprintf('Slenderness Ratio (λ) = %.2f\n', lambda);
fprintf('Permissible Stress (σ_allow) = %.2f N/mm²\n', sigma_allow);
fprintf('Safe Axial Load Capacity (P_allow) = %.2f N\n', P_allow);
design output:
Cross-sectional Area (A) = ___________ mm²
Moment of Inertia (I) = ___________ mm⁴
Radius of Gyration (r) = _____ mm
Slenderness Ratio (λ) = _____
Permissible Stress (σ_allow) = _________ N/mm²
Safe Axial Load Capacity (P_allow) = N---
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Start
↓
Input geometric and material properties
↓
Compute area (A) and moment of inertia (I)
↓
Compute radius of gyration (r)
↓
Compute slenderness ratio (λ)
↓
Compute permissible compressive stress (σ_allow)
↓
Calculate safe axial load (P_allow)
↓
Display design output
↓
End
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Introduction
Unidirectional fiber-reinforced composite materials are anisotropic, meaning their
mechanical properties differ along different directions. To fully characterize such materials, we need
to compute their engineering constants as well as their compliance matrix [S] and stiffness matrix
[Q] in the principal material directions. These matrices are fundamental in classical lamination
theory and stress-strain analysis for composite laminates.
Aim: To compute the compliance matrix and stiffness matrix for a unidirectional fiber-reinforced
composite using MATLAB.
Objectives
• To calculate and understand the mechanical behaviour of fiber composites through
engineering constants.
• To use MATLAB to derive the compliance matrix [S] and stiffness matrix [Q].
• To verify and visualize how matrix entries change with varying fiber volume fraction.
Parameter Explanations
• Ef – Young’s modulus of fiber (Pa)
• Em – Young’s modulus of matrix (Pa)
• Gf – Shear modulus of fiber (Pa)
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Procedure
• Define fiber and matrix mechanical properties.
• Generate a range of fiber volume fractions.
• Compute engineering constants using the rule of mixtures.
• Use those constants to construct the compliance matrix [S].
• Invert [S] to get the stiffness matrix [Q].
• Plot matrix components vs. volume fraction if needed.
MATLAB Code
% Material Properties
Ef = 85e9; % Fiber modulus (Pa)
Em = 3.5e9; % Matrix modulus (Pa)
Gf = 35e9; % Fiber shear modulus (Pa)
Gm = 1.3e9; % Matrix shear modulus (Pa)
vf = 0.22; % Fiber Poisson's ratio
vm = 0.35; % Matrix Poisson's ratio
% Engineering Constants
E1 = Vf * Ef + Vm * Em;
E2 = 1 / (Vf/Ef + Vm/Em);
G12 = 1 / (Vf/Gf + Vm/Gm);
v12 = Vf * vf + Vm * vm;
v21 = v12 * E2 / E1;
S(1,1) = 1/E1;
S(1,2) = -v12/E1;
S(2,1) = -v12/E1;
S(2,2) = 1/E2;
S(3,3) = 1/G12;
% Display Results
disp('Compliance Matrix [S]:');
disp(S);
disp('Stiffness Matrix [Q]:');
disp(Q);
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Introduction
In laminated composite theory, the A-B-D matrix represents the laminate stiffness
relationship between applied loads and resulting strains and curvatures.
• [A] matrix: Extensional stiffness
• [B] matrix: Coupling stiffness
• [D] matrix: Bending stiffness
These matrices are essential to analyze multilayer laminates composed of unidirectional fiber-
reinforced plies. The [A-B-D] matrix combines the in-plane, bending, and coupling behavior of the
laminate based on the orientation and thickness of each ply.
Aim : To compute the A, B, and D matrices for a laminated composite consisting of unidirectional
fiber-reinforced plies using MATLAB.
Objectives
• To define ply properties and orientations of a symmetric or asymmetric laminate.
• To calculate the transformed reduced stiffness matrix [Q̄] for each ply orientation.
• To integrate stiffness contributions to form the A, B, and D matrices.
• To use MATLAB for numerical computation of the [A-B-D] matrix.
Parameter Explanations
• E1 – Longitudinal modulus of ply
• E2 – Transverse modulus of ply
• G12 – In-plane shear modulus
• v12 – Major Poisson's ratio
• v21 – Minor Poisson's ratio
• Q – Reduced stiffness matrix
• Q̄ – Transformed stiffness matrix
• t – Ply thickness
• z – Ply boundaries from mid-plane
• theta – Ply orientation angle (in degrees)
• A, B, D – Extensional, coupling, and bending stiffness matrices
Procedure
• Define material properties (E1, E2, G12, v12) and calculate v21
• Compute reduced stiffness matrix [Q]For each ply:
• Assign orientation angle
• Compute transformation matrix T and [Q̄]
• Define z_k and z_{k-1} based on stacking
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
MATLAB Code
% A-B-D Matrix Calculation for a Laminate of UD Composite Plies
% Material properties
E1 = 135e9; % Pa
E2 = 10e9; % Pa
G12 = 5e9; % Pa
v12 = 0.3;
v21 = v12 * E2 / E1;
% Laminate definition
ply_angles = [0 45 -45 90]; % in degrees
num_plies = length(ply_angles);
t_ply = 0.125e-3; % thickness of one ply (m)
total_thickness = num_plies * t_ply;
% Initialize A, B, D matrices
A = zeros(3,3);
B = zeros(3,3);
D = zeros(3,3);
% Transformation of Q to Q_bar
Q_bar = zeros(3,3);
Q_bar(1,1) = Q11*m^4 + 2*(Q12+2*Q66)*m^2*n^2 + Q22*n^4;
Q_bar(1,2) = (Q11 + Q22 - 4*Q66)*m^2*n^2 + Q12*(m^4 + n^4);
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
% z coordinates
z_k = z(k+1);
z_k1 = z(k);
% Compute A, B, D terms
A = A + Q_bar * (z_k - z_k1);
B = B + 0.5 * Q_bar * (z_k^2 - z_k1^2);
D = D + (1/3) * Q_bar * (z_k^3 - z_k1^3);
end
% Display A, B, D matrices
disp('A Matrix (N/m):');
disp(A);
disp('B Matrix (Nm/m):');
disp(B);
disp('D Matrix (Nm^2/m):');
disp(D);
Start
↓
Input ply properties and layup
↓
Compute reduced stiffness matrix Q
↓
For each ply:
↓
Transform Q to Q̄
↓
Compute A, B, D contributions
↓
Sum contributions
↓
Display A, B, D matrices
↓
End
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Assumptions:
1. Define Geometry
1. Open STAAD.Pro
2. Start a New Project → Type: Space → Units: Metric (KN, m)
3. Go to Geometry tab → Add beams by:
o Structure Wizard or
o Manual node + beam input
2. Assign Supports
1. Go to Supports → Create
o Type: Fixed (or pinned if base is isolated footing)
2. Select bottom nodes → Assign support
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
3. Define Properties
1. Go to Properties → Define
o Column: 300×500 mm
o Beam: 300×450 mm
2. Assign:
o Select vertical members → Assign column size
o Select horizontal members → Assign beam size
4. Define Material
5. Assign Loads
For slab load distribution, use Floor Load instead of member loads.
6. Load Combinations
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
7. Define Analysis
8. View Results
After analysis:
PROBLEM STATEMENT-
Perform Static analysis and design a building frame using following details.
Plan dimensions- 15m x 20m
Total height- 18m
Typical storey height – 3m
All wall thickness – 300 mm
All floor slab thickness – 150mm
Density of RCC material – 25KN/m2
Density of brick masonry – 20KN/m2
Live load on Slab - 5KN/m2
Floor finish load on Slab - 5KN/m2
Height of parapet wall – 1m
Beam dimensions – 300 x 450mm
Column dimensions – 450 x 450mm
Grade of concrete – M20
Grade of steel – Fe 415
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
’c) Ensure node numbering and mass distribution are consistent across floors.
STAAD has predefined values; you can also define custom materials.
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
▪ Dead load
▪ Percentage of live load (usually 25–50% as per IS 1893)
Method:
Commands → Load → Load Case Details → Add → Load Type: Mass → Title: MassModel
Or use:
Examples:
1.5(DL + LL)
1.2(DL + LL ± EQX)
1.2(DL + LL ± EQZ)
1.5(DL ± EQX)
0.9DL ± 1.5 EQ
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
In Post-processing:
• View:
o Mode shapes
o Modal frequencies & periods
o Base shear and response spectrum forces
o Displacement
o Member forces (for design)
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
PROBLEM STATEMENT-
Perform Dynamic analysis of building frame using following details.
Plan dimensions- 20m x 30m
Total height- 30m (G+9 Storeys)
Typical storey height – 3m
All wall thickness – 230 mm
All floor slab thickness – 150mm
Density of RCC material – 25KN/m2
Density of brick masonry – 20KN/m2
Live load on Slab – 4 KN/m2
Floor finish load on Slab - 1KN/m2
Height of parapet wall – 1m
Beam dimensions – 300 x 350mm
Column dimensions – 600 x 600mm
Grade of concrete – M20
Grade of steel – Fe 415
Seismic zone – IV
Response Reduction factor – 5
Importance factor – 1.5
Soil type – Medium
Damping ratio – 5%
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
1. Open STAAD.Pro
2. Create a new model
o Type: Space
o Units: Metric (kN, m)
1. Go to General → Property
2. Select Plate Thickness
o Assign 0.15 m
3. Assign to all shell elements
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
◆ STEP 8: POST-PROCESSING
View Results:
Note: STAAD does not directly design shells, so extract forces and design externally.
Steps:
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
k Assumed Dimensions:
◆ STEP-BY-STEP GUIDE
◆ Step 1: Start a New STAAD Project
¸•?Ç Accuracy Tip: Ensure smooth mesh transition from cylinder to cone.
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
~ 5.1 Self-Weight
{
p = γH × K
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
Examples:
◆ Step 9: Post-Processing
View:
Focus on:
D E PA R T M E N T O F C I V I L E N G I N E E R I N G
S E C A B V I J AYA P U R
D E PA R T M E N T O F C I V I L E N G I N E E R I N G