Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

Programming and Problem Solving With MATLAB For Mechanical Engineers

Uploaded by

kanishkkg666
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Programming and Problem Solving With MATLAB For Mechanical Engineers

Uploaded by

kanishkkg666
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer Programming for Mechanical Engineers

Course Outcomes:
 Identify the basic commands and operations in the programming
environment.
 Classify the syntax and roles of variables, control structures, and file
I/O operations.
 Describe the principles and applications of vector and matrix
operations.
 Identify and create different types of plots and graphs to represent
data
 Explain the principles of numerical methods for solving equations
and data analysis.
 Apply programming skills and numerical methods to solve
engineering problems in given case studies.
# Programming language may be C / MATLAB / Python / SCILAB
Introduction to Programming Language (6
Hours)
Overview of programming language environment; Basic commands and
operations; Variables and assignment operations; Data types and type
conversions; Arithmetic operations and built-in functions
Programming Fundamentals (9
Hours)
Script files and functions; Input and output operations; Control structures:
Conditional statements (if-else), Switch-case structures, Logical operations
and expressions, For loops, While loops, Nested loops and control flow
Vectors and Matrices (6
Hours)
Creating and manipulating vectors; Creating and manipulating matrices;
Matrix operations; Linear algebra with programming; Solving systems of
linear equations
Data Visualization (9
Hours)
Basic 2D plotting; Customizing plots: titles, labels, and legends; Plotting
multiple data sets; Subplots and figure properties; 3D plotting basics;
Advanced plotting techniques
Functions and File I/O (3
Hours)
Writing and calling functions; Function handles and anonymous functions;
Reading from and writing to files

Numerical Methods (7
Hours)
Solving equations numerically; Root finding methods; Numerical
differentiation; Numerical integration; Curve fitting and interpolation;
Polynomial fitting; Spline interpolation and least squares fitting
Applications in Mechanical Engineering (5
Hours)
Solving Problems: Thermal analysis of boilers, engines, turbines, and
compressors (examples based on Application of first law of
thermodynamics); Fluid mechanics problems; Internal combustion engine
problems; Engineering mechanics problems

Reference Books:
 "C Programming: A Modern Approach" by K. N. King, W. W. Norton &
Company, 2nd edition, 2008
 "MATLAB for Engineers" by Holly Moore, Pearson Education Inc,
2022
 "MATLAB: A Practical Introduction to Programming and Problem
Solving" by Stormy Attaway, Butterworth-Heinemann, 2022
 "Python Crash Course" by Eric Matthes, No Starch Press; 2nd
edition, 2019
 "Automate the Boring Stuff with Python" by Al Sweigart, No Starch
Press; 1st edition, 2015
 "Introduction to Scilab: For Engineers and Scientists" by Sandeep
Nagar, APress; 1st edition, 2017

Practicals:
1. Create a program to manipulate vectors and matrices, including
operations like addition, subtraction, scalar multiplication, and
transposition.
2. Write a program to solve systems of linear equations using matrix
inversion and matrix multiplication.
3. Write a program that uses conditional statements (if-else) to
determine the roots of a quadratic equation based on user input
coefficients.
4. Develop a program to plot 2D graphs of mathematical functions,
customize the plots with titles, labels, and legends, and plot multiple
data sets on the same graph.
5. Create a program that generates a 3D plot of a mathematical
function, such as a surface plot or a contour plot, and visualize it
with appropriate labels and color mapping.
6. Develop functions to read data from text files, perform operations
on the data (e.g., sorting, filtering), and write the results back to
new files.
7. Develop a program to simulate and analyze thermal systems, such
as boilers, engines, turbines, or compressors, based on the
principles of the first law of thermodynamics.
8. Develop a program to solve fluid mechanics problems and/or
engineering mechanics problems
These programs cover various aspects of computer programming and
problem-solving techniques relevant to mechanical engineering
applications. They provide hands-on experience in utilizing programming
for data manipulation, visualization, and numerical analysis in mechanical
engineering contexts.

You might also like