PDAS home > Contents > Mean Aerodynamic Chord > Download
Public Domain Aeronautical Software (PDAS)  

The archive file getmac.zip contains the files:

readme.txt this file of general description
getmac.f90 the complete source code
input.txt instructions on preparing input
b2.nml an example case for a wing resembling the B-2
b2.out the output produced by running b2.nml
f117.nml an example case for a wing resembling the F-117
f117.out the output produced by running f117.nml
ofw.nml an example case for an oblique flying wing
ofw.out the output produced by running ow.nml
cases.pdf sketches of these wings
cases.txt a description of the cases b2, f117, ofw

getMAC is a program that reads the definition of a wing from an arbitrary number of chords. The instructions for preparing an input file for getMAC are in the file getmac.txt. The program reads the input file and prints the area, length of MAC, y of MAC, xle of MAC, xte of MAC, and x of c/4 of MAC.

To compile this program for your machine, use the command

gfortran getmac.f90 -o getmac.exe

Linux and Macintosh users may prefer to omit the .exe on the file name.

Launch the program by typing getmac.exe at the command line. The program will ask you for the name of the input data file. After reading the input data, the program produces getmac.out with the output results.

It is best if you compile the programs using your Fortran compiler with the appropriate options for your computer system. If you are unable or do not wish to do this, you may download getmacexecs.zip containing the files getmac.exe, getmac.mac, and getmac.lnx, the executable programs for Windows, Mac OS X, and Linux, each compiled generically for an Intel CPU.

PDAS home > Contents > Mean Aerodynamic Chord > Download
Public Domain Aeronautical Software (PDAS)