Mini Matlab Project 2
Mini Matlab Project 2
Mini Matlab Project 2
Fall 2017
In this project, we will examine the effect of a steel implant placed in the medullary
cavity of a femur on the stress distribution in the proximal femoral diaphysis using
asymmetric composite beam theory.
We will examine this for 5 implant locations (including no implant) over 3 test cases:
In all cases, the bone is subjected to a pure moment with components (using the
coordinate system in Figure 1): 𝑀" = 46 𝑁𝑚; 𝑀) = 28 𝑁𝑚
On bCourse, you will find the MATLAB file asymmetric.m, the above left image
(femur.png), and the steel implant cross section (implant.png).
1
Orthopedic Biomechanics
Fall 2017
of 0𝑔/𝑐𝑐. A grayscale value of 255 represents a pixel BMD of 2𝑔/𝑐𝑐. Assume BMD
varies linearly with grayscale value:
3
(i.e. BMD = 𝐺𝑆 )
344
Implant.png shows the implant cross section with the center highlighted in red. It
measures 15 × 15 pixels and, like femur.png, has a resolution of 0.78 𝑚𝑚/pixel.
Presently, asymmetric.m plots the femur.png image and calculates the BMD weighted
centroid. Assume the elastic modulus of the steel implant is 200 𝐺𝑃𝑎.
The steel rod implant center locations are (z, y) listed below with corresponding
location in the MATLAB image matrix A(i,j):
Consider only cortical bone. To do this, threshold the image such that you only
consider bone with BMD over 1 𝑔/𝑐𝑐 (grams per cubic centimeter). Anything under
1𝑔/𝑐𝑐 is considered to be empty space.
1. The modulus of bone is related to the BMD with the following relationship:
𝐸?@AB = 𝑎 ⋅ 𝐵𝑀𝐷 ? (Equation 1)
This is of the same form as the power relationships of ultimate stress (Figure 3.18
in textbook).
2. Using two extreme values of BMD and 𝐸?@AB , determine coefficients a and b in
Equation 1.
i. (𝐵𝑀𝐷, 𝐸?@AB )[I] = (0.26 𝑔/𝑐𝑐, 1.107 𝐺𝑃𝑎)
ii. (𝐵𝑀𝐷, 𝐸?@AB )[3] = (2 𝑔/𝑐𝑐, 17 𝐺𝑃𝑎)
Recall that MATLAB stores its rows as the first index and columns as the second index.
Additionally, MATLAB starts its numbering at 1.
2
Orthopedic Biomechanics
Fall 2017
It may be easiest to edit femur.png to show the plate (using an image editing program
or even MATLAB). However, you will need to differentiate between implant and bone.
Alternatively, you can use a separate image (of same size as femur.png) to keep track of
the implant cross sections and then superpose that image with femur.png.
3
Orthopedic Biomechanics
Fall 2017
*For the table, max stress refers to the maximum tensile stress in the bone. Express max
stress as a percentage of the “no implant” case for that location. Express all locations in
millimeters using the coordinate axis in Figure 1 – i.e. the upper-left corner is (z = 0, y =
0).
4
Orthopedic Biomechanics
Fall 2017