![]() |
Block-Structured AMR Software Framework
|
Samples an implicit function on boxes and fills EB data. More...
#include <AMReX_EB2_GeometryShop.H>
Public Types | |
| using | FunctionType = F |
Public Member Functions | |
| GeometryShop (F f) | |
Construct a GeometryShop that owns an implicit function f. | |
| GeometryShop (F f, R r) | |
| Construct a GeometryShop with an implicit function and resource handle. | |
| F const & | GetImpFunc () const & |
| Immutable access to the underlying implicit function. | |
| F && | GetImpFunc () && |
| int | getBoxType_Cpu (const Box &bx, Geometry const &geom) const noexcept |
| int | getBoxType (const Box &bx, const Geometry &geom, RunOn run_on) const noexcept |
Classify bx as regular, covered, or mixed (GPU-capable case). | |
| int | getBoxType (const Box &bx, const Geometry &geom, RunOn) const noexcept |
| CPU-only fallback for getBoxType(). | |
| void | fillFab (BaseFab< Real > &levelset, const Geometry &geom, RunOn run_on, Box const &bounding_box) const noexcept |
| Fill a level-set FAB by sampling the implicit function on each point in the FAB. | |
| void | fillFab (BaseFab< Real > &levelset, const Geometry &geom, RunOn, Box const &bounding_box) const noexcept |
| CPU-only overload of fillFab(). | |
| void | fillFab_Cpu (BaseFab< Real > &levelset, const Geometry &geom, Box const &bounding_box) const noexcept |
| void | getIntercept (Array< Array4< Real >, 3 > const &inter_arr, Array< Array4< Type_t const >, 3 > const &type_arr, Array4< Real const > const &, Geometry const &geom, RunOn run_on, Box const &bounding_box) const noexcept |
| Compute EB intercepts for irregular edges (GPU-capable case). | |
| void | getIntercept (Array< Array4< Real >, 3 > const &inter_arr, Array< Array4< Type_t const >, 3 > const &type_arr, Array4< Real const > const &, Geometry const &geom, RunOn, Box const &bounding_box) const noexcept |
| CPU-only overload of getIntercept(). | |
| void | getIntercept_Cpu (Array4< Real > const &inter, Array4< Type_t const > const &type, Geometry const &geom, Box const &bounding_box, const int idim) const noexcept |
| void | updateIntercept (Array< Array4< Real >, 3 > const &inter_arr, Array< Array4< Type_t const >, 3 > const &type_arr, Array4< Real const > const &lst, Geometry const &geom) const noexcept |
| Update intercepts when level-set data has been adjusted (e.g., fixing small cells). | |
Static Public Member Functions | |
| static constexpr bool | isGPUable () noexcept |
| static constexpr bool | isGPUable () noexcept |
Static Public Attributes | |
| static constexpr int | in_fluid = -1 |
| static constexpr int | on_boundary = 0 |
| static constexpr int | in_body = 1 |
| static constexpr int | allregular = -1 |
| static constexpr int | mixedcells = 0 |
| static constexpr int | allcovered = 1 |
Samples an implicit function on boxes and fills EB data.
| F | Functor providing the implicit function value. |
| R | Optional resource handle kept alive as long as the shop exists. |
| using amrex::EB2::GeometryShop< F, R >::FunctionType = F |
|
inlineexplicit |
Construct a GeometryShop that owns an implicit function f.
| f | Implicit function whose sign distinguishes inside/outside. |
|
inline |
Construct a GeometryShop with an implicit function and resource handle.
| f | Implicit function being sampled. |
| r | Auxiliary resource (e.g., Parser data) kept alive while f is in use. |
|
inlinenoexcept |
CPU-only overload of fillFab().
|
inlinenoexcept |
|
inlinenoexcept |
Classify bx as regular, covered, or mixed (GPU-capable case).
| bx | Box to inspect. |
| geom | Geometry providing physical coordinates. |
| run_on | Whether to run on CPU or GPU. |
|
inlinenoexcept |
CPU-only fallback for getBoxType().
|
inlinenoexcept |
|
inline |
|
inline |
Immutable access to the underlying implicit function.
|
inlinenoexcept |
Compute EB intercepts for irregular edges (GPU-capable case).
| inter_arr | Array of intercept FABs per direction. |
| type_arr | Edge-type arrays marking regular/covered/irregular edges. |
| geom | Geometry providing metrics. |
| run_on | Execution target. |
| bounding_box | Bounding box limiting evaluation. |
|
inlinenoexcept |
CPU-only overload of getIntercept().
|
inlinenoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinestaticconstexprnoexcept |
|
inlinenoexcept |
Update intercepts when level-set data has been adjusted (e.g., fixing small cells).
| inter_arr | Array of intercept FABs per direction. |
| type_arr | Edge-type arrays marking regular/covered/irregular edges. |
| lst | Level-set data used to determine zero crossings. |
| geom | Geometry providing metrics. |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |