Hex  1.0
Hydrogen-electron collision solver
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
variables.cpp File Reference
#include <algorithm>
#include "variables.h"
#include "vec3d.h"
#include "version.h"
Include dependency graph for variables.cpp:

Functions

double change_units (eUnit A, eUnit B)
 Energy units change. More...
 
double change_units (lUnit A, lUnit B)
 Lengths units change. More...
 
double change_units (aUnit A, aUnit B)
 Angular units change. More...
 
std::string unit_name (eUnit u)
 Energy unit name. More...
 
std::string unit_name (lUnit u)
 Length unit name. More...
 
std::string unit_name (aUnit u)
 Length unit name. More...
 

Function Documentation

double change_units ( eUnit  A,
eUnit  B 
)

Returns factor that can be used to transform from the unit system A to the unit system B.

double change_units ( lUnit  A,
lUnit  B 
)

Returns factor that can be used to transform from the unit system A to the unit system B.

double change_units ( aUnit  A,
aUnit  B 
)

Returns factor that can be used to transform from the unit system A to the unit system B.

std::string unit_name ( eUnit  u)

Return energy unit name as string.

std::string unit_name ( lUnit  u)

Return length unit name as string.

std::string unit_name ( aUnit  u)

Return length unit name as string.