A MATLAB primer for technical programming in materials science and engineering
A MATLAB® Primer for Technical Programming for Materials Science and Engineering draws on examples from the field, providing the latest information on this programming tool that is targeted towards materials science. The book enables non-programmers to master MATLAB® in order to solve problems in ma...
Saved in:
| Main Author: | |
|---|---|
| Format: | eBook Book |
| Language: | English |
| Published: |
Duxford
Woodhead Publishing
2020
Elsevier Science & Technology Elsevier Science and Technology Books, Inc |
| Edition: | 1 |
| Subjects: | |
| ISBN: | 9780128191156, 0128191155, 0128191163, 9780128191163 |
| Online Access: | Get full text |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Table of Contents:
- 5.4.4. Fitting of the specific heat of a metal with the Basic Fitting interface -- 5.4.5. Fitting the dynamical viscosity-temperature-pressure data by optimization -- 5.5. Questions and exercises for self-testing -- 5.6. Answers to selected questions and exercises -- Chapter 6: ODE-, PDEPE-solvers, and PDE Modeler tool with applications -- 6.1. Ordinary differential equations and ODE solver -- 6.1.1. About numerical methods for solving ODEs -- 6.1.2. The ode45 and ode15s commands for solving ODEs -- 6.1.2.1. ODE solution steps -- 6.1.2.2. Extended command forms of the ODE solver -- 6.1.3. Supplementary commands of the ODE solver -- 6.2. Solving partial differential equations with PDE solver -- 6.2.1. About numerical methods for solving PDEs -- 6.2.2. The pdepe command for solving one-dimensional PDEs -- 6.2.3. The steps for solving a PDE with the pdepe command -- 6.3. Partial differential equations with the PDE toolbox interface -- 6.3.1. Solution steps in the PDE Modeler -- 6.3.2. Exporting the obtained solution and mesh to the MATLAB workspace -- 6.3.3. Conversion of the solution from the triangular to rectangular grid -- 6.3.4. Drawing in PDE Modeler -- 6.4. Application examples -- 6.4.1. Examples with the ODE applications -- 6.4.1.1. Heat transfer with a temperature-dependent material property -- 6.4.1.2. Polymeric materials kinetics -- step-growth polymerization -- 6.4.2. Examples with one-dimensional PDEs -- 6.4.2.1. One-dimensional diffusion equation with Neumann boundaries -- 6.4.2.2. The diffusion Brusselator PDEs -- 6.4.3. Examples with solving the two-dimensional PDEs with the PDE Modeler -- 6.4.3.1. Two-dimensional heat transfer equation with temperature-dependent property of a material -- 6.4.3.2. Two-dimensional transient diffusion equation with coordinate-dependent initial conditions -- 6.5. Questions and exercises for self-testing
- 4.5.2. Dynamic viscosity: Reyn to pascal-second and vice versa convertor -- 4.5.3. Thermal conductivity data interpolation -- 4.5.4. Density of a solid at given pressure and temperature -- 4.5.5. Maximal radiance of a surface by the Planck's law -- 4.5.6. Isochoric thermal pressure coefficient of a substance in the solid state -- 4.5.7. Isothermal compressibility for a gaseous substance -- 4.6. Questions and exercises for self-testing -- 4.7. Answers to selected questions and exercises -- Chapter 5: Curve fitting commands and the Basic Fitting tool -- 5.1. Fitting with polynomials and some other functions -- 5.1.1. Fitting by polynomials -- 5.1.2. Fitting with nonpolynomial functions -- 5.1.3. About the goodness of fit -- 5.2. Interactive fitting with the Basic Fitting interface -- 5.2.1. The ``Plot fits´´ panel items -- 5.2.1.1. ``Select data´´ field -- 5.2.1.2. ``Center and scale x data´´ box -- 5.2.1.3. ``Check to display fits on figure´´ area -- 5.2.1.4. ``Show equation´´ box and ``Significant digits´´ field -- 5.2.1.5. ``Plot residuals´´ box with two adjacent fields -- 5.2.1.6. ``Show norm of residuals´´ box -- 5.2.2. The ``Numerical results´´ panel items -- 5.2.2.1. ``Fit´´ dropdown list -- 5.2.2.2. ``Coefficients and norm of residuals´´ box -- 5.2.2.3. ``Save to workspace´´ button -- 5.2.3. The ``Find y=f(x)´´ panel items -- 5.2.3.1. ``Enter value(s) or a valid MATLAB expression´´ -- 5.2.3.2. ``Save to workspace´´ button -- 5.2.3.3. ``Plot evaluated results´´ box -- 5.2.4. An example of using the ``Basic Fitting´´ tool -- 5.3. Single- and multivariate fitting via optimization -- 5.4. Application examples -- 5.4.1. Fitting of the compressibility factor with the virial series -- 5.4.2. Thermal conductivity fitting with the 3rd and 4th degree polynomials -- 5.4.3. Fitting the stress-strain data by the nonpolynomial equation
- 3.4.4. Transient one-dimensional diffusion -- 3.4.5. Temperature of a square plate -- 3.4.6. Velocity distribution of the gas molecules -- 3.5. Questions and exercises for self-testing -- 3.6. Answer to selected questions and exercises -- Chapter 4: Writing programs for technical computing -- 4.1. Scripts and script files -- 4.1.1. How to create, save, and run the script file -- 4.1.1.1. Saving the script file -- 4.1.1.2. About the Current folder -- 4.1.1.3. Running script file -- 4.1.2. Input the variable values from the Command Window -- 4.2. User-defined functions and function files -- 4.2.1. Creating the user-defined function -- 4.2.1.1. Definition line of the function -- 4.2.1.2. Lines with the help comments -- 4.2.1.3. Function body, local, and global variables -- 4.2.2. Function file -- 4.2.3. Running a user-defined function -- 4.2.3.1. Script and user-defined function files, comparison -- 4.3. Selected MATLAB functions and its applications in MSE -- 4.3.1. The interp1 function for interpolation and extrapolation -- 4.3.2. Nonlinear algebraic equation solution -- 4.3.3. Finding of the extremal points of a function -- 4.3.4. Integration -- 4.3.4.1. The quad function -- 4.3.4.2. The trapz function -- 4.3.5. Derivative calculation -- 4.3.6. Supplementary commands for interpolation, equation solution, integration, and differentiation -- 4.4. Live Editor -- 4.4.1. Launching the Live Editor -- 4.4.2. Creating the life script with the Live Editor -- 4.4.3. Supplementary information for using the Live Editor -- 4.4.3.1. Creating Live Function -- 4.4.3.2. Opening the existing script as a live script and user-defined function as a live function -- 4.4.3.3. Text formatting options -- 4.4.3.4. About the interactive controls -- 4.5. Application examples -- 4.5.1. Convertor from Brinell to Vickers and Rockwell hardness
- Intro -- A MATLAB Primer for Technical Programming in Materials Science and Engineering -- Copyright -- Dedication -- Contents -- Preface -- Chapter 1: Introduction -- 1.1. Some history -- 1.2. Purpose and audience of the book -- 1.3. About the book topics -- 1.4. The structure of the chapters -- 1.5. About MATLAB versions -- 1.6. Order of presentation -- Chapter 2: Basics of MATLAB -- 2.1. Launching MATLAB -- 2.1.1. MATLAB Desktop and its toolstrip and windows -- 2.1.1.1. Toolstrip -- 2.1.1.2. Command window -- 2.1.1.3. Workspace window -- 2.1.1.4. Current folder window -- 2.1.2. Interactive calculations with elementary math functions -- 2.1.3. Help commands and Help Window -- 2.1.4. About toolboxes -- 2.1.5. About variables and commands to variable management -- 2.1.6. Output formats -- 2.1.7. Output commands -- 2.1.8. Application examples -- 2.1.8.1. Bravais lattice: Volume of the triclinic crystal unit cell -- 2.1.8.2. Brinell hardness number -- 2.1.8.3. Friction coefficient -- 2.1.8.4. Stress intensity factor -- 2.2. Vectors, matrices, and arrays -- 2.2.1. Vectors and matrices: Generation and handling -- 2.2.1.1. Generation of vectors -- 2.2.1.2. Generation of matrices and arrays -- 2.2.2. Matrix operations -- 2.2.2.1. Addition and subtraction -- 2.2.2.2. Multiplication -- 2.2.2.3. Division -- 2.2.3. Array operations -- 2.2.4. Commands for generation of some special matrices -- 2.2.5. Displaying table with the disp and fprintf commands -- 2.2.6. Application examples -- 2.2.6.1. Volume via vectors -- 2.2.6.2. Generating table of names of statistical measures -- 2.2.6.3. Diffusion coefficient statistics -- 2.2.6.4. Mean time between failures -- 2.3. Flow control -- 2.3.1. Relational and logical operators -- 2.3.1.1. Relational operators -- 2.3.1.2. Logical operators -- Application example: Screening of the metals in respect to their density
- 6.6. Answers to selected questions and exercises
- 2.3.2. The If statements -- 2.3.3. Loops in MATLAB -- 2.3.4. Application examples -- 2.3.4.1. Isothermal liquid density: Defining coefficients of the linear fit -- 2.3.4.2. Bulk modulus of a material -- 2.3.4.3. Molar concentration -- 2.4. Questions and exercises for self-testing -- 2.5. Answers to selected questions and exercises -- Chapter 3: Graphics and presentations -- 3.1. Two- and three-dimensional plots -- 3.1.1. Two-dimensional plots -- 3.1.1.1. Multiple curves on the 2D plot -- The plot command for multiple curves -- The hold command for generating multiple curves -- 3.1.1.2. Several plots on the same page -- 3.1.1.3. Formatting 2D plots using commands or the Plot Tools editor -- Commands for 2D plot formatting -- The Image 103 commands -- The axis commands -- The xlabel, ylabel, and title commands -- The gtext and text commands -- The legend command -- Formatting text strings -- 3.1.1.4. About interactive plot formatting -- 3.1.2. Three-dimensional plots -- 3.1.2.1. Presenting line in 3D plots -- 3.1.2.2. Presenting mesh in 3D plots -- 3.1.2.3. Surfaces in 3D plots -- 3.1.2.4. Formatting and rotating 3D plots -- Setting the figure colors with the colormap command -- The view command, viewpoint, and different 3D projections of the graph -- 3.1.2.5. About the 3D plot rotation -- 3.1.3. Specialized two- and threedimensional plots -- 3.1.3.1. Plot with error bars -- 3.1.3.2. Plot with semilogarithmic axes -- 3.1.3.3. Plot with two y-axes -- 3.2. Statistical plots -- 3.2.1. The hist command -- 3.2.2. The bar command -- 3.2.3. The Data Statistics tool -- 3.3. Supplementary commands for generating 2D and 3D graphs -- 3.4. Application examples -- 3.4.1. Surface tension of fluid as a function of temperature -- 3.4.2. Stress-strain graph generated by the experimental data -- 3.4.3. The Lennard-Jones interatomic potential

