Saturday, September 12, 2020

Vertical Equal Tangent Parabolic Curve - Solution Code in Python (Computer Program)

 Hi,

Now solving the vertical parabolic curve for the stations and elevations at the full stations is easier with the coding. A computer program that I have coded for you runs on Pycharm (Python). Pycharm is a software that is used for offline coding on your personal computer. If you have a good Internet connection, you can produce the code on online platforms such as Jupyter. 



 You have to put the value of the grades, length of the curve, station PVC and Elevation of PVC. It will calculate all other stations and elevations for you. 

Code: 

import math

g1 = input('Grade G1 (%) = ')
a = float(g1)/100
g2 = input('Grade G2 (%) = ')
b = float(g2)/100
Length = input('Length of the vertical curve = ')
L = float(Length)
u = input('unit = ')
A = float((b - a)/L)
print('Rate of change of grade = k = (G2-G1)/L =', A)
print('Let x be the distance from PVC to a point on the curve,'
' and Y be the respective elevation.')
c = float(input('Station(PVC) = Xo = ',))
d = float(input('Elevation at PVC = Yo = ',))
print(f"Equation of a parabolic equal tangent curve, "
f"Y = Yo + G1x + kx^2/2 = {d} + {a}x + {A}x^2/2 ..eq1")
x = 100*((1+c//100) - c/100)
X = c + x,
print('1st Full Station is', X, 'at x =', x, u, 'from PVC')
Y = d + a*x + A*(x**2)/2
print('Putting the value of x in eq1, Elevation, Y= ', Y, u)
x = x + 100
while x < L:
X = c + x
Y = d + a * x + A * (x ** 2) / 2
print('Similarly, next Full Station is', X, 'at x =', x, u, 'from PVC')
print('Elevation, Y = ', Y, u)
x = x + 100
X = c + L
print('End Station, EVC = PVC + L =', X, u, 'at x = L = ', L, u)
x = L
Y = d + a*x + A*(x**2)/2,
print('Put x in eq1, Elev EVC = ', Y, u)

Output Sample: 
Grade G1 (%) = 3
Grade G2 (%) = -2
Length of the vertical curve = 1000
unit = m
Rate of change of grade = k = (G2-G1)/L = -5e-05
Let x be the distance from PVC to a point on the curve, and Y be the respective elevation.
Station(PVC) = Xo = 340
Elevation at PVC = Yo = 100
Equation of a parabolic equal tangent curve, Y = Yo + G1x + kx^2/2 = 100.0 + 0.03x + -5e-05x^2/2     ..eq1
1st Full Station is (400.0,) at x = 60.00000000000001 m from PVC
Putting the value of x in eq1, Elevation, Y=  101.71 m
Similarly, next Full Station is 500.0 at x = 160.0 m from PVC
Elevation, Y =  104.16 m
Similarly, next Full Station is 600.0 at x = 260.0 m from PVC
Elevation, Y =  106.11 m
Similarly, next Full Station is 700.0 at x = 360.0 m from PVC
Elevation, Y =  107.56 m
Similarly, next Full Station is 800.0 at x = 460.0 m from PVC
Elevation, Y =  108.50999999999999 m
Similarly, next Full Station is 900.0 at x = 560.0 m from PVC
Elevation, Y =  108.96 m
Similarly, next Full Station is 1000.0 at x = 660.0 m from PVC
Elevation, Y =  108.91 m
Similarly, next Full Station is 1100.0 at x = 760.0 m from PVC
Elevation, Y =  108.36 m
Similarly, next Full Station is 1200.0 at x = 860.0 m from PVC
Elevation, Y =  107.31 m
Similarly, next Full Station is 1300.0 at x = 960.0 m from PVC
Elevation, Y =  105.76 m
End Station, EVC = PVC + L = 1340.0 m at x = L =  1000.0 m
Put x in eq1, Elev EVC =  (105.0,) m

Thanks!

Tuesday, December 17, 2019

Check Points of Buying a Flat/House

Hi,
Building a house is a mutual work of the builder, government and the buyers. A civil engineer plays its role in designing and constructing the house, and once he does his job, it is the buyer who has the last say if he wants to buy the house or not. If the house looks good, a buyer would love to buy the house, but there are other certain things that must be checked before buying the house from a builder. This blog post is about those important things that I have learned after buying my own flat but should have known them before.

 Check if the builder has got the project registered in the RERA website of the concerned state. For example, I bought a flat in Punjab, I checked the Punjab RERA website to see the project name under the registered projects list. It is very important that you do it because this will probably save you from any kind of possible cheating and fraud.

Things to check in the builder's RERA profile:

(A)
See if the project registration period has not expired. If it is expired, then you must avoid buying the flat.

(B)
See if there is a specified format of 'Agreement of Sale' in the uploaded documents section. You must insist to use this agreement format to finalise a deal with the builder. It has been seen that the builder asks you to sign the agreement as per his own terms and clauses which most of the times would be partial towards you. On the other hand, the format given by RERA will have the clauses which will give you all the rights that RERA has to offer to the buyers.
If you sign an agreement different from the one given by the RERA it is highly likely that builder would harass you in some way, like forfeiting your booking amount in case of cancellation of the deal, asking you for unfair maintenance charges, having partial interest rates for compensation in case of delay in possession of the flat etc.

(C)
If the project is shown as 'completed' in the RERA website then check for the completion and occupancy certificates. They would be uploaded in the website and hence you must check it. Remember that even if you get the registry papers of the flat you are still at risk. Until and unless you have the occupancy and completion certificates you are at the risk of losing your flat. You want to know why!? Please read about Campa Cola building in Mumbai.

(D)
 Don't give more than 10% of the money as the booking amount, this is the amount specified by RERA. If the builder asks you for more, please ask him to read the RERA rules.

(E)
 Ask the builder for the layout plan,  and as-built-plan and layout of the society.

(F)
 Check if the builder has all the clearance certificates and NOCs uploaded on the RERA account. You can see all these papers for free by signing up on the RERA website.

Once everything is okay, only then you must invest your money.

Thanks! 

Saturday, October 19, 2019

All the basic Soil Water and Air Relations and Formulae, Three phase diagram II Soil Mechanics

Basic Soil and Water Relationships.
 Soil is considered a three-phase material, made of soil, water and air. The basic formulae used are written below. 




Sl No
Relationship in mass density
Relationship in unit weight
1
n = e/(1+e)
n = e/(1+e)
2
e = n/(1-n)
e = n/(1-n)
3
na = n ac
na = n ac
4
P= (G+Se)Pw/(1+e)
Y= (G+Se) Y w/(1+e)
5
Pd = GPw/(1+e)
Yd = G Yw/(1+e)
6
Psat = (G+e)Pw/(1+e)
Ysat = (G+e) Yw/(1+e)
7
P’ = (G-1)Pw/(1+e)
Y’ = (G-1) Y w/(1+e)
8
e = wG/s
e = wG/s
9
Pd = P/(1+w)
Yd = Y/(1+w)
10
P= (1-na)G Pw/(1+wG)
Y= (1-na)G Y w/(1+wG)


Notations used: 
n = porosity, 
e = void ratio, 
na = air content,
P = Density,  Pd= dry density, 
Psat = saturated density, P' = submerged density
Y = Unit weight density, Yd = dry unit weight, 
Ysat = Saturated Unit weight, Y' = submerged unit weight
G = Specific Gravity
S = Saturation
w = water content

Thanks!

Monday, January 21, 2019

How To Operate a Total Station - Steps - All components explained

Hi,

Total Station(TS) is a surveying instrument used to find the direction angles and distances of various lines. In this post, you will learn how to operate a Total Station. But first, let's know the components of a TS. 

Components.
These images show the components of TS. The carrying handle can be fixed using to handle tightening screws. The sighting collimator is used for the rough sight of the prism. The Eyepiece is used for sighting the prism. Together with the eyepiece is telescope holding grip which is used to transit the telescope. 



All these are shown in the image below. Telescope holding grip is used for transiting the telescope, and telescope focusing knob is used to clear the image on the diaphragm.



Then there is a vertical tangent screw used for the small vertical movement of the TS so as to get the clear and straight line of sight so that the crosshairs intersect the prism. Also, there is a vertical motion clamp used to fix/lock the position of the vertical tangent screw.



Similarly, there is a horizontal tangent screw and a horizontal motion clamp, which is used to control the horizontal rotation of the TS. 
There are two display units, and the keys adjacent to them. The optical plummet screw is used to sight the ground and is used to level the TS.  



There are three levelling screws in the tri-bach which is fixed using the tri-bach fixing lever. 



When you power on the Display unit, it gets into its default mode - i.e.angle measurement mode. Display unit uses dot matrix LCD, which has four lines(rows) and 20 characters per line. The upper three lines display the measured data, and bottom line displays the softkeys' functions which change with the measuring mode.


The image shown above shows all the keys with their respective functions. 

Now before we take any measurements, it is important to do the centering of the TS and the prism. It is done as explained below.


Step.1 Level the Total Station(TS)

Put the Total Station on the Tripod Stand. The approximately level the lower bubble by arranging the three legs of the tripod stand.


Then note that there is a horizontal bubble tube, in which the bubble will not be at centre if the total station is not levelled. 


Bring this bubble tube parallel with the imaginary line joining two of the three screws. And then rotate both of them together either inwards or outwards. Note the movement of the bubble and rotate the screws until the bubble comes to the centre. 

Now rotate the total station such that the bubble tube is perpendicular to that imaginary line between the two screws. When you do so, the bubble may move from the central position, so now rotate the third screw until it again comes to the centre. Now bring the tube to the initial position and again check the bubble and repeat the process until the bubble is at the centre in both of the positions. 
Now your Total Station is Levelled. 


Step.2 Put the Stand and Prism at the station of interest and Level it

There is a stand and a prism which is sighted from the TS. Fix the prism on the stand, and note that there a bubble on the stand too, so you have to level the stand too. 


Simply fix the vertical position of the stand until the bubble is centred.  Now sight the TS through the sighting collimator. 




Now that centring is done, let's take the measurements to find the horizontal distance between two points.


Horizontal Distances, slope distance, co-ordinates and angle Measurement using Total Station. 

So here we have two points, one - where the instrument is set up and the other where the prism is. Use the sighting collimator to do the approximate bisection of the prism.
 Then sight through the eyepiece and use the focussing screw to bisect the prism with the crosshairs. Then tighten up the vertical tangent screw using the vertical tangent clamp. 
Use the eyepiece to get a clear prism image. Once it is done, click on the distance measurement mode key.
Display Unit of Total station showing the Slope Distance(SD) 

Similarly, when you click the co-ordinate key on, it will show the coordinates (x,y,z) of the station. And when it is in angle measurement mode, it will display horizontal angle with the right face(HR) and vertical angle(V.) 

Thanks!




Monday, August 6, 2018

Sand Cone Method to Determine Density - A solved Example

Hi,
This is an example of a problem that deals with the application of the Sand Cone Test to determine the density of the compacted soil. The solution is given in details. 

Problem: 
A sand cone density test was conducted on soil compaction at a land development project. It has the following data:
the volume of the standard Proctor mould = 1/30 cubic feet
Mass of the sand drained to fill the mould = 3.30 lbs
Mass of the sand to fill the cone = 0.53 lbs
Mass of the soil dug from the hole = 8.11 lbs (and have water content w = 11.11%)
Mass of jug + Sand + Cone before used to fill the hole = 10.20 lbs
Mass of jug+ Sand cone after used = 3.20 lbs

Determine: (A) The density of the Ottawa Sand(pcf)
                    (B) The volume of the cone (cubic feet)
                    (C) The volume of the hole dug  + Cone (Cubic ft)
                    (D)  The volume of the hole dug
                    (E)  The dry density of the compacted soil

Solution (see image): 




Thanks!

Monday, July 30, 2018

Treating the Dredged Marine Sediment with Bentonite and OPC

Hi
Sediments that are dredged from the water bodies such as reservoir, lakes or oceans are weak in strength and highly compressible, in general. This is nothing more than a waste material. However, it can be treated with certain chemicals such as the Bentonite and OPC(Ordinary Portland Cement) to give it the desired properties of a fill material in back-fills. 





It is found that the OPC acts as the binder and provides the strength, while the Bentonite provides the volume and also the strength to the clay. Therefore this treated soil can then be used as the fill, or also it can be used to form the dikes or trenches above the water surface. 

Thanks!

Tuesday, July 10, 2018

Solved Example of Pinned Truss - the average normal and shear stresses in members and pins respectively and Pin Diamater

Hi,
A simple truss has pin-connected members. The members carry only axial forces, but the pins have to bear the shear stresses. Given example shows the calculation for the minimum required diameter of pin connected in double shear.

Problem: Two structural members AB and BC (shown below) are connected by a pin at B that is subjected to two 5-kip horizontal forces. The pins used at A and C are identical to the pin at B. The allowable shear stress for pins is 15 ksi, and the allowable bearing stress for members AB and BC is 20 ksi. Determine:
(a) the maximum average normal stress in members AB and BC.
(b) the minimum required diameters of the pins.


Solution:


Cut and Fill Volume for given GL and FL profile, using Python Code

Hi, Please don't get afraid by the length of the code. It is very simple to copy and paste it into your Python IDEs such as Pycharm or V...