The book shortly introduces finite element concepts and an extensive list of MATLAB codes for readers to use and modify. The book areas range from very simple springs and bars to more complex beams and plates in static bending, free vibrations, buckling and time transient problems. Matlab Codes For Finite Element Analysis Solids And Structures Solid Mechanics And Its Applications MATLAB Codes for Finite Element Analysis: Solids and Structures (Solid Mechanics and Its Applications Book 157) - Kindle edition by Ferreira, A. Download it once and read it on your Kindle device, PC, phones or tablets. Use features like.
This page contains links to MATLAB codes used to demonstrate the finitedifference and finite volume methods for solving PDEs. This page also containslinks to a series of tutorials for using MATLAB with the PDE codes.
The finite volume codes can handle non-uniform meshes and non-uniformmaterial properties. Therefore, these codes could be used or adapted topractical problems, and have been done so by me and others.
Contents
Here are direct links the web pages in this sereis. Short descriptions ofthe pages, with links, are given below.
Beware! I have tested the codes on a variety of demonstration problems.The codes are qualitatively correct for the test cases, and in several of thosecases I show that the code exhibit the correct asymptotic truncation error. Aswith any tool, however, these codes can be applied incorrectly or to asituation they were not designed to handle. Although the codes are designed tobe flexible, and have been tested fairly extensively, I do not guaranteethat they will be useful to you. Please let meknow if you find any bugs.
Finite-Difference Models of the Heat Equation
This page has links MATLAB code and documentation for finite-difference solutions theone-dimensional heat equation
where is the dependent variable, and are the spatial and time dimensions,respectively, and is the diffusion coefficient.
Finite Volume model of 1D convection
This page has links to MATLAB code and documentation for the finite volumemethod solution to the one-dimensional convection equation
where is the -direction velocity, is a convective passive scalar, is the diffusion coefficient for , and is the spatial coordinate.
Finite Volume model of 1D fully-developed pipe flow
This page has links to MATLAB code and documentation for the finite volume solution to the one-dimensional equation for fully-developed flow in a round pipe
where is the axial velocity, is the pressure, is the viscosity and is the radial coordinate.This is a simple and well-known flow with the exact solution
where is the pipe radius.
Finite Volume model in 2D Poisson Equation
This page has links to MATLAB code and documentation for the finite volumesolution to the two-dimensional Poisson equation
where is the scalar field variable, is a volumetric source term,and and are the Cartesian coordinates.This equation is a model of fully-developed flow in a rectangular duct, heat conductionin rectangle, and the pressure Poisson equation for finite volume models of fluid flow.
Set up MATLAB for working with the course codes
This page gives recommendations for setting up MATLAB to use the finite-differenceand finite-volume codes for the course. The main goals are to create a library folderfor storing the codes after downloading them, and setting up MATLAB so thatcode library is always included in the search path.
This page is part of a series of MATLAB tutorials for ME 448/548:
- Set up MATLAB for working with the course codes – This page
Basic MATLAB Practice
This page walks you through some practice exercises to help develop your MATLAB skills.It's part of a series of MATLAB tutorials for ME 448/548:
- Basic MATLAB Practice – This page
Practice with PDE codes in MATLAB
This page demonstrates some basic MATLAB features of the finite-difference codesfor the one-dimensional heat equation. This is a MATLAB tutorial without muchinterpretation of the PDE solution itself. Consult another web pagefor links to documentation on the finite-difference solution to the heat equation.
This page is part of a series of MATLAB tutorials for ME 448/548:
- Practice with PDE codes in MATLAB – This page
Debugging MATLAB Code
This page walks you through some practice exercises to help develop your MATLAB skills.
Introduction to debugging
This page builds on the previous examples to introduce debugging. Any substantialprogramming effort involves a lot of debugging. Using the built-in debugger willmake that effort more productive.
In addition to the examples on the rest of the page, or maybe even before youwork through those examples, I recommend the following YouTube videos that introducethe debugger
Detection Matlab Code For Finite Type
- MATLAB Debugging Tutorial (11 minutes) by Ilya Mikhelson
- Lesson 4.5: Debugging (25 minutes) from the 2015 version of theCoursera course, Introduction to programming with MATLAB.
Both of those videos give a good introduction to the debugger. You probably only needto watch one. The second one provides a bigger perspectiveon MATLAB programming, and I got a lot out of it while watching at 1.5x speed. :-)