Skip to content

Commit 61334f5

Browse files
save
1 parent fc83664 commit 61334f5

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

setups/srpic/1d_polar_cap/pgen.hpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ namespace user {
8282
const real_t drift_u_1, drift_u_2;
8383
const real_t j0;
8484
InitFields<D> init_flds;
85-
cdfTable cdf;
85+
// const real_t e_min, gamma_emit, gamma_rad, gamma_pc, gamma_min, curvR;
86+
// cdfTable cdf;
8687

8788
inline PGen(const SimulationParams& p, const Metadomain<S, M>& m)
8889
: arch::ProblemGenerator<S, M>(p)
@@ -95,8 +96,14 @@ namespace user {
9596
, drift_u_1 { p.template get<real_t>("setup.drift_u_1") }
9697
, drift_u_2 { p.template get<real_t>("setup.drift_u_2") }
9798
, j0 { p.template get<real_t>("setup.j0") }
98-
, init_flds { b0, TWO * FOUR * constant::PI * b0 * Omega * SQR(skindepth0) / larmor0 }
99-
, cdf { "cdf_table.txt", "inverse_cdf_table.txt" } {}
99+
, init_flds { b0, TWO * FOUR * constant::PI * b0 * Omega * SQR(skindepth0) / larmor0 } {}
100+
// , e_min { p.template get<real_t>("setup.e_min") }
101+
// , gamma_emit { p.template get<real_t>("setup.gamma_emit") }
102+
// , gamma_rad { p.template get<real_t>("setup.gamma_rad") }
103+
// , gamma_pc { p.template get<real_t>("setup.gamma_pc") }
104+
// , gamma_min { p.template get<real_t>("setup.gamma_min") }
105+
// , curvR { p.template get<real_t>("setup.curvR") }
106+
// , cdf { "cdf_table.txt", "inverse_cdf_table.txt" } {}
100107

101108
inline PGen() {}
102109

@@ -137,9 +144,6 @@ namespace user {
137144
// ONE + j0);
138145
// }
139146

140-
void CustomPostStep(std::size_t, long double, Domain<S, M>& domain) {
141-
142-
}
143147
};
144148

145149
} // namespace user

src/kernels/QED_process.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ namespace kernel::QED{
362362
const size_t n_steps;
363363

364364
Inline auto Rho(const real_t x) const -> real_t{
365-
return rho0 * (ONE + 0.8 * x / L);
365+
// return rho0 * (ONE + 0.8 * x / L);
366+
return rho0;
366367
}
367368

368369

src/kernels/tests/QED_process.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ auto main(int argc, char* argv[]) -> int {
115115
photon,
116116
e_min,
117117
gamma_emit,
118-
rho,
119118
100,
119+
rho,
120120
N_phs,
121121
offsets,
122122
random_pool,

0 commit comments

Comments
 (0)