Programming in Civil Engineering
Programming in Civil Engineering
Engineering using
EPANET
Mr Lewis Parsons
Lewis.Parsons@wits.ac.za
- Structural engineering.
- Hydraulics engineering.
- Transportation engineering.
and
Creating designs:
Facilitate the creation of designs for the expected infrastructures and
facilities.
The following MATLAB codes are used to calculate the beam deflection and plot
the results for the beam between the fixed end and the applied load:
% Parameters from the question
E = 200*10^9;
a = 0.8;
b = 0.05;
h = 0.155;
I = (1/12)*(b*h^3);
f = 25000;
Key functionalities:
• Steel and Concrete Design: provides tools for the design of steel and concrete
structures, including the calculation of member capacities, detailing of
reinforcement, and generation of design reports.
• Wind and Seismic Analysis: can evaluate the impact of wind and seismic
forces on structures. Engineers can assess the structural response to these
loads and design structures to withstand them.
1. Structural Engineering
Software package: Prokon used in the analysis of a cantilever beam
1. Structural Engineering
Software package: Prokon used in the analysis of a cantilever beam
1. Structural Engineering
Software package: Prokon used in the analysis of a cantilever beam
1. Structural Engineering
Software package: Prokon used in the analysis of a cantilever beam
2. Hydraulic Engineering
• The main parameters of a hydraulic study are the geometry of the channel, the
fluid properties and the flow parameters.
Determine the minimum diameter (D) of a pipe transported in a 120-m-long pipeline using
MATLAB given the parameters below:
Key functions:
• Network Design and Optimization: Engineers can use EPANET to design and
optimize the layout of water distribution systems. The software aids in
determining the optimal pipe diameters, pump locations, and tank sizes to meet
specific design criteria.
Traffic Congestion
→ a high number of transportation equipment that is not proportional to the
limited capacity of the highway.
→ occurs in densely populated areas with high levels of community
mobilisation.
City of Bandung
Prone to congestion is Tamansari Street, with locations around the Bandung
Islamic University (UNISBA) campus and Pasundan University (UNPAS), also in
areas around the Bandung Institute of Technology (ITB) campus.
https://www.researchgate.net/publication/341492872_Traffic_engineering_simulation_of_campus_area_transportation_using_MATLAB_Si
mEvents/fulltext/5ec41370299bf1c09acbc492/Traffic-engineering-simulation-of-campus-area-transportation-using-MATLAB-SimEvents.pdf
3. Transport Engineering
Study consists of three phases: starting with the preparation, modelling and data analysis,
and the last one is the implementation.
In preparation phase,
Observation data and analysis results are then implemented into the queuing model and
simulated using the MATLAB SimEvents
(discrete event simulation tool) application.
SimEvents is a toolbox in MATLAB that allows you to model and simulate discrete-event
systems. It's often used for modelling and simulating systems where events occur at
specific points in time, such as queuing systems, manufacturing processes, and
communication networks.
3. Transport Engineering
Simulation
The simulation was performed with reference to the data from the traffic observations.
The simulation was performed using the SimEvents application run on MATLAB software.
3. Transport Engineering
Simulation result
The results of the simulation are the waiting time in the queue and the travel time,
Conclusion
• Based on observations and analysis of traffic data, a queuing model has been
built
• The leading cause of congestion is the crossing activities. The entry and exit of
vehicles from campuses and offices causes travel time to increase from an
average of 3 minutes in normal conditions to 10 minutes or more in congested
traffic conditions.
Recommendations
• Implement strict regulations from the government and the campus authorities in
regulating the entry and exit of vehicles during rush hour.
• Building a bridge or underground tunnel for crossing the road will decrease
congestion
2. Hydraulics Engineering
Key functions:
• Traffic Signal Control: used to simulate various traffic signal control strategies,
including fixed-time signals, actuated signals, and adaptive signal control.
2. Hydraulics Engineering
1. Transportation: While transport and traffic engineering are often done with
Excel, using Matlab makes your work much easier.
3. Water Resources: Matlab has been used for many years to compute fluid
dynamics, an important element in constructing dams, Man-made lakes, and
other water resources.