ImpactX
Loading...
Searching...
No Matches
RFCavity.H
Go to the documentation of this file.
1/* Copyright 2022-2026 The Regents of the University of California, through Lawrence
2 * Berkeley National Laboratory (subject to receipt of any required
3 * approvals from the U.S. Dept. of Energy). All rights reserved.
4 *
5 * This file is part of ImpactX.
6 *
7 * Authors: Chad Mitchell, Axel Huebl
8 * License: BSD-3-Clause-LBNL
9 */
10#ifndef IMPACTX_RFCAVITY_H
11#define IMPACTX_RFCAVITY_H
12
15#include "mixin/alignment.H"
16#include "mixin/beamoptic.H"
17#include "mixin/dynamicdata.H"
19#include "mixin/named.H"
20#include "mixin/nofinalize.H"
21#include "mixin/pipeaperture.H"
22#include "mixin/thick.H"
23#include "mixin/TrackedVector.H"
24
25#include <ablastr/constant.H>
26
27#include <AMReX.H>
28#include <AMReX_Extension.H>
29#include <AMReX_Math.H>
30#include <AMReX_REAL.H>
31#include <AMReX_SIMD.H>
32#include <AMReX_SmallMatrix.H>
33
34#include <cmath>
35#include <memory>
36#include <stdexcept>
37#include <tuple>
38#include <vector>
39
40
41namespace impactx::elements
42{
53 {
55 0.1644024074311037,
56 -0.1324009958969339,
57 4.3443060026047219e-002,
58 8.5602654094946495e-002,
59 -0.2433578169042885,
60 0.5297150596779437,
61 0.7164884680963959,
62 -5.2579522442877296e-003,
63 -5.5025369142193678e-002,
64 4.6845673335028933e-002,
65 -2.3279346335638568e-002,
66 4.0800777539657775e-003,
67 4.1378326533752169e-003,
68 -2.5040533340490805e-003,
69 -4.0654981400000964e-003,
70 9.6630592067498289e-003,
71 -8.5275895985990214e-003,
72 -5.8078747006425020e-002,
73 -2.4044337836660403e-002,
74 1.0968240064697212e-002,
75 -3.4461179858301418e-003,
76 -8.1201564869443749e-004,
77 2.1438992904959380e-003,
78 -1.4997753525697276e-003,
79 1.8685171825676386e-004
80 };
81
83 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
84 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
85 0, 0, 0
86 };
87 };
88
99
100 struct RFCavity
101 : public mixin::Named,
102 public mixin::BeamOptic<RFCavity>,
103 public mixin::LinearTransport<RFCavity>,
104 public mixin::Thick,
105 public mixin::Alignment,
106 public mixin::NoFinalize,
107 public mixin::PipeAperture,
108 public amrex::simd::Vectorized<amrex::simd::native_simd_size_particlereal>
109 {
110 static constexpr auto type = "RFCavity";
112
114
135 amrex::ParticleReal escale,
138 std::vector<amrex::ParticleReal> cos_coef,
139 std::vector<amrex::ParticleReal> sin_coef,
142 amrex::ParticleReal rotation_degree = 0,
145 int mapsteps = 1,
146 int nslice = 1,
147 std::optional<std::string> name = std::nullopt
148 )
149 : Named(std::move(name)),
150 Thick(ds, nslice),
151 Alignment(dx, dy, rotation_degree),
153 m_escale(escale), m_freq(freq), m_phase(phase), m_mapsteps(mapsteps),
154 m_id(DynamicData::allocate_id())
155 {
156 m_ncoef = int(cos_coef.size());
157 if (m_ncoef != int(sin_coef.size()))
158 throw std::runtime_error("RFCavity: cos and sin coefficients must have same length!");
159
160 auto& coef = DynamicData::emplace(
161 m_id,
162 std::move(cos_coef),
163 std::move(sin_coef)
164 );
165 m_cos_h_data = coef.cos.host_const().data();
166 m_sin_h_data = coef.sin.host_const().data();
167 }
168
170 void reverse () {
171 // Reversing ds traverses the Fourier profile in the opposite z direction,
172 // so the odd sine terms change sign implicitly via sin(-kz) = -sin(kz).
173 Thick::reverse();
174 }
175
177 using BeamOptic::operator();
178
186 void compute_constants (RefPart const & refpart)
187 {
188 using namespace amrex::literals; // for _rt and _prt
189
190 Alignment::compute_constants(refpart);
191
192 auto const & coef = *DynamicData::get(m_id);
193 m_cos_d_data = coef.cos.device_const().data();
194 m_sin_d_data = coef.sin.device_const().data();
195 }
196
211 template<typename T_Real=amrex::ParticleReal, typename T_IdCpu=uint64_t>
214 T_Real & AMREX_RESTRICT x,
215 T_Real & AMREX_RESTRICT y,
216 T_Real & AMREX_RESTRICT t,
217 T_Real & AMREX_RESTRICT px,
218 T_Real & AMREX_RESTRICT py,
219 T_Real & AMREX_RESTRICT pt,
220 T_IdCpu & AMREX_RESTRICT idcpu,
221 RefPart const & AMREX_RESTRICT refpart
222 ) const
223 {
224 using namespace amrex::literals; // for _rt and _prt
225
226 // shift due to alignment errors of the element
227 shift_in(x, y, px, py);
228
229 // get the linear map
231
232 // symplectic linear map for the RF cavity is computed using the
233 // Hamiltonian formalism as described in:
234 // https://uspas.fnal.gov/materials/09UNM/ComputationalMethods.pdf.
235 // R denotes the transfer matrix in the basis (x,px,y,py,t,pt),
236 // so that, e.g., R(3,4) = dyf/dpyi.
237 amrex::SmallVector<T_Real, 6, 1> const v{x, px, y, py, t, pt};
238
239 // push particles using the linear map
240 auto const out = R * v;
241
242 // assign updated values
243 x = out[1];
244 px = out[2];
245 y = out[3];
246 py = out[4];
247 t = out[5];
248 pt = out[6];
249
250 // apply transverse aperture
251 apply_aperture(x, y, idcpu);
252
253 // undo shift due to alignment errors of the element
254 shift_out(x, y, px, py);
255 }
256
262 void operator() (RefPart & AMREX_RESTRICT refpart) const
263 {
264 using namespace amrex::literals; // for _rt and _prt
265 using amrex::Math::powi;
266
267 // assign input reference particle values
268 amrex::ParticleReal const x = refpart.x;
269 amrex::ParticleReal const px = refpart.px;
270 amrex::ParticleReal const y = refpart.y;
271 amrex::ParticleReal const py = refpart.py;
272 amrex::ParticleReal const z = refpart.z;
273 amrex::ParticleReal const pz = refpart.pz;
274 amrex::ParticleReal const pt = refpart.pt;
275 amrex::ParticleReal const s = refpart.s;
276 amrex::ParticleReal const sedge = refpart.sedge;
277
278 // initialize linear map (deviation) values
279 refpart.map = decltype(refpart.map)::Identity();
280
281 // length of the current slice
282 amrex::ParticleReal const slice_ds = m_ds / nslice();
283
284 // compute initial value of beta*gamma
285 amrex::ParticleReal const bgi = std::sqrt(powi<2>(pt) - 1.0_prt);
286
287 // call integrator to advance (t,pt)
288 amrex::ParticleReal const zin = s - sedge;
289 amrex::ParticleReal const zout = zin + slice_ds;
290 int const nsteps = m_mapsteps;
291
292 integrators::symp2_integrate_split3(refpart,zin,zout,nsteps,*this);
293 amrex::ParticleReal const ptf = refpart.pt;
294
295 // advance position (x,y,z)
296 refpart.x = x + slice_ds*px/bgi;
297 refpart.y = y + slice_ds*py/bgi;
298 refpart.z = z + slice_ds*pz/bgi;
299
300 // compute final value of beta*gamma
301 amrex::ParticleReal const bgf = std::sqrt(powi<2>(ptf) - 1.0_prt);
302
303 // advance momentum (px,py,pz)
304 refpart.px = px*bgf/bgi;
305 refpart.py = py*bgf/bgi;
306 refpart.pz = pz*bgf/bgi;
307
308 // convert linear map from dynamic to static units
309 amrex::ParticleReal scale_in = 1.0_prt;
310 amrex::ParticleReal scale_fin = 1.0_prt;
311
312 for (int i=1; i<7; i++) {
313 for (int j=1; j<7; j++) {
314 if( i % 2 == 0)
315 scale_fin = bgf;
316 else
317 scale_fin = 1.0_prt;
318 if( j % 2 == 0)
319 scale_in = bgi;
320 else
321 scale_in = 1.0_prt;
322 refpart.map(i, j) = refpart.map(i, j) * scale_in / scale_fin;
323 }
324 }
325
326 // advance integrated path length
327 refpart.s = s + slice_ds;
328 }
329
331 using LinearTransport::operator();
332
338 Map6x6
339 transport_map ([[maybe_unused]] RefPart const & AMREX_RESTRICT refpart) const
340 {
341
343 R = refpart.map;
344
345 return R;
346 }
347
354 std::tuple<amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal>
356 RF_Efield (amrex::ParticleReal const zeval) const
357 {
358 using namespace amrex::literals; // for _rt and _prt
359 using amrex::Math::powi;
360
361 // pick the right data depending if we are on the host side
362 // (reference particle push) or device side (particles):
363#if AMREX_DEVICE_COMPILE
364 amrex::ParticleReal const * cos_data = m_cos_d_data;
365 amrex::ParticleReal const * sin_data = m_sin_d_data;
366#else
367 amrex::ParticleReal const * cos_data = m_cos_h_data;
368 amrex::ParticleReal const * sin_data = m_sin_h_data;
369#endif
370
371 // specify constants
373 amrex::ParticleReal const zlen = std::abs(m_ds);
374 amrex::ParticleReal const zmid = zlen * 0.5_prt;
375
376 // compute on-axis electric field (z is relative to cavity midpoint)
377 amrex::ParticleReal efield = 0.0;
378 amrex::ParticleReal efieldp = 0.0;
379 amrex::ParticleReal efieldpp = 0.0;
380 amrex::ParticleReal efieldint = 0.0;
381 amrex::ParticleReal const z = zeval - zmid;
382
383 if (std::abs(z) <= zmid)
384 {
385 efield = 0.5_prt*cos_data[0];
386 efieldint = z*efield;
387 for (int j=1; j < m_ncoef; ++j)
388 {
389 efield = efield + cos_data[j] * std::cos(j*2*pi*z/zlen) +
390 sin_data[j] * std::sin(j*2*pi*z/zlen);
391 efieldp = efieldp-j*2*pi*cos_data[j] * std::sin(j*2*pi*z/zlen)/zlen +
392 j*2*pi*sin_data[j] * std::cos(j*2*pi*z/zlen)/zlen;
393 efieldpp = efieldpp- powi<2>(j*2*pi*cos_data[j]/zlen) * std::cos(j*2*pi*z/zlen) -
394 powi<2>(j*2*pi*sin_data[j]/zlen) * std::sin(j*2*pi*z/zlen);
395 efieldint = efieldint + zlen*cos_data[j] * std::sin(j*2*pi*z/zlen)/(j*2*pi) -
396 zlen*sin_data[j] * std::cos(j*2*pi*z/zlen)/(j*2*pi);
397 }
398 }
399 else // endpoint of the RF, outsize zlen
400 {
401 efieldint = std::copysign(zmid, z)*0.5_prt*cos_data[0];
402 for (int j=1; j < m_ncoef; ++j)
403 {
404 efieldint = efieldint - zlen*sin_data[j] * std::cos(j*pi)/(j*2*pi);
405 }
406 }
407 return std::make_tuple(efield, efieldp, efieldint);
408 }
409
419 void map3 (amrex::ParticleReal const tau,
420 RefPart & refpart,
421 [[maybe_unused]] amrex::ParticleReal & zeval) const
422 {
423 using namespace amrex::literals; // for _rt and _prt
424 using amrex::Math::powi;
425
426 // push the reference particle
427 amrex::ParticleReal const t = refpart.t;
428 amrex::ParticleReal const pt = refpart.pt;
429
430 if (pt < -1.0_prt) {
431 refpart.t = t + tau/std::sqrt(1.0_prt - powi<-2>(pt));
432 refpart.pt = pt;
433 }
434 else {
435 refpart.t = t;
436 refpart.pt = pt;
437 }
438
439 // push the linear map equations
441 amrex::ParticleReal const betgam = refpart.beta_gamma();
442
443 refpart.map(5,5) = R(5,5) + tau*R(6,5)/powi<3>(betgam);
444 refpart.map(5,6) = R(5,6) + tau*R(6,6)/powi<3>(betgam);
445 }
446
456 void map2 (amrex::ParticleReal const tau,
457 RefPart & refpart,
458 amrex::ParticleReal & zeval) const
459 {
460 using namespace amrex::literals; // for _rt and _prt
461 using amrex::Math::powi;
462
463 amrex::ParticleReal const t = refpart.t;
464 amrex::ParticleReal const pt = refpart.pt;
465
466 // Define parameters and intermediate constants
469 amrex::ParticleReal const k = (2_prt*pi/c)*m_freq;
470 amrex::ParticleReal const phi = m_phase*(pi/180_prt);
471 amrex::ParticleReal const E0 = m_escale;
472
473 // push the reference particle
474 auto [ez, ezp, ezint] = RF_Efield(zeval);
475 amrex::ignore_unused(ez, ezint);
476
477 refpart.t = t;
478 refpart.pt = pt;
479
480 // push the linear map equations
482 amrex::ParticleReal const s = tau/refpart.beta_gamma();
483 amrex::ParticleReal const L = E0*ezp * std::sin(k*t+phi)/(2_prt*k);
484
485 refpart.map(1,1) = (1_prt-s*L)*R(1,1) + s*R(2,1);
486 refpart.map(1,2) = (1_prt-s*L)*R(1,2) + s*R(2,2);
487 refpart.map(2,1) = -s * powi<2>(L)*R(1,1) + (1_prt+s*L)*R(2,1);
488 refpart.map(2,2) = -s * powi<2>(L)*R(1,2) + (1_prt+s*L)*R(2,2);
489
490 refpart.map(3,3) = (1_prt-s*L)*R(3,3) + s*R(4,3);
491 refpart.map(3,4) = (1_prt-s*L)*R(3,4) + s*R(4,4);
492 refpart.map(4,3) = -s * powi<2>(L)*R(3,3) + (1_prt+s*L)*R(4,3);
493 refpart.map(4,4) = -s * powi<2>(L)*R(3,4) + (1_prt+s*L)*R(4,4);
494 }
495
505 void map1 (amrex::ParticleReal const tau,
506 RefPart & refpart,
507 amrex::ParticleReal & zeval) const
508 {
509 using namespace amrex::literals; // for _rt and _prt
510
511 amrex::ParticleReal const t = refpart.t;
512 amrex::ParticleReal const pt = refpart.pt;
513 amrex::ParticleReal const z = zeval;
514
515 // Define parameters and intermediate constants
518 amrex::ParticleReal const k = (2_prt*pi/c)*m_freq;
519 amrex::ParticleReal const phi = m_phase*(pi/180_prt);
520 amrex::ParticleReal const E0 = m_escale;
521
522 // push the reference particle
523 auto [ez, ezp, ezint] = RF_Efield(z);
525 zeval = z + tau;
526 auto [ezf, ezpf, ezintf] = RF_Efield(zeval);
528
529 refpart.t = t;
530 refpart.pt = pt - E0*(ezintf-ezint) * std::cos(k*t+phi);
531
532 // push the linear map equations
534 amrex::ParticleReal const M = E0*(ezintf-ezint)*k * std::sin(k*t+phi);
535 amrex::ParticleReal const L = E0*(ezpf-ezp) * std::sin(k*t+phi)/(2_prt*k)+M*0.5_prt;
536
537 refpart.map(2,1) = L*R(1,1) + R(2,1);
538 refpart.map(2,2) = L*R(1,2) + R(2,2);
539
540 refpart.map(4,3) = L*R(3,3) + R(4,3);
541 refpart.map(4,4) = L*R(3,4) + R(4,4);
542
543 refpart.map(6,5) = M*R(5,5) + R(6,5);
544 refpart.map(6,6) = M*R(5,6) + R(6,6);
545 }
546
551 int m_id;
552
553 int m_ncoef = 0;
558 };
559
560} // namespace impactx
561
564
565#endif // IMPACTX_RFCAVITY_H
#define AMREX_FORCE_INLINE
#define AMREX_RESTRICT
#define AMREX_GPU_HOST_DEVICE
#define AMREX_GPU_HOST
#define IMPACTX_PUSH_EXTERN_TEMPLATE(ElementType)
Definition PushAll.H:78
#define IMPACTX_GPUDATA_EXTERN(ElementType)
Definition dynamicdata.H:130
amrex_particle_real ParticleReal
constexpr auto c
constexpr T powi(T x) noexcept
__host__ __device__ void ignore_unused(const Ts &...)
SmallMatrix< T, N, 1, Order::F, StartIndex > SmallVector
Definition All.H:56
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void symp2_integrate_split3(RefPart &refpart, amrex::ParticleReal const zin, amrex::ParticleReal const zout, int const nsteps, T_Element const &element)
Definition Integrators.H:79
@ s
fixed s as the independent variable
Definition ImpactXParticleContainer.H:37
@ t
fixed t as the independent variable
Definition ImpactXParticleContainer.H:38
amrex::SmallMatrix< amrex::ParticleReal, 6, 6, amrex::Order::F, 1 > Map6x6
Definition CovarianceMatrix.H:20
static constexpr __host__ __device__ SmallMatrix< T, NRows, NCols, ORDER, StartIndex > Identity() noexcept
Definition ReferenceParticle.H:33
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal beta_gamma() const
Definition ReferenceParticle.H:166
amrex::ParticleReal pt
energy, normalized by rest energy
Definition ReferenceParticle.H:42
amrex::SmallMatrix< amrex::ParticleReal, 6, 6, amrex::Order::F, 1 > map
linearized map
Definition ReferenceParticle.H:48
amrex::ParticleReal t
clock time * c in meters
Definition ReferenceParticle.H:38
mixin::TrackedVector< amrex::ParticleReal > sin
Definition RFCavity.H:97
mixin::TrackedVector< amrex::ParticleReal > cos
Definition RFCavity.H:96
Definition RFCavity.H:53
amrex::Vector< amrex::ParticleReal > default_sin_coef
Definition RFCavity.H:82
amrex::Vector< amrex::ParticleReal > default_cos_coef
Definition RFCavity.H:54
Definition RFCavity.H:109
void compute_constants(RefPart const &refpart)
Definition RFCavity.H:186
std::tuple< amrex::ParticleReal, amrex::ParticleReal, amrex::ParticleReal > AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE RF_Efield(amrex::ParticleReal const zeval) const
Definition RFCavity.H:356
int m_ncoef
unique RF cavity id used for data lookup map
Definition RFCavity.H:553
static constexpr auto type
Definition RFCavity.H:110
RFCavity(amrex::ParticleReal ds, amrex::ParticleReal escale, amrex::ParticleReal freq, amrex::ParticleReal phase, std::vector< amrex::ParticleReal > cos_coef, std::vector< amrex::ParticleReal > sin_coef, amrex::ParticleReal dx=0, amrex::ParticleReal dy=0, amrex::ParticleReal rotation_degree=0, amrex::ParticleReal aperture_x=0, amrex::ParticleReal aperture_y=0, int mapsteps=1, int nslice=1, std::optional< std::string > name=std::nullopt)
Definition RFCavity.H:133
int m_id
number of map integration steps per slice
Definition RFCavity.H:551
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void map1(amrex::ParticleReal const tau, RefPart &refpart, amrex::ParticleReal &zeval) const
Definition RFCavity.H:505
amrex::ParticleReal m_escale
Definition RFCavity.H:547
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void map3(amrex::ParticleReal const tau, RefPart &refpart, amrex::ParticleReal &zeval) const
Definition RFCavity.H:419
mixin::GPUDataRegistry< CavityFourierCoefficients > DynamicData
Definition RFCavity.H:113
void reverse()
Definition RFCavity.H:170
amrex::ParticleReal const * m_cos_h_data
number of Fourier coefficients
Definition RFCavity.H:554
amrex::ParticleReal m_freq
scaling factor for RF electric field
Definition RFCavity.H:548
int m_mapsteps
RF driven phase in deg.
Definition RFCavity.H:550
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void map2(amrex::ParticleReal const tau, RefPart &refpart, amrex::ParticleReal &zeval) const
Definition RFCavity.H:456
amrex::ParticleReal const * m_cos_d_data
non-owning pointer to host sine coefficients
Definition RFCavity.H:556
amrex::ParticleReal const * m_sin_d_data
non-owning pointer to device cosine coefficients
Definition RFCavity.H:557
AMREX_GPU_HOST AMREX_FORCE_INLINE Map6x6 transport_map(RefPart const &AMREX_RESTRICT refpart) const
Definition RFCavity.H:339
amrex::ParticleReal const * m_sin_h_data
non-owning pointer to host cosine coefficients
Definition RFCavity.H:555
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator()(T_Real &AMREX_RESTRICT x, T_Real &AMREX_RESTRICT y, T_Real &AMREX_RESTRICT t, T_Real &AMREX_RESTRICT px, T_Real &AMREX_RESTRICT py, T_Real &AMREX_RESTRICT pt, T_IdCpu &AMREX_RESTRICT idcpu, RefPart const &AMREX_RESTRICT refpart) const
Definition RFCavity.H:213
ImpactXParticleContainer::ParticleType PType
Definition RFCavity.H:111
amrex::ParticleReal m_phase
RF frequency in Hz.
Definition RFCavity.H:549
Definition alignment.H:27
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void shift_out(T_Real &AMREX_RESTRICT x, T_Real &AMREX_RESTRICT y, T_Real &AMREX_RESTRICT px, T_Real &AMREX_RESTRICT py) const
Definition alignment.H:109
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal dy() const
Definition alignment.H:146
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal dx() const
Definition alignment.H:136
Alignment(amrex::ParticleReal dx, amrex::ParticleReal dy, amrex::ParticleReal rotation_degree)
Definition alignment.H:36
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void shift_in(T_Real &AMREX_RESTRICT x, T_Real &AMREX_RESTRICT y, T_Real &AMREX_RESTRICT px, T_Real &AMREX_RESTRICT py) const
Definition alignment.H:78
Definition beamoptic.H:436
static std::shared_ptr< CavityFourierCoefficients > const & get(int id)
Definition dynamicdata.H:73
static CavityFourierCoefficients & emplace(int id, Args &&... args)
Definition dynamicdata.H:100
Definition lineartransport.H:50
Definition named.H:29
AMREX_GPU_HOST Named(std::optional< std::string > name)
Definition named.H:57
AMREX_FORCE_INLINE std::string name() const
Definition named.H:122
Definition nofinalize.H:22
Definition pipeaperture.H:26
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void apply_aperture(T_Real &AMREX_RESTRICT x, T_Real &AMREX_RESTRICT y, T_IdCpu &AMREX_RESTRICT idcpu) const
Definition pipeaperture.H:59
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal aperture_x() const
Definition pipeaperture.H:90
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal aperture_y() const
Definition pipeaperture.H:101
PipeAperture(amrex::ParticleReal aperture_x, amrex::ParticleReal aperture_y)
Definition pipeaperture.H:32
Definition thick.H:24
Thick(amrex::ParticleReal ds, int nslice)
Definition thick.H:30
amrex::ParticleReal m_ds
Definition thick.H:68
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal ds() const
Definition thick.H:53
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int nslice() const
Definition thick.H:43
Definition TrackedVector.H:49