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

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

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