t32c2t.c File Reference

#include <stdio.h>
#include <math.h>

Defines

#define ARRAYSIZE   1600

Functions

int main ()
int test_globals ()
int initialise_global_tempsK ()
int initialise_global_starttK ()
int calc_temp_erf (double Ti, double Ts, double A, double X)
int calc_temp_lin (double start_temp, double rate)
int test_ttt ()
int read_ttt ()
int show_globals ()
int output_cct ()

Variables

int tempsK [ARRAYSIZE+1]
double starttK [ARRAYSIZE+1]

Define Documentation

#define ARRAYSIZE   1600


Function Documentation

int calc_temp_erf ( double  Ti,
double  Ts,
double  A,
double  X 
)

Ti initial temperature, Ts surface temperature, A thermal diffusivity heat, X distance - units depends upon units of A. $\textrm{temp} = Ts + (Ti-Ts)\times \textrm{erf}\left(\frac{X}{2 \sqrt{A*\textrm{time}}} \right)$

References tempsK.

Referenced by main().

int calc_temp_lin ( double  start_temp,
double  rate 
)

References tempsK.

Referenced by main().

int initialise_global_starttK (  ) 

References ARRAYSIZE, and starttK.

Referenced by main().

int initialise_global_tempsK (  ) 

References ARRAYSIZE, and tempsK.

Referenced by main().

int main (  ) 

PSEUDO CODE

Get input cooling (linear, ideal, data file?)

Step through time, and record time spent at each temp

Read in Time-temperature-transformation data (ttt)

Calculate amounts of transformation at each temp during cooling output temp and time when transformation is detectable

< temperature at which transformation is first detectable

initilise arrays for temp (0) and start time (large).

References calc_temp_erf(), calc_temp_lin(), initialise_global_starttK(), initialise_global_tempsK(), output_cct(), read_ttt(), and test_globals().

int output_cct (  ) 

this function returns the temperature at which transformation was first detected

References ARRAYSIZE, starttK, and tempsK.

Referenced by main().

int read_ttt (  ) 

References ARRAYSIZE, and starttK.

Referenced by main().

int show_globals (  ) 

References ARRAYSIZE, starttK, and tempsK.

int test_globals (  ) 

References ARRAYSIZE, starttK, and tempsK.

Referenced by main().

int test_ttt (  ) 

References starttK.


Variable Documentation

double starttK[ARRAYSIZE+1]

corresponding time for when transformation is detectable at a temperature in TTT

Referenced by initialise_global_starttK(), output_cct(), read_ttt(), show_globals(), test_globals(), and test_ttt().

int tempsK[ARRAYSIZE+1]

maximum temp is (ARRAYSIZE) kelvin, the time spent at each temperature will be stored here.

Referenced by calc_temp_erf(), calc_temp_lin(), initialise_global_tempsK(), output_cct(), show_globals(), and test_globals().


Generated on Mon Dec 14 16:38:23 2009 for ultimateTTTtoCCT by  doxygen 1.5.6