Set of Array4 views to EB data for a single box (plus helpers).
More...
#include <AMReX_EBData.H>
|
| template<EBData_t T> |
| __host__ __device__ auto | get (int i, int j, int k) const noexcept |
| | Access scalar EB data entries at cell (i,j,k).
|
| template<EBData_t T> |
| __host__ __device__ const auto & | get () const noexcept |
| | Access the Array4 backing EB data T.
|
template<EBData_t T>
requires ( T == EBData_t::centroid || T == EBData_t::bndrycent || T == EBData_t::bndrynorm || T==EBData_t::fcx || T==EBData_t::fcy || T==EBData_t::fcz ) |
| __host__ __device__ auto | get (int i, int j, int k, int n) const noexcept |
| __host__ __device__ GpuArray< Real, 3 > | randomPointOnEB (int i, int j, int k, RandomEngine const &engine, GpuArray< Real, 3 > const &dx) const |
| | Generate a uniformly random point on the EB face inside cell (i,j,k).
|
Set of Array4 views to EB data for a single box (plus helpers).
◆ get() [1/3]
| __host__ __device__ const auto & amrex::EBData::get |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Access the Array4 backing EB data T.
◆ get() [2/3]
| __host__ __device__ auto amrex::EBData::get |
( |
int | i, |
|
|
int | j, |
|
|
int | k ) const |
|
inlinenodiscardnoexcept |
Access scalar EB data entries at cell (i,j,k).
◆ get() [3/3]
| __host__ __device__ auto amrex::EBData::get |
( |
int | i, |
|
|
int | j, |
|
|
int | k, |
|
|
int | n ) const |
|
inlinenodiscardnoexcept |
◆ randomPointOnEB()
Generate a uniformly random point on the EB face inside cell (i,j,k).
The point is in the cell's local coordinates normalized to [-0.5,0.5]. The cell size dx is needed because the stored boundary normal is a unit vector in physical space.
Useful for Monte-Carlo flux evaluations or sampling with particles.
◆ m_cell_flag
◆ m_real_data
| Array4<Real const> const* amrex::EBData::m_real_data = nullptr |
◆ real_data_size
The documentation for this struct was generated from the following file: