Question: Calculate in Excel using VBA. The diffusivity is a measure of how fast diffusion occurs and can modeled as D=D o exp(-Q/RT) , name this

Calculate in Excel using VBA.

The diffusivity is a measure of how fast diffusion occurs and can modeled as D=Doexp(-Q/RT) , name this Sub divs, where

D= diffusivity, cm2/s

Do= diffusion coefficient, cm2/s

Q= activation energy, J/mol, 8.314J/mol K

R= ideal gas constant, J/mol K

T= temperature, K

As iron is heated, it changes structure and its diffusion characteristics change. The values of Do and Q are shown in the following table for carbon diffusing through each of iron's structures:

Types of metal Do (cm2/s) Q (J/mol K)
alpha Fe (BCC) 0.0062 80,000
gamma Fe (FCC) 0.23 148,000

Create a plot of diffusivity versus inverse temperature (1/T), using the data provided. Try the rectangular to see if it represents the best results. Let the temperature vary from room temperature (25oc) to 1200oc in increments of 100. Make a table temperature table of co and K and convert the celsius to Kelvins in the VBA macro. In the main maro, call divs(alpha) then call divs(gamma).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!