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

  Determine the minimum diameter d required

Two solid cylindrical rods (1) and (2) are joined together at flange B and loaded. If the normal stress in each rod must be limited to 110 MPa, determine the minimum diameter D required for each rod.

  Design a garage door controller using plc ladder diagram

Design a garage door controller using PLC Ladder Diagram (RSLOGIX 500 PLC SIMULATOR)

  Determine the thermal efficiency and the mep

compare it with efficiency of an otto cycle operating with the same maximum pressure?

  Determine the minimum distance

Determine the minimum distance from a 50 ft height building from which the ball can be thrown and not hit the side of the building , but it may land on the roof depending upon how long the building is.

  Determine the initial discharge rate of water

The tank air pressure above the water level is 300kPa(absolute) while the atmospheric pressure is 100kPA. Neglecting frictional effects, determine the initial discharge rate of water from the tank.(Density of water=1000kg/m^3)

  Calculate the actual a/f ratio and do a wet

Find the stoichiometric A/F ratio (by mass) for the combustion of benzene (C6H6). Compute the actual A/F ratio and do a wet and dry analysis of the products by volume at a mixture strength of 95%.

  Is there a good calculation model for the material flow

Is there a good calculation model for the material flow through a combine harvester related to the harvesting speed?

  What is the elastic modulus of elasticity

a standard steel specimen of 13 mm diameter elongated 22 mm when it was subjected to a tensile force of 29.5 kN if the specimen has a length of 200 mm and that force applied within elastic range. what is the elastic modulus of elasticity ?

  Determine the electric flux through this surface

A uniform linear charge density of 4 nC/m is distributed along the entire x axis. Consider a spherical (radius = 5 cm) surface centered on the origin. Determine the electric flux through this surface.

  Draw the shear and bending-moment diagrams

draw the shear and bending-moment diagrams for the beam and loading shown and determine the maximum normal stress due to bending.

  Determine the surface temperature of the wire

Determine the surface temperature of the wire during a windy day when the air temperature is 10°C and the wind is blowing across the transmission line at 50 km/h.

  Landing gear system structural design

Problem Statement Consider the landing gear shown below. Working in teprns of two, come up with a single optimized design for given operational conditions and design considerations

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