Solutio in silico

The TASMIP Project

This code is a function implementing the TASMIP algorithm, calculating photon energy specta for tungsten-anode x-ray generators. The TASMIP algorithm can be applied using tube voltages between 30-140 kVp. For more information on the TASMIP algorithm, see the following publication:

Boone, J. M. and Seibert, J. A. (1997), An accurate method for computer-generating tungsten anode x-ray spectra from 30 to 140 kV. Med. Phys., 24: 1661-1670.

If you want to see a working example of the TASMIP class, check out the TASMIP spectra calculator.

Source Code

C++

Algorithm

The C++ function is defined in this way:

std::vector<double> spectrum =
Tasmip(int tube_potential, double mm_filtration, std::string filter_material, std::string folder);

Where:

For example, to generate a tungsten-anode x-ray spectrum with 120 kVp and 5 mm of aluminum filtration:

std::string data_folder = "YourPath/SolutioCpp/Data/NISTX";
std::vector<double> spectrum = solutio::Tasmip(120, 5.0, "Aluminum", data_folder);