Utility class that loads STL meshes and samples them onto AMReX grids.
More...
#include <AMReX_EB_STL_utils.H>
|
| void | setBVHOptimization (bool flag) |
| | Enable/disable BVH acceleration when sampling.
|
| |
| void | read_stl_file (std::string const &fname, Real scale, Array< Real, 3 > const ¢er, int reverse_normal) |
| | Read an STL file, apply scaling/translation, and store triangles.
|
| |
| void | fill (MultiFab &mf, IntVect const &nghost, Geometry const &geom, Real outside_value=-1._rt, Real inside_value=1._rt) const |
| | Fill a level-set MultiFab sampled from the STL mesh.
|
| |
| int | getBoxType (Box const &box, Geometry const &geom, RunOn) const |
| | Return whether the EB is regular/covered/mixed inside box.
|
| |
| void | fillFab (BaseFab< Real > &levelset, const Geometry &geom, RunOn, Box const &bounding_box) const |
| | Fill a BaseFab with level-set data (host/device aware).
|
| |
| void | getIntercept (Array< Array4< Real >, 3 > const &inter_arr, Array< Array4< EB2::Type_t const >, 3 > const &type_arr, Array4< Real const > const &lst, Geometry const &geom, RunOn, Box const &bounding_box) const |
| | Compute intercepts and face types for EB geometry based on the STL mesh.
|
| |
| void | fillSignedDistance (MultiFab &mf, IntVect const &nghost, Geometry const &geom) const |
| | Fill mf with signed-distance values sampled from the STL mesh.
|
| |
| void | prepare (Gpu::PinnedVector< Triangle > a_tri_pts) |
| | Upload triangle data to device memory (exposed for CUDA workflows).
|
| |
Utility class that loads STL meshes and samples them onto AMReX grids.
◆ Node
◆ fill()
Fill a level-set MultiFab sampled from the STL mesh.
◆ fillFab()
Fill a BaseFab with level-set data (host/device aware).
◆ fillSignedDistance()
Fill mf with signed-distance values sampled from the STL mesh.
◆ getBoxType()
Return whether the EB is regular/covered/mixed inside box.
◆ getIntercept()
Compute intercepts and face types for EB geometry based on the STL mesh.
◆ isGPUable()
| static constexpr bool amrex::STLtools::isGPUable |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ prepare()
Upload triangle data to device memory (exposed for CUDA workflows).
◆ read_stl_file()
| void amrex::STLtools::read_stl_file |
( |
std::string const & |
fname, |
|
|
Real |
scale, |
|
|
Array< Real, 3 > const & |
center, |
|
|
int |
reverse_normal |
|
) |
| |
Read an STL file, apply scaling/translation, and store triangles.
- Parameters
-
| fname | Path to the STL mesh. |
| scale | Uniform scaling factor applied to vertices. |
| center | Translation applied to recenter the mesh. |
| reverse_normal | Non-zero to flip normals. |
◆ setBVHOptimization()
| void amrex::STLtools::setBVHOptimization |
( |
bool |
flag | ) |
|
|
inline |
Enable/disable BVH acceleration when sampling.
◆ updateIntercept()
◆ allcovered
| constexpr int amrex::STLtools::allcovered = 1 |
|
staticconstexpr |
◆ allregular
| constexpr int amrex::STLtools::allregular = -1 |
|
staticconstexpr |
◆ m_bvh_max_size
| constexpr int amrex::STLtools::m_bvh_max_size = 4 |
|
staticconstexpr |
◆ m_bvh_max_splits
| constexpr int amrex::STLtools::m_bvh_max_splits = 4 |
|
staticconstexpr |
◆ m_bvh_max_stack_size
| constexpr int amrex::STLtools::m_bvh_max_stack_size = 12 |
|
staticconstexpr |
◆ mixedcells
| constexpr int amrex::STLtools::mixedcells = 0 |
|
staticconstexpr |
The documentation for this class was generated from the following files: