Hex  2.2
Hydrogen-electron collision solver
Functions
utils.cpp File Reference
#include <algorithm>
#include "hex-special.h"
#include "hex-vec3d.h"
#include "hex-version.h"
#include "utils.h"
Include dependency graph for utils.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

◆ change_units() [1/3]

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.

◆ change_units() [2/3]

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.

◆ change_units() [3/3]

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.

◆ unit_name() [1/3]

std::string unit_name ( eUnit  u)

Return energy unit name as string.

◆ unit_name() [2/3]

std::string unit_name ( lUnit  u)

Return length unit name as string.

◆ unit_name() [3/3]

std::string unit_name ( aUnit  u)

Return length unit name as string.