Re: Archimedes a patch for constants.h I updated constants based on http://physics.nist.gov/cuu/Constants/Table/allascii.txt Probably doesn't matter. Added "const" a few places, should help performance, however minor. --Carl Hansen address@hidden *** constants.h 2011-08-23 23:52:56.000000000 -0700 --- constants.h.stock 2011-08-23 23:44:11.000000000 -0700 *************** *** 34,52 **** // ###################################################### // Boltzmann constant (Joule/Kelvin) ! const real KB=1.3806488e-23; // Electron charge in absolute value (Coulomb) ! const real Q=1.602176565e-19; // Reduced Planck constant (Joule*sec) ! const real HBAR=1.054571726e-34; // Permittivity of free space (F/m) const real EPS0=8.854187817e-12; // Electron Mass (Kg) ! const real M=9.10938291e-31; // Silicon intrinsic density for room temperature const real NI=1.45e16; // Pi number ! const real PI=3.14159265358979323846; // electron energy step (eV) for the MC method const real DE=0.002; // mstar coefficient for Si heavy hole --- 33,51 ---- // ###################################################### // Boltzmann constant (Joule/Kelvin) ! const real KB=1.380658e-23; // Electron charge in absolute value (Coulomb) ! const real Q=1.60217733e-19; // Reduced Planck constant (Joule*sec) ! const real HBAR=1.05457266e-34; // Permittivity of free space (F/m) const real EPS0=8.854187817e-12; // Electron Mass (Kg) ! const real M=9.1093897e-31; // Silicon intrinsic density for room temperature const real NI=1.45e16; // Pi number ! const real PI=3.141592654; // electron energy step (eV) for the MC method const real DE=0.002; // mstar coefficient for Si heavy hole *************** *** 56,71 **** // mstar coefficient for GaAs heavy hole const real mstarHGAAS=0.510; // Silicon low field mobility (m^2/(V*sec)) ! const real MIU0=1400.e-4; // Silicon saturation velocity (m/sec) ! const real VS=1.e5; // Silicon heavy hole effective mass ! const real mstarhole=0.57; // Silicon heavy hole low field mobility (m^2/(V*sec)) ! const real MIU0hole=0.0471; // Silicon heavy hole saturation velocity (m/sec) ! const real VShole=1.e5; // Silicon Schottky contact density (1/m^3) ! const real NGATE=3.9e11; // ###################################################### // ###################################################### --- 55,70 ---- // mstar coefficient for GaAs heavy hole const real mstarHGAAS=0.510; // Silicon low field mobility (m^2/(V*sec)) ! real MIU0=1400.e-4; // Silicon saturation velocity (m/sec) ! real VS=1.e5; // Silicon heavy hole effective mass ! real mstarhole=0.57; // Silicon heavy hole low field mobility (m^2/(V*sec)) ! real MIU0hole=0.0471; // Silicon heavy hole saturation velocity (m/sec) ! real VShole=1.e5; // Silicon Schottky contact density (1/m^3) ! real NGATE=3.9e11; // ###################################################### // ######################################################