ForUpload Python R1
ForUpload Python R1
net/publication/334272564
CITATIONS READS
3 13,981
2 authors:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Shivaji Sarvade on 06 July 2019.
Abstract: In India, majority of construction activities are of Python is a high level open source programming language
reinforced concrete structures, therefore design of which is extensively used by programmers across the world
reinforced concrete structures is one of the important for various applications. It is available for free and can work
subject considering employment aspect of Civil easily on personal computers with minimum configuration.
Engineering students. With diversified structural Design of reinforced concrete structure has been carried out
configurations it is imperative to use computer programs for using various commercial softwares available in the market
analysis and design of structures. Many commercial and this has been introduced in the academics to a certain
programs are available for design of reinforced concrete extent as well. However, these softwares are expensive and
structures, however they are expensive and provide limited it is not affordable for most institutes to purchase in
user licence. Every software has inherent assumptions sufficient number. Moreover, use of these readily available
which must be clearly understood before its implementation softwares does not enhance learning aspect much as the
in design. It is always advisable to develop own programs students can get the output with just few clicks.
for design of structures, as normally practised in most Programming on the other hand, can enhance the learning
design firms, either by using MS-Excel spreadsheet or any of the students as they need to develop the program for the
other computer programs. The only disadvantage with these solving the problem with diversified scenarios. Use of
programs is that they are expensive and are not programming in Civil Engineering has lots of advantages
customisable / flexible for individual needs. Python has and languages such as C, C++ are the part of curriculum in
been developing as a most favoured language for computer Civil Engineering in some of the universities. Though this
programing over other languages because of its ease in has not resulted in appreciable success owing to one
programming. A user without any programming fundamental problem that these courses are delivered by a
background can also effectively start developing programs faculty from either Computer Science or by non-Civil
in Python [1]. This tool can be very effectively utilised in Engineering faculty. Here lies the advantage of Python
teaching-learning process of design of concrete structures. compared with the other languages. Any person who does
Advantage with use of Python is that a designer can create not have programming background can start using Python
a customised program for interactive design. Python as it is very interactive and easy to program. Therefore, a
programs can also be converted in executable softwares. Civil Engineering faculty can use this language without
The paper discusses few programs developed using Python consuming extensive time on learning the language and
as a part of enhancement in teaching-learning process. start developing tutorials to utilise this language for his
Implementation of Python programming in undergraduate course.
design course will improve the analytical skills of the
students and have significant contribution to make them 2. Important Python Libraries for Civil Engineering
design industry ready professionals. Python has extensive standard library and as it is an open
source language, many useful libraries are developed for its
Keywords: Python, Structural Design, Reinforced use in data science. Import function of the standard library
Concrete Structures, Interactive Design of Python gives the flexibility to use these libraries in
programming. Some of the libraries which are very useful
from Civil Engineering aspect are discussed here, but one
can search the library (package) for his own purpose from
many available libraries.
A. NumPy
Corresponding Author NumPy[iv] is probably the most important library and most
Shivaji M. Sarvade, Department of Civil Engineering, of the libraries are built using NumPy. It helps in creating
Dr. B.A.T.U., Vidyavihar, Lonere, Maharashtra. the arrays of multi dimension with ease. For example, we
[email protected] have to interpolate for shear strength of concrete based on
1. Python for Civil Engineering grade of concrete and provided percentage of
reinforcement. This data is given in the table number 19 of the latest version. Also, the supporting libraries are under
IS 456-2000. With the use of NumPy, these arrays can be development which may not be compatible with the older
used in programming for further calculations. version. The latest version of Python is Python 3.7.3
released on 25th March, 2019[i] which is used in this paper.
B. SciPy Python lacks in the resources for learning for non-computer
SciPy[v] is another most important library which is science student to certain extent and one has to spend bit of
extensively used for mathematics and engineering. For time on searching the information from the documentation
example, we have to interpolate for values from the code web portal of each library. Though it is not that time
and this interpolation in design of reinforced concrete consuming because of large community websites helping
structure is mostly one dimensional. The SciPy function for Python programming, hard copy references are difficult
“interp1d” seamlessly perform such interpolations for a user to find for the latest version. There are different IDLEs
value in the program from given NumPy array. SciPy can (Integrated Development Learning Environment) for
also be used for performing numerical integration, solving Python like Spyder, PyCharm, Jupyter Notebook [ii] etc. and
differential equations etc. one may find it difficult to choose the IDLE for the task at
hand. It is recommended to use only one IDLE in the
C. Pandas beginning till one is familiar with the IDLE. In this paper,
Pandas[vi] is another important library which gives access to default IDLE of Python is used.
use of MS-Excel in the programming besides many other
built in functions. Pandas are not used in this paper, 5. Illustrative Python Programs for Design Course
however, it is an important library for Civil Engineers Following are few illustrative programs which aim to
handling large data with MS-Excel spreadsheets. explain applications of various Python functions. Python
has extensive documentation available on the official
D. Matplotlib website and online communities. Built in help function
Matplotlib[v] is the library for plotting multiple types of 2D can be used for help on any argument or keyword.
graphs using Python. It can produce high quality bar charts,
histograms, power spectra etc. This library is not used in the
paper but it is very useful library for Civil Engineering.
are illustrated in table no.2. Following python code can be function is that it takes only one argument and the data type
used to check type of section for Fe 415. must be string. The output file can be formatted by using
‘\n’ to add a new line and ‘\t’ to add a tab separator.
6. Conclusion
Use of Python programming in the teaching-learning
process of Design of RCC structure can be very beneficial.
Figure 4 Write function in Python The programming not only develops the analytical skills but
Here f is defined as a function to create a .txt file with the creates a problem solving attitude in the students while
file name Output. Important thing to note with write debugging the programs. This skill also enhances their
References
1. McGrath M. (2018), Python in easy steps, 2013 Edition,
Ninth Reprint, McGraw Hill Education Pvt. Ltd, Chennai
2. BIS, IS 456-2000, Tenth reprint 2007,Bureau of Indian
Standards, New Delhi
A. Web References:
i) https://www.python.org/ (last accessed on 20th May 2019)
ii) https://www.datacamp.com/community/tutorials/data-
science-python-ide (last accessed on 20th May 2019)
iii) https://docs.python.org/3/library/index.html#library-
index (last accessed on 20th May 2019)
iv) https://www.numpy.org/ (last accessed on 20th May
2019)
v) https://docs.scipy.org/doc/scipy/reference/ (last
accessed on 20th May 2019)
vi) https://pandas.pydata.org/ (last accessed on 20th May
2019)