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

Signed implicit function for an axis-aligned box. More...

#include <AMReX_EB2_IF_Box.H>

Inheritance diagram for amrex::EB2::BoxIF:
amrex::GPUable

Public Member Functions

 BoxIF (const RealArray &a_lo, const RealArray &a_hi, bool a_inside)
 Construct a box implicit surface.
 
__host__ __device__ Real operator() (Real x, Real y, Real z) const noexcept
 Evaluate the implicit at the given coordinate.
 
Real operator() (const RealArray &p) const noexcept
 Evaluate the implicit at the given coordinate.
 

Protected Attributes

XDim3 m_lo
 
XDim3 m_hi
 
Real m_sign
 

Detailed Description

Signed implicit function for an axis-aligned box.

Constructor & Destructor Documentation

◆ BoxIF()

amrex::EB2::BoxIF::BoxIF ( const RealArray a_lo,
const RealArray a_hi,
bool  a_inside 
)
inline

Construct a box implicit surface.

Parameters
a_loLower physical bounds.
a_hiUpper physical bounds.
a_insideTrue if the interior should be treated as fluid (negative).

Member Function Documentation

◆ operator()() [1/2]

Real amrex::EB2::BoxIF::operator() ( const RealArray p) const
inlinenoexcept

Evaluate the implicit at the given coordinate.

◆ operator()() [2/2]

__host__ __device__ Real amrex::EB2::BoxIF::operator() ( Real  x,
Real  y,
Real  z 
) const
inlinenoexcept

Evaluate the implicit at the given coordinate.

Member Data Documentation

◆ m_hi

XDim3 amrex::EB2::BoxIF::m_hi
protected

◆ m_lo

XDim3 amrex::EB2::BoxIF::m_lo
protected

◆ m_sign

Real amrex::EB2::BoxIF::m_sign
protected

The documentation for this class was generated from the following file: