F.D.& E. Experimental Fatigue life Prediction Program: saefcalc2

Note! This calculator uses "Digital Curves" as material property inputs.

May27 2004, Vers 1.6 May2005, updated Jan2013, Oct2013, May2014

How to run simulation:

Download from github.com (or local links at bottom of this page) :

After downloading the files, removing the ".txt" suffixes if present, compile the fortran programs using the gfortran compile statements found at top of each file.

You can perform a crack initiation prediction with the commands (example):

Edit the bash script makeRepSaefcalc2 and add user name and affiliation etc.

If you have not already done so, you will need to make  the script "makeRepSaefcalc2" 
   executable with command:
      chmod 744  makeRepSaefcalc2

Rainflow Cycle Count your load history:
      ./pdrain  2 < loads4rain.out   > sample.rain 

Run the simulation:
      ./saefcalc2   merged_a36_fitted.html  5.4 < sample.rain   > a36sample_5.4

Create the report:
      ./makeRepSaefcalc2  a36sample_5.4 

View the *.pdf report:
      evince  a36sample_5.4.pdf 

Example Reports :

Local Files for download (mostly same as on github.com):

Note: For most of the files below the suffix ".txt" has been added to
the filenames in order to allow an internet browser to display the files.
After saving you should use the "mv" or a rename command to remove
the ".txt" suffix before using or compiling the files.

Note: In order to use the makeRepSaefcalc2 script to create the summary report you will need to have "htmldoc" and "gnuplot" on your system.

After download a fortran program can be compiled with the statements:   

      mv saefcalc2.f.txt saefcalc2.f

In newer Linux versions the compile command to use is probably:

      gfortran -g -w -fbounds-check saefcalc2.f  -o saefcalc2

Also note that the new compiler version do not preserve variables between calls to 
subroutines, and that one must enter a "      SAVE" line at the top of each subroutine. 
This changed "feature" can cause a lot of trouble when compiling older programs. 

For details of output file data extraction see (and change if you wish) the
script makeRepSaefcalc2

The output from saefcalc2 goes into a large results file that contains 
all sorts of intermediate information plus the final results.  The final 
result lines each have a "#name " at the begining of each line, and can 
be extracted from the general file using grep, as below.

(Assuming "temp" is the saefcalc2  output file name)
View all output:
       more temp

View life results:
       grep xcalc2 temp
       grep xcalc3 temp

View stress-strain loops for plotting:

       grep plotloops temp | delete1arg >temploop

  Then use 

  In gnuplot type the commands:
           set grid
           plot "temploop" with lines 

  to get the hysteresis loop shapes.

View damage per input block:
       grep plotdam temp