FairShip
Loading...
Searching...
No Matches
shipunit.py File Reference

Go to the source code of this file.

Namespaces

namespace  shipunit
 

Variables

float shipunit.millimeter = 1.0 / 10.0
 
float shipunit.millimeter2 = millimeter * millimeter
 
float shipunit.millimeter3 = millimeter * millimeter * millimeter
 
float shipunit.centimeter = 10.0 * millimeter
 
float shipunit.centimeter2 = centimeter * centimeter
 
float shipunit.centimeter3 = centimeter * centimeter * centimeter
 
float shipunit.meter = 1000.0 * millimeter
 
float shipunit.meter2 = meter * meter
 
float shipunit.meter3 = meter * meter * meter
 
float shipunit.kilometer = 1000.0 * meter
 
float shipunit.kilometer2 = kilometer * kilometer
 
float shipunit.kilometer3 = kilometer * kilometer * kilometer
 
float shipunit.parsec = 3.0856775807e16 * meter
 
float shipunit.micrometer = 1.0e-6 * meter
 
float shipunit.nanometer = 1.0e-9 * meter
 
float shipunit.angstrom = 1.0e-10 * meter
 
float shipunit.fermi = 1.0e-15 * meter
 
float shipunit.barn = 1.0e-28 * meter2
 
float shipunit.millibarn = 1.0e-3 * barn
 
float shipunit.microbarn = 1.0e-6 * barn
 
float shipunit.nanobarn = 1.0e-9 * barn
 
float shipunit.picobarn = 1.0e-12 * barn
 
float shipunit.um = micrometer
 
float shipunit.mm = millimeter
 
float shipunit.mm2 = millimeter2
 
float shipunit.mm3 = millimeter3
 
float shipunit.cm = centimeter
 
float shipunit.cm2 = centimeter2
 
float shipunit.cm3 = centimeter3
 
float shipunit.m = meter
 
float shipunit.m2 = meter2
 
float shipunit.m3 = meter3
 
float shipunit.km = kilometer
 
float shipunit.km2 = kilometer2
 
float shipunit.km3 = kilometer3
 
float shipunit.pc = parsec
 
float shipunit.radian = 1.0
 
float shipunit.milliradian = 1.0e-3 * radian
 
tuple shipunit.degree = (3.14159265358979323846 / 180.0) * radian
 
float shipunit.steradian = 1.0
 
float shipunit.rad = radian
 
float shipunit.mrad = milliradian
 
float shipunit.sr = steradian
 
tuple shipunit.deg = degree
 
float shipunit.nanosecond = 1.0
 
float shipunit.second = 1.0e9 * nanosecond
 
float shipunit.millisecond = 1.0e-3 * second
 
float shipunit.microsecond = 1.0e-6 * second
 
float shipunit.picosecond = 1.0e-12 * second
 
float shipunit.hertz = 1.0 / second
 
float shipunit.kilohertz = 1.0e3 * hertz
 
float shipunit.megahertz = 1.0e6 * hertz
 
float shipunit.ns = nanosecond
 
float shipunit.s = second
 
float shipunit.ms = millisecond
 
float shipunit.eplus = 1.0
 
float shipunit.e_SI = 1.60217733e-19
 
float shipunit.coulomb = eplus / e_SI
 
float shipunit.megaelectronvolt = 1.0 / 1000.0
 
float shipunit.electronvolt = 1.0e-6 * megaelectronvolt
 
float shipunit.kiloelectronvolt = 1.0e-3 * megaelectronvolt
 
float shipunit.gigaelectronvolt = 1.0e3 * megaelectronvolt
 
float shipunit.teraelectronvolt = 1.0e6 * megaelectronvolt
 
float shipunit.petaelectronvolt = 1.0e9 * megaelectronvolt
 
float shipunit.joule = electronvolt / e_SI
 
float shipunit.MeV = megaelectronvolt
 
float shipunit.eV = electronvolt
 
float shipunit.keV = kiloelectronvolt
 
float shipunit.GeV = gigaelectronvolt
 
float shipunit.TeV = teraelectronvolt
 
float shipunit.PeV = petaelectronvolt
 
float shipunit.kilogram = joule * second * second / (meter * meter)
 
float shipunit.gram = 1.0e-3 * kilogram
 
float shipunit.milligram = 1.0e-3 * gram
 
float shipunit.kg = kilogram
 
float shipunit.g = gram
 
float shipunit.mg = milligram
 
float shipunit.watt = joule / second
 
float shipunit.newton = joule / meter
 
float shipunit.pascal = newton / m2
 
int shipunit.bar = 100000 * pascal
 
int shipunit.atmosphere = 101325 * pascal
 
float shipunit.ampere = coulomb / second
 
float shipunit.milliampere = 1.0e-3 * ampere
 
float shipunit.microampere = 1.0e-6 * ampere
 
float shipunit.nanoampere = 1.0e-9 * ampere
 
float shipunit.megavolt = megaelectronvolt / eplus
 
float shipunit.kilovolt = 1.0e-3 * megavolt
 
float shipunit.volt = 1.0e-6 * megavolt
 
float shipunit.ohm = volt / ampere
 
float shipunit.farad = coulomb / volt
 
float shipunit.millifarad = 1.0e-3 * farad
 
float shipunit.microfarad = 1.0e-6 * farad
 
float shipunit.nanofarad = 1.0e-9 * farad
 
float shipunit.picofarad = 1.0e-12 * farad
 
float shipunit.weber = volt * second
 
float shipunit.kilogauss = 1.0
 
int shipunit.tesla = 10 * kilogauss
 
float shipunit.gauss = 1.0e-4 * tesla
 
float shipunit.henry = weber / ampere
 
float shipunit.kelvin = 1.0
 
float shipunit.mole = 1.0
 
float shipunit.becquerel = 1.0 / second
 
float shipunit.curie = 3.7e10 * becquerel
 
float shipunit.gray = joule / kilogram
 
float shipunit.candela = 1.0
 
float shipunit.lumen = candela * steradian
 
float shipunit.lux = lumen / meter2
 
float shipunit.perCent = 0.01
 
float shipunit.perThousand = 0.001
 
float shipunit.perMillion = 0.000001
 
float shipunit.pi = 3.14159265358979323846
 
float shipunit.twopi = 2.0 * pi
 
float shipunit.halfpi = pi / 2.0
 
float shipunit.pi2 = pi * pi
 
float shipunit.Avogadro = 6.0221367e23 / mole
 
float shipunit.c_light = 2.99792458e8 * m / s
 
float shipunit.c_squared = c_light * c_light
 
float shipunit.h_Planck = 6.6260755e-34 * joule * s
 
float shipunit.hbar_Planck = h_Planck / twopi
 
float shipunit.hbarc = hbar_Planck * c_light
 
float shipunit.hbarc_squared = hbarc * hbarc
 
float shipunit.electron_charge = -eplus
 
float shipunit.e_squared = eplus * eplus
 
float shipunit.electron_mass_c2 = 0.51099906 * MeV
 
float shipunit.proton_mass_c2 = 938.27231 * MeV
 
float shipunit.neutron_mass_c2 = 939.56563 * MeV
 
float shipunit.amu_c2 = 931.49432 * MeV
 
float shipunit.amu = amu_c2 / c_squared
 
int shipunit.mu0 = 4 * pi * 1.0e-7 * henry / m
 
float shipunit.epsilon0 = 1.0 / (c_squared * mu0)
 
float shipunit.elm_coupling = e_squared / (4 * pi * epsilon0)
 
float shipunit.fine_structure_const = elm_coupling / hbarc
 
float shipunit.classic_electr_radius = elm_coupling / electron_mass_c2
 
float shipunit.electron_Compton_length = hbarc / electron_mass_c2
 
float shipunit.Bohr_radius = electron_Compton_length / fine_structure_const
 
float shipunit.alpha_rcl2 = fine_structure_const * classic_electr_radius * classic_electr_radius
 
float shipunit.twopi_mc2_rcl2 = twopi * electron_mass_c2 * classic_electr_radius * classic_electr_radius
 
float shipunit.k_Boltzmann = 8.617385e-11 * MeV / kelvin
 
float shipunit.STP_Temperature = 273.15 * kelvin
 
float shipunit.STP_Pressure = 1.0 * atmosphere
 
float shipunit.kGasThreshold = 10.0 * mg / cm3
 
float shipunit.universe_mean_density = 1.0e-25 * g / cm3
 
int shipunit.speedOfLight = 299792458 * m / s