Engineering Worksheets For Maple PDF
Engineering Worksheets For Maple PDF
Engineering
Worksheets
for Maple™
Discover the many ways engineers use Maple to solve problems, with over
70 engineering worksheets you can use in Maple straight away.
PDF versions are included so you can view the worksheets even if Maple is not installed.
Table of Contents
1 Introduction .................................................................................................................................................................. 5
2 Electrical Engineering ................................................................................................................................................. 9
2.1 Radiation Pattern and Directivity of an Antenna Array ............................................................................ 9
2.2 Single Stub Matching of a Transmission Line .............................................................................................. 9
2.3 Pyramidal Horn Design ................................................................................................................................... 10
2.4 Coaxial Cable Transmission Line Design .................................................................................................... 10
2.5 Half-Wave and Full-Wave Diode Rectifiers .............................................................................................. 11
2.6 Worst Case Circuit Analysis with Monte Carlo Simulation .................................................................... 11
2.7 Gain of an Amplifier Circuit ........................................................................................................................... 12
2.8 Parameter Estimation for a Photovoltaic Diode ....................................................................................... 12
2.9 Extreme Value Analysis of an Electrical Circuit ........................................................................................ 12
3 Signal Processing ....................................................................................................................................................... 13
3.1 Spectrograms of Audio Files .......................................................................................................................... 13
3.2 Signal Denoising ............................................................................................................................................... 13
3.3 Interaural Time Delay ...................................................................................................................................... 14
3.4 Fundamental Frequency of a Human Voice .............................................................................................. 14
3.5 Fundamental Frequency and Harmonics of a Violin Note ..................................................................... 14
3.6 FIR and IIR Filters ............................................................................................................................................. 15
3.7 Locate a Signal in Audio in the Presence of Noise ................................................................................... 15
3.8 Pricing Options with FFTs .............................................................................................................................. 16
3.9 Detecting the Orbital Period of Exoplanets by Analysing the Wobble of Stars................................ 16
3.10 Removing Echo from Audio ........................................................................................................................... 17
3.11 Compressing Audio .......................................................................................................................................... 17
3.12 Compression of a Brain MRI Image ............................................................................................................. 18
3.13 Blurring an Image in the Spatial Frequency Domain................................................................................ 18
3.14 MUSIC Method for Spectral Estimation ..................................................................................................... 18
4 Mechanical Engineering ........................................................................................................................................... 19
4.1 Forces in a 4 Member Frame ........................................................................................................................ 19
4.2 Gas Orifice Flow Meter Calculator .............................................................................................................. 19
4.3 Kinematic Analysis of a Quick Return Device ........................................................................................... 20
4.4 Optimizing the Design of a Helical Spring .................................................................................................. 20
4.5 Tuned Mass Damper Design ......................................................................................................................... 21
4.6 Welded Beam Design Optimization ............................................................................................................ 21
4.7 LQR Controller for an Inverted Pendulum on a Cart ............................................................................... 22
4.8 Vehicle Ride and Handling Analysis ............................................................................................................. 22
4.9 System Identification for a Mass Spring Damper ..................................................................................... 23
5 Hydraulics ................................................................................................................................................................... 24
5.1 Water Hammer ................................................................................................................................................. 24
5.2 Three Reservoir Problem................................................................................................................................ 24
5.3 Pump Power for Flow between Two Reservoirs ...................................................................................... 25
5.4 Maximum Pressure Surge Generated by Valve Shutoff ......................................................................... 25
5.5 Maximum Flow Rate in Open-Channel Flow for a Circular Pipe .......................................................... 26
5.6 Interacting Tanks .............................................................................................................................................. 26
5.7 Calculating the Bulk Modulus of a Fluid ..................................................................................................... 27
5.8 Measurement Error in a Venturi Flowmeter.............................................................................................. 27
6 Earth and Building Science ...................................................................................................................................... 28
6.1 DOE-2 Parameter Estimation........................................................................................................................ 28
6.2 Cost of Heating a Home with Natural Gas................................................................................................. 28
6.3 Live Earthquake Data ...................................................................................................................................... 28
6.4 Sunspot Periodicity .......................................................................................................................................... 29
6.5 Human Comfort Zone ..................................................................................................................................... 29
7 Chemistry .................................................................................................................................................................... 30
7.1 Enthalpy Change of Combustion of Methane ........................................................................................... 30
7.2 Gibbs Energy of Formation of Ethanol........................................................................................................ 30
7.3 Parameter Estimation for a Chemical Reaction ........................................................................................ 30
7.4 Spontaneity of the Reaction of Nitrogen and Oxygen to form Nitrogen Monoxide ....................... 31
7.5 Calibrating Response Curves for the Concentration of Melatonin Sulfate in Human Urine .......... 31
8 Chemical Engineering ............................................................................................................................................... 32
8.1 Catalytic Cracking of Ethane ......................................................................................................................... 32
8.2 Terminal Settling Velocity of a Solid Particle in Fluid .............................................................................. 32
8.3 Binary Distillation with the McCabe-Thiele Method ............................................................................... 32
8.4 Physical Properties of Natural Gas .............................................................................................................. 33
8.5 Economic Pipe Sizing....................................................................................................................................... 33
8.6 Countercurrent Double-Pipe Heat Exchanger .......................................................................................... 33
8.7 Colour of Gold-Silver-Copper Alloys ........................................................................................................... 34
8.8 Heat Transfer Coefficient of Air Flowing across a Flat Plate ................................................................ 35
9 Aerospace Engineering ............................................................................................................................................ 36
9.1 Performance of a Monomethylhydrazine-Dinitrogen Tetroxide Rocket Engine .............................. 36
9.2 Unpowered Glide Analysis of a Baron 58 Light Aircraft ......................................................................... 36
9.3 US Standard Atmosphere 1976 .................................................................................................................... 37
9.4 Compressor Power for Supersonic Wind Tunnel ..................................................................................... 37
10 Structural Engineering ......................................................................................................................................... 38
10.1 Simply Supported Beam Design with Torsional Loading ........................................................................ 38
10.2 Parabolic Suspension Cable ........................................................................................................................... 38
10.3 El Centro Earthquake Data Analysis ............................................................................................................ 38
10.4 Deflection of a Beam with Distributed and Point Load .......................................................................... 39
10.5 Bolt Group Coefficient .................................................................................................................................... 39
11 Thermal Engineering and Thermodynamics ................................................................................................... 40
11.1 Vapour-Compression Refrigeration Cycle.................................................................................................. 40
11.2 Adiabatic Flame Temperature of Octane as a Function of Fraction of Air......................................... 40
11.3 Constant Volume Flame Temperature of the Combustion of Methane in Air .................................. 40
11.4 Isothermal Compression of Methane .......................................................................................................... 41
11.5 Organic Rankine Cycle .................................................................................................................................... 41
11.6 Adiabatic Flame Temperature and Equilibrium Composition of the Combustion of Carbon
Monoxide ......................................................................................................................................................................... 41
12 Conclusion .............................................................................................................................................................. 42
1 Introduction
Engineers and scientists across all sectors of industry and academia use Maple for mathematics, data
analysis, programming, and visualization.
They use Maple to solve real-world problems, derive equations from first-principles physics, make
technical concepts come alive in the classroom, and explore the design space.
This guide introduces over 70 worksheets that demonstrate how Maple can be used across many
engineering disciplines. The worksheets can be downloaded from:
www.maplesoft.com/engineeringapplications.zip
PDF versions of these worksheets are also included.
You can use worksheets for your own analyses, modify them to suit your own needs, and learn to apply
the techniques shown in these examples to completely different problems.
Before we describe the worksheets, let’s first explore why engineers use Maple for their calculations and
analyses.
Maple offers practical high-level tools for numeric and symbolic math, data analysis, and programming.
These tools are designed for both simple and complex engineering problems.
Moreover, Maple’s programming language benefits from an interactive development environment and
can use any of Maple’s high-level mathematical tools, making the code:
A Maple worksheet combines live math, text, images, tables and plots. In effect, Maple captures the
inherent assumptions and thought process behind an analysis, as well as the calculations. This turns
calculations into reusable and easily understood documents.
Document Interface
Units
Units are fully integrated into the Maple environment, and can be used in simple calculations as well as
numeric solving and optimization.
Using units in calculations removes the risk of manual unit conversion errors, and also acts as a check on
the physical validity of the equation.
You can import and export data to and from spreadsheets, text files, audio data and many other file
formats.
Maple can also call externally defined code (for example external solvers or proprietary data sources
®
defined in a DLL) and provides full two-way connectivity with MATLAB .
Visualizations
Maple boasts a broad range of built in plots. These visualizations are fully customizable, and new plot
types can be programmatically generated.
Deployment
Worksheets can be password protected. This means live applications can be distributed while the
intellectual property is securely locked away.
The remainder of this document provides an overview of over 70 Maple applications that solve
problems electrical engineering, signal processing, mechanical engineering, hydraulics, earth and
building science, chemistry, chemical engineering, aerospace engineering, structural engineering,
and thermal engineering and thermodynamics. To see the full problem and solution, download the
worksheets described here from:
www.maplesoft.com/engineeringapplications.zip
PDF versions are included so you can view the work even if Maple is not installed.
2 Electrical Engineering
Differential equations that describe the response of half- and full-wave rectifiers are derived
symbolically, and then solved numerically.
Worst Case Circuit Analysis is a set of techniques used to analyse how variations in parameters
influence the performance of an electrical circuit.
This application analyses the performance of a photodiode circuit using a Monte Carlo approach.
2.7 Gain of an Amplifier Circuit
Here, we plot the gain of an amplifier circuit, for both the ideal and non-ideal response.
• Rearrange this equation to give the current I in terms of the LambertW equation (this cannot be
done with standard mathematical functions, but requires a symbolic solver that understands
advanced mathematical functions)
• Find the best-fit parameters for a set of experimental data
This application performs an extreme value analysis of a photodiode circuit (the principles, however, can
be extended to any circuit). Light hits a photodiode and generates a current. A non-inverting op-amp
then produces a linearly-proportional voltage from the photodiode current. Capacitors are ignored -
hence this is a DC analysis.
3 Signal Processing
Some electronic musicians hide images in their music; you can only view these images with a
spectrogram of the appropriate part of the audio. This includes the track “My Violent Heart” by the Nine
Inch Nails.
The delayed sound channel reflects the phenomenon that sound travels further to reach one ear than
the other.
First, an audio file is loaded, a small segment is extracted, and random Gaussian noise is added to both.
Then, the cross-correlation of the full audio and the extract is computed. The maximum lag of the cross-
correlation is the index at which the extract is predicted to be found in the full audio.
3.8 Pricing Options with FFTs
This application calculates the price of a European call option with FFTs, and compares the result to the
analytical solution.
Radial velocity is recorded, often over months or years, with a spectrograph connected to a telescope.
This data is used to generate a periodogram, in which a strong peak is evidence of an exoplanet.
However data is generally not regularly sampled. This means that discrete Fourier transforms cannot be
used to generate a periodogram, and other approaches are needed.
A common method for the frequency analysis of irregularly sampled data is the Lomb-Scargle approach.
This application uses a Lomb-Scargle approach to analyse the radial velocity of the star HD 3651, and
generate a periodogram. The periodogram predicts the presence of an exoplanet.
3.10 Removing Echo from Audio
This application will:
This application generates a noisy sinusoidal data set, and then applies the MUSIC method to identify
the frequencies used to generate the signal. Two closely spaced peaks are clearly identified; this would
not be possible with a discrete Fourier transform because the distance between the peaks is smaller
than the sampling time.
4 Mechanical Engineering
The latter involves numerically solving differential equations. These are symbolically derived by
differentiating the geometric relationships with respect to time.
The total cost of production is equal to the labour costs for welding, plus the cost of the weld
and beam material.
This application minimizes the total cost by varying the weld and member dimensions, subject to
constraints on the shear stress, bending stress, buckling load, and end deflection.
4.7 LQR Controller for an Inverted Pendulum on a Cart
This worksheet derives the equations that describe the dynamics of an inverted pendulum on a cart,
creates a linear quadratic state (LQR) controller that stabilizes the position of the pendulum, and
animates the motion of the controlled cart.
The PDEs can be discretized along the spatial dimension to give a set of ordinary differential equations,
ODEs. For a given set of parameters, this application solves the resulting ODEs numerically and plots the
pressure dynamics at the valve.
This involves solving the differential equations that describe the momentum balance between
each pair of connected tanks.
5.7 Calculating the Bulk Modulus of a Fluid
Maple has the thermodynamic and transport properties of many fluids built-in. Derived quantities, such
as the bulk modulus can be computed from this data.
Hence to compute the bulk modulus we need (i) the fluid density, and (ii) the numeric derivative of
pressure with respect to density (at constant temperature). These properties can be extracted from
Maple’s fluid properties database.
Methane (at 1 bar and 40°C) enters a venturi meter with a water manometer (with a measurement error
2 2
of ±1 mm). The upstream pipe area is 0.05 m and the venturi throat diameter is 0.025 m .
The water displacement across the manometer is 3 cm. Given the measurement error, this application
calculates the potential range of flowrates.
6 Earth and Building Science
The DOE-2 model is then used to find the compressor power, COP and condenser heat flow rate for a
specific heat load.
• Heat losses through four side walls (each with windows), a roof, and air
exchanges with the environment
• Heat gains through a furnace
In this application, air at 35°C and 60% relative humidity will be conditioned into the human comfort
zone, with the thermodynamic process plotted on a psychrometric chart.
7 Chemistry
The enthalpy of methane, oxygen, carbon dioxide and water are computed using the empirical
correlations in Maple’s built-in thermophysical properties database.
This application will calculate the Gibbs energy of formation of ethanol at any temperature, employing
Maple’s built-in thermodynamic data. The results are compared with values from the literature.
Values of the Gibbs energy of formation found in the literature are normally only given at standard
temperature, or for tabulated at a few temperatures. However, Maple contains built-in thermodynamic
data, correlated against temperature. This means you can calculate the Gibbs energy of formation
at any temperature.
• Parameterizing (with respect to the rate constant) the numerical solution of the different
equations that describe the reaction kinetics
• Calculating the sum of the square of the errors between the model predictions and
experimental data
• Minimizing the sum of the square of the errors to find the best fit values of the rate constants
7.4 Spontaneity of the Reaction of Nitrogen and Oxygen to form
Nitrogen Monoxide
This application will calculate the temperature at which nitrogen reacts spontaneously with oxygen.
The application first defines a temperature-dependent function that describes the Gibbs Energy
of the reaction.
This function is then numerically solved for the temperature at which the Gibbs Energy is zero.
The reaction is spontaneous at or above this temperature.
The products contain CH4, C2H4, C2H2, CO2, CO, O2, H2, H2O, and C2H6.
• Calculating the Gibbs energy of formation of the individual species in the products
• Constructing a function that describes Gibbs Energy of the products as a function of composition
• Minimizing the Gibbs Energy of the products, subject to constraints
First, the settling velocity equation is derived symbolically. Then, the governing equations
are solved numerically for a given set of parameters.
This application finds the pipe diameter that minimizes the total overall cost (given a method outlined in
a literature reference). The method involves the iterative solution of an empirical equation.
Bear in mind that the empirical parameters vary as economic conditions change. Those used in this
application are correct for 1998 and 2008.
The equations are solved numerically, and the temperature profiles plotted.
An aircraft with no engine power will glide to the ground. The best glide angle is the flight angle at
which the airplane will travel the greatest distance, and occurs at the maximum lift-to-drag ratio.
9.3 US Standard Atmosphere 1976
This application implements the 1976 US Standard Atmosphere model for the lower atmosphere.
The model gives the pressure, temperature, density and viscosity of air as a function of geopotential
altitude, and is valid from a geopotential altitude of 0 m to 84852 m.
• Equations that give the total Gibbs energy of the combustion products
• Equations that equate the enthalpy of the reactants and the enthalpy of the products
This guide has described many engineering use cases for Maple. The worksheets demonstrate many
Maple features, from symbolic and numeric mathematics to programming, visualization and more.
Many software tools will help with your calculations and analyses. Few, if any, support calculations in
the same way Maple does with its document interface, units support, computation engine and
connectivity.
Maple also gives you many worksheets you can use as a resource you can explore, experiment,
and have fun with.
www.maplesoft.com
www.maplesoft.com | [email protected]
Toll-free: (US & Canada) 1-800-267-6583 | Direct:1-519-747-2373
© Maplesoft, a division of Waterloo Maple Inc., 2019. Maplesoft, Maple, and Maple Player are trademarks of Waterloo Maple Inc. MATLAB is a registered trademark of The MathWorks, Inc.
All other trademarks are the property of their respective owners.