# MATLAB Python and CFD using Solidworks for Mechanical Engineering Applications

Python Matlab and CFD using Solidworks for Mechanical Engineering Applications

• 0% EMI Option Available
• Domain : CFD
• Pre-requisites : For Mechanical & Automotive Engineers

### A Quick Overview

In this program, you will be trained in the following three Softwares.

• MATLAB
• Python
• Flow Simulation using SolidWorks

# GET COURSE COUNSELLING TODAY

Get a 1-on-1 demo to understand what is included in the course and how it can benefit you from an experienced sales consultant. The demo session will help you enroll in this course with a clear vision and confidence.

### Matlab SYLLABUS

#### 1Introduction to MATLAB

You will be introduced to MATLAB and you will be taught the basics of MATLAB by using a top-down approach. That is, you will start directly by solving problems and stop in the required places to learn about the fundamentals of programming.

• You will learn the MATLAB syntax and the various commands used in it.
• You will understand the methods and the ways to use the commands in different scenarios.
• You will learn to manipulate your own calculations and comparisons
• You will learn about the use of arrays.
• You will learn about the Functions used along with plotting, creating movies, creating figures etc

#### 2Forward Kinematics Simulator

In this module, you will write programs to simulate a 2R Robotic Arm Manipulator
• You will animate the manipulator motion using ImageMagick.
• Here you will learn about the simulation part
• And you will learn how to create a movie clip along with the spatial motions of Robotic arm
• You will learn how the FOR loop plays a role in the programming
• And how the “hold on” command works
• And about the arrays and linspace commands

#### 3Air Standard Cycle Simulator

In this module, you will write code to simulate an Air Standard Cycle.

• Your code will solve the piston kinematics equation to calculate the volume trace.
• Your code will create PV diagrams for different operating conditions.
• You will learn how to work on various thermodynamic relationships
• You will learn about the pressure-volume variations.
• And you will learn how the order of the program is significant
• Functions can be cleared through this challenge
• You will also learn about the plots, legends used in the graphs
• Finally, you will learn about the piston kinematics

#### 4Vibrations and Dynamics

Most mechanical engineering devices are dynamic in nature. Understanding the effect of forces on the product motion is of utmost importance. The equation of motions for these systems forms a set of Ordinary Differential Equations.
• Implement BDF and FDF methods to solve ODEs
• Learn about the real use of differential equations
• How the differential equations connect to the real-world applications and how to solve those differential equations
• You will learn about the ODE solvers, and also about the syntax of ODE’s, and also about various supplementary commands

#### 5Curve fitting and regression

• An engineer needs to understand the dependence between system input and output. Curve-fits are a great tool to do this. In this module, you will learn how to perform curve fits with MATLAB.
• Curve fits and regression are the part of Machine learning and Neural Networks
• Curve fitting helps you to make a comparison study with the original ideal data set with the experimental one
• And you will learn about the polynomials and their best fits
• You will learn about the PolyFit and PolyVal commands
• You will know how to calculate the errors
• You will learn about SSR, SSE, SST

#### 6Genetic Algorithm

• Genetic Algorithm is a procedure to optimize multi-parameter systems. It is used to optimize different types of systems and processes.
• You will learn about the optimization techniques used in industries
• Genetic Algorithm is one of the optimization techniques used widely and you will learn how GA works
• You can easily optimize their values using the Genetic Algorithm
• You will know about the GA syntax and how to get the global maxima
• You will also learn about the options, they can include apart from the default one and also about the stalagmite functions and how it works.
• And also about the population size, number of generations, fitness value, and termination of further generations

### Projects Overview

File parsing

Highlights

• This will be your final project. You will write a code to read NASA-II polynomial file and calculate thermodynamic parameters.
• You will know how to write and read a file
• And you will learn about the parsing techniques
• You will know how to use an external file to use inside the MATLAB for manipulations
• You will learn the commands, load, write, read and fgetl(to get the lines)
• And commands like strcomp and strsplit, this is for string manipulations
• You will also learn about the loops and conditions

SIMULATOR

Highlights

• This project will define the entire Rankine cycle calculations which can be done by using the Steam tables
• So this project will cover all the topics learnt before and also helpful in calculations
• In this project, the state points are found and the parameters are taken by loading the steam table

### Python SYLLABUS

#### 1Introduction to Python

This module provides an introduction to Python using different mathematical operations and performing operations such as,
• Array manipulations
• Plotting and understanding the relationship between 2 variables
• Looping using one or more looping conditions

#### 2Plotting and Visualization

In this module, you will write programs that plot the p-v line of an air standard cycle and also create animations for a robotic arm with 2 degrees of freedom and simulating the motion of a pendulum.

In this module, you will learn the following,
• Understanding the relationship between 2 variables using plots
• Saving plots and creating animations using ImageMagick
• Using tables

#### 3Solving Dynamic Equations

In this module, you will learn to solve ordinary differential equations using the scipy module. This is of particular interest since differential equations govern the equations of motion for various mechanical systems and this method can be used to numerically solve initial value problems.

• Using odeint to solve initial value differential equations
• Create a pendulum using the available coordinates
• Plotting and saving images
• Creating an animation using ImageMagick

#### 4Curve Fitting and Regression

In this module, you will learn how to perform curve fitting using Python. Curve fitting finds widespread use in predicting the relationship between different variables for which an existing relationship doesn’t exist. Furthermore, curve fitting can also be used as a predictive tool in machine learning and AI to predict what will happen in the future using the trend of the plot.

• Curve fitting using the scipy module
• Learning how to check how well the data has been fit

#### 5Understanding Iterative Solvers

This module also covers iterative solvers, which find widespread use in the solution of polynomial equations and other aspects like understanding how to obtain the solution in the most optimized manner possible.

• Using an iterative solver
• Understanding how to use while loops

#### 6Data Analysis

The final module of the coursework deals with data manipulation which is used in many industries like CAE and CFD to post-process the results from the simulation. This is particularly useful if the same simulation is run multiple times for different configurations and this code can be used to obtain the data automatically.

At the end of this module, you will be able to,
• Taking data from a file and manipulate the data to create meaningful plots
• Make necessary calculations
• Automate the post-processing procedure

### Projects Overview

Iterative Solver

Highlights

In this project, you will learn to use the Newton-Raphson method, which is an iterative solver to solve for the solution of a polynomial equation. Here, you will be understanding the effects of using a relaxation factor and using plots and tables to visualize the results.

These are the steps involved in this project,
• Using an iterative solver
• Understanding how to use while loops
• Plotting and creating a table

Data Analysis

Highlights

In this project, you will learn how to manipulate the data from a given text file and create plots for different variables based on user input.

The steps involved in this project are,
• Taking data from a file and manipulating the data to create meaningful plots.
• Calculate engine parameters from the file for the given data
• Write a program that is modular and can use the same logic to obtain data from files of the same type.

### Flow simulation using Solidworks SYLLABUS

#### 1Introduction to CFD and SOLIDWORKS Flow Simulation:

Introduction to the concepts of Computational Fluid Dynamics (CFD).

#### 2Steady-state Simulation of a Pipe Flow

You will learn to model simple geometry using SOLIDWORKS. You will also learn how to set up a fluid study in SOLIDWORKS, and understand necessary boundary conditions, along with the initial conditions to run the simulation. In this module, you will learn how to change the mesh settings as well.

You will be trained in the following.

• Simulating flow through a pipe is a classical CFD problem. It offers insight into the various inputs that go into running a CFD simulation.
• Introduction to parametric studies and grid dependency test.
• Understand the concepts of global maxima and global minima.

#### 3Transient Flow Simulation of Flow over a Cylinder

You will be introduced to the concepts of external simulation and transient analysis. You will be learning how to calculate the total flow time and output time step.

#### 4Flow Over an Airfoil

You will learn about how to import the NACA airfoil data into SOLIDWORKS to create airfoil geometry.

You will also learn how to,
• Simulate the flow over a 2D NACA airfoil
• Calculate the drag and lift forces for the various angles of attacks.

#### 5Flow over an IC Engine Valve

You will be learning the effect of the valve lifts over the mass flow rate. You will learn how to create flow trajectories.

And perform the following calculations,
• Perform transient analysis at different valve lifts
• Create a plot of lift vs mass flow rate

#### 6 Flow-through a Simple Centrifugal Pump

In this module, you will be introduced to the concept of moving reference frame while also learning about the rotating body feature in SOLIDWORKS.

You will perform the following projects within this module,

• Using the MRF approach to simulate flow through a Centrifugal pump
• Plotting a pump performance curve

### Projects Overview

Pipe

Highlights

You will calculate the velocity based on the Reynolds number. Internal flow simulation will be carried out with varying Reynolds number and you will understand the effect of the fully developed flow.
The steps involved in this project are,
• Create a simple pipe model and make it as a watertight geometry to carry out the internal simulation.
• The parametric study will be carried out with varying Reynolds number and a line probe is plotted to analyze the fluid flow.
• Velocity profiles will be normalized using the line probe.

Cylinder

Highlights

You will set up a transient simulation by calculating the total analysis time and the output time. The steps involved are,
• The simulation will be carried out for varying Reynolds numbers from the laminar to the turbulent region.
• Based on the velocity and pressure plot, an animation will be designed.

Airfoil

Highlights

NACA airfoil data will be imported along with this a solid geometry will be constructed. The external simulation will be carried out at varying angles of attack to find the lift and the drag forces.
The steps involved in these projects are,
• Analyze the air-flow over a NACA 0017 airfoil
• Compare the lift and drag force for varying angle of attacks
• Plot the velocity and the pressure plot.

Flow bench

Highlights

A simple IC engine flow bench geometry will be designed with an inlet valve. The position of the valve is opened parametrically and flow analysis will be performed.

The following steps are involved in this project,

• A parametric study will be carried out to determine the best grid size.
• The position of the valve is changed using dimensional constraints in the parametric study.
• The effect of the valve lift over the mass flow rate is analyzed.

Centrifugal pump

Highlights

Simple Centrifugal geometry is designed to perform the internal flow simulation using the following steps,

• MRF approach is used for the centrifugal pump analysis.
• The pressure ratio between the inlet and outlet is plotted.

# Flexible Course Fees

Choose the plan that’s right for you

Basic

2 Months Access

# \$66.3

Per month for 3 months

• Access Duration : 2 months
• Mode of Delivery : Online
• Project Portfolio : Available
• Certification : Available
• Email Support : Available
• Forum Support : Available

# \$132.6

Per month for 3 months

• Mode of Delivery : Online
• Project Portfolio : Available
• Certification : Available
• Individual Video Support : 12/Month
• Group Video Support : 12/Month
• Email Support : Available
• Forum Support : Available
• Telephone Support : Available
• Dedicated Support Engineer : Available

### Testimonials

Companies hire from us

See all

### Certification

• Top 5% of the class will get a merit certificate
• Course completion certificates will be provided to all students
• Build a professional portfolio