Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/source/run/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Thereby, the following constants are predefined:
============ ========================= =====================
**variable** **name** **Value**
q_e elementary charge 1.602176634e-19
m_e electron mass 9.1093837015e-31
m_p proton mass 1.67262192369e-27
epsilon0 vacuum permittivity 8.8541878128e-12
mu0 vacuum permeability 1.25663706212e-06
m_e electron mass 9.1093837139e-31
m_p proton mass 1.67262192595e-27
epsilon0 vacuum permittivity 8.8541878188e-12
mu0 vacuum permeability 1.2566370612685e-06
clight speed of light 299'792'458.
hbar reduced Planck constant 1.054571817e-34
r_e classical electron radius 2.817940326204929e-15
hbar reduced Planck constant 1.0545718176461565e-34
r_e classical electron radius 2.8179403205e-15
============ ========================= =====================

For a list of supported functions see the
Expand Down
14 changes: 8 additions & 6 deletions src/utils/Constants.H
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
namespace PhysConstSI
{
static constexpr auto c = static_cast<amrex::Real>( 299'792'458. );
static constexpr auto ep0 = static_cast<amrex::Real>( 8.8541878128e-12 );
static constexpr auto mu0 = static_cast<amrex::Real>( 1.25663706212e-06 );
static constexpr auto ep0 = static_cast<amrex::Real>( 8.8541878188e-12 );
// Note that this is adjusted from the CODATA2022 value, 1.25663706127e-06
// So that the relation between mu0, ep0, and c is exact.
static constexpr auto mu0 = static_cast<amrex::Real>( 1.2566370612685e-06 );
static constexpr auto q_e = static_cast<amrex::Real>( 1.602176634e-19 );
static constexpr auto m_e = static_cast<amrex::Real>( 9.1093837015e-31 );
static constexpr auto m_p = static_cast<amrex::Real>( 1.67262192369e-27 );
static constexpr auto hbar = static_cast<amrex::Real>( 1.054571817e-34 );
static constexpr auto r_e = static_cast<amrex::Real>( 2.817940326204929e-15 );
static constexpr auto m_e = static_cast<amrex::Real>( 9.1093837139e-31 );
static constexpr auto m_p = static_cast<amrex::Real>( 1.67262192595e-27 );
static constexpr auto hbar = static_cast<amrex::Real>( 1.0545718176461565e-34 );
static constexpr auto r_e = static_cast<amrex::Real>( 2.8179403205e-15 );
}

/** \brief Namespace containing math constants */
Expand Down
12 changes: 6 additions & 6 deletions tests/checksum/benchmarks_json/beam_in_vacuum.SI.1Rank.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"lev=0": {
"Bx": 504808.9355994,
"By": 504544.75258176,
"Bx": 504808.93525735,
"By": 504544.75223988,
"Bz": 0.0,
"ExmBy": 0.0,
"EypBx": 0.0,
"Ez": 0.0,
"Psi": 0.0,
"Sx": 61089572477866.0,
"Sy": 65453113369142.0,
"Sx": 61089572436471.0,
"Sy": 65453113324791.0,
"chi": 0.0,
"jx": 0.0,
"jx_beam": 0.0,
Expand All @@ -21,7 +21,7 @@
"beam": {
"charge": 2.05078609152e-17,
"id": 8256,
"mass": 1.166001113792e-28,
"mass": 1.1660011153792e-28,
"x": 0.00056249999999997,
"y": 0.00054166666666667,
"z": 0.00128,
Expand All @@ -33,7 +33,7 @@
"beam2": {
"charge": 2.05078609152e-17,
"id": 8256,
"mass": 1.166001113792e-28,
"mass": 1.1660011153792e-28,
"x": 0.00056249999999997,
"y": 0.00054166666666667,
"z": 0.00128,
Expand Down
12 changes: 6 additions & 6 deletions tests/checksum/benchmarks_json/beam_in_vacuum.SI.Serial.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"lev=0": {
"Bx": 504802.45670063,
"By": 505376.51425774,
"Bx": 504802.45635857,
"By": 505376.5139153,
"Bz": 0.0,
"ExmBy": 0.0,
"EypBx": 0.0,
"Ez": 0.0,
"Psi": 0.0,
"Sx": 61089572477866.0,
"Sy": 65453113369142.0,
"Sx": 61089572436471.0,
"Sy": 65453113324791.0,
"chi": 0.0,
"jx": 0.0,
"jx_beam": 0.0,
Expand All @@ -21,7 +21,7 @@
"beam": {
"charge": 2.05078609152e-17,
"id": 8256,
"mass": 1.166001113792e-28,
"mass": 1.1660011153792e-28,
"x": 0.00056249999999997,
"y": 0.00054166666666667,
"z": 0.00128,
Expand All @@ -33,7 +33,7 @@
"beam2": {
"charge": 2.05078609152e-17,
"id": 8256,
"mass": 1.166001113792e-28,
"mass": 1.1660011153792e-28,
"x": 0.00056249999999997,
"y": 0.00054166666666667,
"z": 0.00128,
Expand Down
32 changes: 16 additions & 16 deletions tests/checksum/benchmarks_json/collisions.SI.1Rank.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"lev=0": {
"Bx": 185899.34444528,
"By": 185891.09596324,
"Bz": 5405.4024783034,
"ExmBy": 84165997407629.0,
"EypBx": 84167368750938.0,
"Ez": 71723305323947.0,
"Psi": 1089625069.2687,
"Sx": 5217735600724800.0,
"Sy": 5218898381730500.0,
"chi": 4056831192945100.0,
"jx": 1.4613925231389e+16,
"Bx": 185899.34469834,
"By": 185891.0962163,
"Bz": 5405.4024856532,
"ExmBy": 84165997522199.0,
"EypBx": 84167368865508.0,
"Ez": 71723305421578.0,
"Psi": 1089625070.7518,
"Sx": 5217735607829200.0,
"Sy": 5218898388835400.0,
"chi": 4056831192945300.0,
"jx": 1.4613925261185e+16,
"jx_beam": 0.0,
"jy": 1.4613891495579e+16,
"jy": 1.4613891525375e+16,
"jy_beam": 0.0,
"jz_beam": 1.0840992316526e+16,
"rhomjz": 178193948.55288
"jz_beam": 1.084099233863e+16,
"rhomjz": 178193948.9162
},
"beam": {
"charge": 1.1933011570032e-15,
"id": 27740076,
"mass": 6.7846689808772e-27,
"mass": 6.7846689901127e-27,
"x": 0.03871,
"y": 0.03871,
"z": 0.2189712,
"ux": 0.0,
"uy": 0.0,
"uz": 14896000.0,
"w": 1692775082.5317
"w": 1692775085.983
}
}
32 changes: 16 additions & 16 deletions tests/checksum/benchmarks_json/collisions_beam.SI.1Rank.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"lev=0": {
"Bx": 185913.17952245,
"By": 185913.17953628,
"Bz": 5397.8234922479,
"ExmBy": 84166839742097.0,
"EypBx": 84166839741133.0,
"Ez": 71724174958005.0,
"Psi": 1089615778.9351,
"Sx": 5219179055325000.0,
"Sy": 5219179054277900.0,
"chi": 4056831883286500.0,
"jx": 1.4613866649187e+16,
"Bx": 185913.17994857,
"By": 185913.17995719,
"Bz": 5397.8235059566,
"ExmBy": 84166839896684.0,
"EypBx": 84166839896134.0,
"Ez": 71724175088989.0,
"Psi": 1089615780.9412,
"Sx": 5219179060742400.0,
"Sy": 5219179060108800.0,
"chi": 4056831883288400.0,
"jx": 1.4613866685593e+16,
"jx_beam": 0.0,
"jy": 1.4613866649805e+16,
"jy": 1.4613866685254e+16,
"jy_beam": 0.0,
"jz_beam": 1.0840992316526e+16,
"rhomjz": 178185438.50546
"jz_beam": 1.084099233863e+16,
"rhomjz": 178185438.93005
},
"beam": {
"charge": 1.1933011570032e-15,
"id": 27740076,
"mass": 6.7846689808772e-27,
"mass": 6.7846689901127e-27,
"x": 0.03871,
"y": 0.03871,
"z": 0.2189712,
"ux": 0.0,
"uy": 0.0,
"uz": 14896000.0,
"w": 1692775082.5317
"w": 1692775085.983
}
}
34 changes: 17 additions & 17 deletions tests/checksum/benchmarks_json/gaussian_linear_wake.SI.1Rank.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"lev=0": {
"Bx": 2235.6297510484,
"By": 2235.6297510484,
"Bz": 120.84949987105,
"ExmBy": 1376736282354.8,
"EypBx": 1376736282354.8,
"Ez": 3009516692977.6,
"Psi": 40654201.500228,
"Sx": 26730530443669.0,
"Sy": 26730530443669.0,
"chi": 2015882150063700.0,
"jx": 266192005849140.0,
"Bx": 2235.6297540894,
"By": 2235.6297540896,
"Bz": 120.84950003652,
"ExmBy": 1376736284228.4,
"EypBx": 1376736284228.4,
"Ez": 3009516697073.4,
"Psi": 40654201.555532,
"Sx": 26730530480050.0,
"Sy": 26730530480050.0,
"chi": 2015882150063800.0,
"jx": 266192006391810.0,
"jx_beam": 0.0,
"jy": 266192005849140.0,
"jy": 266192006391800.0,
"jy_beam": 0.0,
"jz_beam": 514058138002350.0,
"rho": 3639705.2709841,
"rhomjz": 963760.23317969
"jz_beam": 514058139050450.0,
"rho": 3639705.2784051,
"rhomjz": 963760.23514474
},
"beam": {
"charge": 2.5498961565437e-14,
"id": 12664759128,
"mass": 1.4497766348611e-25,
"mass": 1.4497766368346e-25,
"x": 6.78895,
"y": 6.78895,
"z": 4.6790688,
"ux": 0.0,
"uy": 0.0,
"uz": 318304000.0,
"w": 250837609.69339
"w": 250837610.20482
}
}
36 changes: 18 additions & 18 deletions tests/checksum/benchmarks_json/ion_motion.SI.1Rank.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"lev=0": {
"Bx": 369466.91581407,
"By": 342300.74427025,
"Bz": 109128.82389337,
"ExmBy": 137012268149850.0,
"EypBx": 150082963432240.0,
"Ez": 97768402878162.0,
"Psi": 2615885806.3006,
"Sx": 8317584939456900.0,
"Sy": 8593816523334100.0,
"chi": 9744142393174600.0,
"jx": 2.389679063515e+16,
"jx_beam": 1250816704563000.0,
"jy": 2.9693431337825e+16,
"jy_beam": 2501633409126100.0,
"jz_beam": 1.2511979681461e+16,
"rhomjz": 211125618.35893
"Bx": 369466.91631701,
"By": 342300.74473621,
"Bz": 109128.82404192,
"ExmBy": 137012268336360.0,
"EypBx": 150082963636540.0,
"Ez": 97768403011248.0,
"Psi": 2615885809.8615,
"Sx": 8317584950779500.0,
"Sy": 8593816535032700.0,
"chi": 9744142393175000.0,
"jx": 2.3896790683873e+16,
"jx_beam": 1250816707113300.0,
"jy": 2.9693431398367e+16,
"jy_beam": 2501633414226600.0,
"jz_beam": 1.2511979706972e+16,
"rhomjz": 211125618.7894
},
"beam": {
"charge": 1.5983970993204e-13,
"id": 497644281261,
"mass": 9.0878946653482e-25,
"mass": 9.0878946777189e-25,
"x": 3.7827409105503,
"y": 3.8783689163145,
"z": 20.841963429926,
"ux": 9976410.0,
"uy": 19952820.0,
"uz": 99764100.0,
"w": 1001017179.1189
"w": 1001017181.1599
}
}
46 changes: 23 additions & 23 deletions tests/checksum/benchmarks_json/ionization.2Rank.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"lev=0": {
"Bx": 2682248.7057786,
"By": 2693948.2733652,
"Bz": 461542.2571099,
"ExmBy": 1615808685829100.0,
"EypBx": 1618198283855800.0,
"Ez": 661283579146520.0,
"Psi": 10769981642.67,
"Sx": 7.6153143423645e+17,
"Sy": 7.6749662052452e+17,
"chi": 2095164846204800.0,
"jx": 5.1803326176917e+17,
"jx_beam": 231581100098160.0,
"jy": 5.1661888254051e+17,
"jy_beam": 230138001520970.0,
"jz_beam": 1.6907142961472e+17,
"rhomjz": 8996307095.7456
"Bx": 2682248.7024631,
"By": 2693948.2701062,
"Bz": 461542.25627809,
"ExmBy": 1615808683503300.0,
"EypBx": 1618198281458700.0,
"Ez": 661283577718290.0,
"Psi": 10769981625.527,
"Sx": 7.6153143258378e+17,
"Sy": 7.6749661894861e+17,
"chi": 2095164842379900.0,
"jx": 5.1803326128365e+17,
"jx_beam": 231581099135240.0,
"jy": 5.166188820914e+17,
"jy_beam": 230138000597450.0,
"jz_beam": 1.6907142961473e+17,
"rhomjz": 8996307093.0909
},
"beam": {
"charge": 1.127932350336e-16,
"id": 248160,
"mass": 6.413006125856e-28,
"x": 0.00024861156942758,
"y": 0.00024733653871292,
"z": 0.014359549367752,
"ux": 3002.9712584681,
"uy": 3008.1141100408,
"uz": 1386735.4182493,
"mass": 6.4130061345856e-28,
"x": 0.00024861156909874,
"y": 0.00024733653838739,
"z": 0.014359549367759,
"ux": 3002.9712551376,
"uy": 3008.114106705,
"uz": 1386735.4183111,
"w": 825000000.0
}
}
Loading
Loading