Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::STLtools Class Reference

#include <AMReX_EB_STL_utils.H>

Public Types

using Node = BVHNodeT< m_bvh_max_size, m_bvh_max_splits >
 

Public Member Functions

void setBVHOptimization (bool flag)
 
void read_stl_file (std::string const &fname, Real scale, Array< Real, 3 > const &center, int reverse_normal)
 
void fill (MultiFab &mf, IntVect const &nghost, Geometry const &geom, Real outside_value=-1._rt, Real inside_value=1._rt) const
 
int getBoxType (Box const &box, Geometry const &geom, RunOn) const
 
void fillFab (BaseFab< Real > &levelset, const Geometry &geom, RunOn, Box const &bounding_box) const
 
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
 
void fillSignedDistance (MultiFab &mf, IntVect const &nghost, Geometry const &geom) const
 
void prepare (Gpu::PinnedVector< Triangle > a_tri_pts)
 

Static Public Member Functions

static constexpr bool isGPUable () noexcept
 
static void updateIntercept (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)
 

Static Public Attributes

static constexpr int m_bvh_max_size = 4
 
static constexpr int m_bvh_max_splits = 4
 
static constexpr int m_bvh_max_stack_size = 12
 
static constexpr int allregular = -1
 
static constexpr int mixedcells = 0
 
static constexpr int allcovered = 1
 

Member Typedef Documentation

◆ Node

Member Function Documentation

◆ fill()

void amrex::STLtools::fill ( MultiFab mf,
IntVect const &  nghost,
Geometry const &  geom,
Real  outside_value = -1._rt,
Real  inside_value = 1._rt 
) const

◆ fillFab()

void amrex::STLtools::fillFab ( BaseFab< Real > &  levelset,
const Geometry geom,
RunOn  ,
Box const &  bounding_box 
) const

◆ fillSignedDistance()

void amrex::STLtools::fillSignedDistance ( MultiFab mf,
IntVect const &  nghost,
Geometry const &  geom 
) const

◆ getBoxType()

int amrex::STLtools::getBoxType ( Box const &  box,
Geometry const &  geom,
RunOn   
) const

◆ getIntercept()

void amrex::STLtools::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

◆ isGPUable()

static constexpr bool amrex::STLtools::isGPUable ( )
inlinestaticconstexprnoexcept

◆ prepare()

void amrex::STLtools::prepare ( Gpu::PinnedVector< Triangle >  a_tri_pts)

◆ read_stl_file()

void amrex::STLtools::read_stl_file ( std::string const &  fname,
Real  scale,
Array< Real, 3 > const &  center,
int  reverse_normal 
)

◆ setBVHOptimization()

void amrex::STLtools::setBVHOptimization ( bool  flag)
inline

◆ updateIntercept()

void amrex::STLtools::updateIntercept ( 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 
)
static

Member Data Documentation

◆ 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: