Calculate the lattice parameter of aluminum

Assignment Help Mechanical Engineering
Reference no: EM13216700

An engineering student is examining the x-ray diffraction pattern of aluminum samples. She has come to you to write a program that can calculate the lattice parameter of aluminum given the raw peak data from the diffractometer for each of her samples. The lattice parameter equation is:

where: a = lattice parameter, nm
diffractometer wavelength, 0.154056 nm
angle of diffraction, degrees
h, k, and l = indices of planes causing diffraction, positive integers

You are given the data for one sample in a file named AluminumIn.txt. The first line of the file contains a single, positive integer n that indicates the number of peaks included in the file. This number will never be greater than 50. The rest of the file contains n lines of data arranged in four columns as 2θ, h, k, and l. An example of a possible data file is shown below:
3
38.52 1 1 1
112.03 3 3 1
82.47 2 2 2

Write a complete program consisting of a Main Program and Subprogram (you choose which type, but there should be only one) that fulfills the following requirements:
• The diffraction data is read from the file into a 2D array in the Main Program.
• The subprogram calculates the lattice parameter, a, in Å (Angstroms, 1 Å = 10-10 m) for each set of 2θ, h, k, and l and stores the answers as a 1D array (note that the lattice parameter equation uses θ and the data is given as 2θ in degrees).
• The subprogram calculates the mean of all lattice parameters.
• The Main Program handles all output. Output should consist of a data file containing a table listing all 2 θ, h, k, l, and a with the average lattice parameter (e.g. 4.53 Angstroms) indicated below the table. The output file should be well formatted with all values properly labeled. 

Reference no: EM13216700

Questions Cloud

Which political party did littlefield say frank baum support : Which political party did Littlefield say Frank Baum supported?
Compute the second specimen radius after deformation : compute the second specimen's radius after deformation.
Ensure protected health information : Identify (3) ways to ensure Protected Health Information (PHI) is kept secure. Discuss physical protection, electronic protection, and positional protection strategies for the office and the value of each.
Determine the work input and the amount of heat rejected : The cylinder of a water-cooled reciprocating compressor contains 0.05m^3 of air at 1.01bar. It is compressed isothermally to 8.0 bar. Determine the work input and the amount of heat rejected to the compressor cooling water.
Calculate the lattice parameter of aluminum : Write a complete program consisting of a Main Program and Subprogram (you choose which type, but there should be only one) that fulfills the following requirements.
Explain what is economic profit : Gomez runs a small pottery firm. He hires one helper at $11,500 per year, pays annual rent of $7,000 for his shop, and spends $22,500 per year on materials. He has $40,000 of his own funds invested in equipment (pottery wheels, kilns, and so forth..
Determine the maximum stress and the maximum shearing stress : Knowing that the gage pressure inside the tank is 5 MPa, determine the maximum stress and the maximum shearing stress at point L.
Determine the magnitude t of the applied torque : The tank has a 180 mm inside diameter and a 12 mm wall thickness. Knowing that the tank contains compressed air under a pressure of 8 MPa, determine the magnitude T of the applied torque for which the maximum normal stress in the tank is 75 MPa.
Explain how do issues relate to the strategic choices : What would be the advantages and disadvantages of using the existing LG compensation package in India? How might it differ from a more typical Indian package? What additional information would O'Dell need to make this decision?

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Find the z score values that separate

For a normal distribution, find the z score values that separate

  Explain force exerted on the body by the fluid motion

In flows past solid bodies, the force exerted on the body by the fluid motion depends upon the fluid velocity u, the density p, the viscosity

  What is the flow rate required to cool and maintain

what is the flow rate required to cool and maintain 0.5 x 0.5 x 0.5 m3 volume of air at 297 K to 199 K, using nitrogen at 199 K

  Using the formula to compute torque and having a torque

Using the formula to compute torque and having a torque of 4966.97, with the RPM's at 250, Would my calculation for horsepower be correct at 236.4 hp?

  What is the mechanical advantage of the system

A block and tackle system with nine supporting strands is used to lift a metal lathe in a manufacturing plant. The motor being used to wind the cable in the pulley system can provide 100 lb. of force.

  Mainframe computing is way to manage enterprise data

Mainframe computing used to be the only way to manage enterprise data. Then personal computers changed the data management scene. How do these two computing styles differ, and how did shift to PC-based computing evolve.

  What is the correct decimal notation for the number

What is the correct decimal notation for the number 1.345 x 10-1?

  What is a beam

What is a beam? What factors determine the maximum load that it can take without failure?

  Find a suitable generating function

Prove that the transformation Q1 = q12 Q2 = q2 sec p2 p cos p2 - 2q2 P= 1 P2 = sin p2 - 2q1 1 2q1 cos p2 is canonical, by any method you choose . Find a suitable generating function that will lead to this transformation.

  Determine the minimum thickness of fibreglas insulation

Determine the minimum thickness of fibreglas insulation that needs to be used in the wall in order to avoid condensation on the outer surfaces.

  Determine symbolic expression for total thermal resistance

Determine a symbolic expression for the total thermal resistance of wall, including inside and outside convection effects for prescribed conditions.

  Determine the acceleration of the car

A motorist enters a freeway at 36 kph and accelerates uniformly to 90 kph. From the odometer in the car, the motorist knows that she traveled 0.20 km while accelerating. Determine a.) the acceleration of the car, b.) the time required to reach 90 ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd