Go to the source code of this file.
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal | hard_edged_fraction (const amrex::ParticleReal z, const amrex::ParticleReal zpvdt, const amrex::ParticleReal zs, const amrex::ParticleReal ze) |
| Calculate the residence correction, the fraction of the time step the particle spends inside of the hard edge lattice element. More...
|
|
◆ hard_edged_fraction()
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal hard_edged_fraction |
( |
const amrex::ParticleReal |
z, |
|
|
const amrex::ParticleReal |
zpvdt, |
|
|
const amrex::ParticleReal |
zs, |
|
|
const amrex::ParticleReal |
ze |
|
) |
| |
Calculate the residence correction, the fraction of the time step the particle spends inside of the hard edge lattice element.
- Parameters
-
[in] | z | the current location of the particle |
[in] | zpvdt | the estimated future location of the particle, z + v*dt |
[in] | zs | the start of the lattice element |
[in] | ze | the end of the lattice element |
- Returns
- the fraction is returned