## Recording Voice from Mic in Matlab

Below is sample code for recording voice from mic in matlab:

## RampCalc0.1 – Parametric input for ramp in FE.

This program calculate data of beam, col and slab for ramp. It creates CSV file that can be used in sap2k or any FE package. It requires gnuoctave/matlab to work. You can download it from here:

# Scripts Info:

1. spiral.m = calculate and plot ramp in octave/matlab
2. beams.m  = calculate data of beam for ramp to be used in FE
3. cols.m    = calculate data of columns for ramp to be used in FE
4. slabs.m   = calculate data of triangular slab for ramp to be used in FE

# Background Theory:

Circle plot requires x = r*sin(t) and y = r*cos(t) where t increments from 0 to any given radians. If we increment z from 0 to given height h with some increment, and plot with x and y of a circle,  we will get a 3D spiral curve. Two such spiral curve can be used to calculate data point for ramp. Below is the sample code. You can run this by copy and paste directly in gnu octave or matlab or  create script out of it.

By using, beams, cols and slabs script function, csv data will be created that can be formatted as per any finite element code. Here I formatted it for sap2K.

A spreadsheet with sample sap2k format is attached with this code. Below is video tutorial explaining usage of this code:

## Civil Quiz Engine

You can run this quiz engine from below Quiz Main Page link.

The purpose of this project is listed in following points:

1. Preparation for Competition and Qualification Tests
2. Clarify Civil Engineering Concepts.
3. Hacking Civil Engineering Knowledge for better understanding and Learning.

You can run this quiz engine from Quiz Main Page

## Drafting in Octave/Matlab

Plotting package of octave is very powerful. It can be used to plot architectural drawings. Following steps are required:

1. Sketching the layout on paper while noting down the points and labeling it.
2. Afterwards, the coordinates of point is calculated.
3. Commands of line, gtext and axis limits are used.

For demo, m-file named drawoschool.m (draw octave school) is created which can be downloaded from here

To use this m-file, type:

## Location of Construction Joint

Following points are helpful to provide construction joint in RC Slab, Beam and Raft Foundation:

1. Construction joint shall be provided preferably at a location where stress are zero.
2. Construction joint is provided at one-third or end of support.
3. Also provide key and rebar to transfer shear stress if shear stress is not zero at point of construction joint.
4. Provide construction joints as minimum as possible.
5. Construction joint shall not be left on discretion of contractor. It must be approved by designer.

## Definition:

Construction joints are placed at the end of a day’s work. In slabs, they may be designed to permit movement and/or to transfer load. Often in reinforced concrete a conscious effort is made to clean the joint and bond the next day’s work.[1].

## Explanation:

The number of construction joints in concrete structures should be minimized. If construction joints are necessary to facilitate construction, it is normally aligned perpendicular to the direction of the member. For beams and slabs, construction joints are preferably located at about one-third of the span length. The choice of this location is based on the consideration of low bending moment anticipated with relatively low shear force. However, location of one-third span is not applicable to simply supported beams and slabs because this location is expected to have considerable shear forces and bending moment when subjected to design loads. Sometimes, engineers may tend to select the end supports as locations for construction joints just to simplify construction. [2].

Construction joint is not preferred at midspan. When formwork removed from construction pours (delay in next pouring) and the beam (or slab) has had to cantilever from the previous support to the new construction joint. Also, joints at midspan do not typically work for post-tensioned construction. you need to accommodate anchorages and at approx 1/3 span works best. [3].

You need to provide a joint with key and rebars crossing the joint. In raft footing, at construction joint, shear force may not be minimum/zero. Hence you will have to leave dowels from one pour to another pour to transfer shear. You may calculate area of reinforcement required based on permissible shear stress as 0.45 fy. [4].

You can have your opinion and suggestion in comment box below.

## Reference:

2. A Self Learning Manual – Mastering Different Fields of Civil Engineering Works (VC-Q-A-Method) by Vincent T. H. CHU.
3. eng-tips
4. sefindia.org

1. ACI 302.1, “Guide for Concrete Floor and Slab Construction,” ACI Manual of Concrete Practice.
2. “Slabs on Grade,” ACI Concrete Craftsman Series, American Concrete Institute, Detroit, Mi.
3. “Cracks in Concrete: Causes, Prevention, Repair,” a collection of articles from Concrete Construction Magazine, June, 1973.

## Static:

A static load is time independent. It’s value is constant w.r.t time.

## Dynamic:

A dynamic load is time dependent and for which inertial effects cannot be ignored.

## Quasi-Static/Pseudo-Static:

A quasi-static/pseudo-static load is time dependent but is “slow” enough such that inertial effects can be ignored. Note that a load quasi-static for a given structure (made of some material) may not be quasi-static for another structure (made of a different material).

## Quasi-Dynamic/Pseudo-Dynamic:

In pseudo-dynamic loading, inertia and damping properties are simulated while stiffness properties are acquired from the structure. It is displacement based load given to structure in pseudodynamic (PSD) test. The pseudodynamic (PSD) test method is a displacement-based experimental technique that is used to simulate the seismic response of structures. PSD utilizes feedback signals from a test structure in a numerical integration algorithm to sequentially solve the equations of motion to determine command displacements. The command displacements are imposed on a test structure using hydraulic actuators.

## Understanding Retrofitting, Repair, and Strengthening

In Structural Engineering, retrofitting, repair and strengthening of structure are most commonly used words. It is important to distinguish them and defined them for better understanding.

Retrofitting: Retrofitting is the bringing the structure back to its original strength after damage + further increase in its strength to make it more strong than before.

Repair: Repair is bringing back the structure to its original strength after damage.

Strengthening: Strengthening is increase in strength of structure which is not damaged.

## Lectures on Introduction to Finite Element Analysis

Following are course content for Introduction to Finite Element Analysis –  FEA.

Course Intructor: Prof. Dr. Shahzad Rahman

Introduction to FEA

Very Informative lectures on FEA are also available on Youtube.

## Lectures

Course Outline

Lecture 1: Overview of Finite Element Method – FEM, Historical Background and its Application

Lecture 2: Method of Weighted Residual, Least Square, Collocation, and Galerkin

Lecture 3: General derivation of Finite Element Equilibrium Equations

Lecture 4: Development of Stiffness Matrix for a Beam Element

Lecture 5: Some rules governing relationship between Global and Local Coordinates

Lecture 6: Comments on Numerical Integration

Lecture 7: Error and Convergence in FEM

## Assignments

Assignment 1: Bar Element Problem

Assignment 2: Beam Problem

Assignment 3: Thick walled cylinder Problem

## Solution of Assignments

Note: Solution of Assignment 1 is in Lecture 2. There is excellent solution of axial bar problem using FE and comparing with Exact Solution plot along with matlab code in here.

Solution of Assignment 2

Solution of Assignment 3

## Exams

Midterm Exam Paper

Final Term Paper