Block-Structured AMR Software Framework
amrex::EB2::CylinderIF Class Reference

#include <AMReX_EB2_IF_Cylinder.H>

Inheritance diagram for amrex::EB2::CylinderIF:
amrex::GPUable

Public Member Functions

 CylinderIF (Real a_radius, int a_direction, const RealArray &a_center, bool a_inside)
 
 CylinderIF (Real a_radius, Real a_height, int a_direction, const RealArray &a_center, bool a_inside)
 
AMREX_GPU_HOST_DEVICE Real operator() (AMREX_D_DECL(Real x, Real y, Real z)) const noexcept
 
Real operator() (const RealArray &p) const noexcept
 

Protected Attributes

Real m_radius
 
Real m_height
 
int m_direction
 
XDim3 m_center
 
Real m_sign
 

Constructor & Destructor Documentation

◆ CylinderIF() [1/2]

amrex::EB2::CylinderIF::CylinderIF ( Real  a_radius,
int  a_direction,
const RealArray a_center,
bool  a_inside 
)
inline

Overloaded constructor for infinite cylinder IF: if the user does not provide a cylinder height, the IF corresponds to a cylinder that spans the whole domain.

◆ CylinderIF() [2/2]

amrex::EB2::CylinderIF::CylinderIF ( Real  a_radius,
Real  a_height,
int  a_direction,
const RealArray a_center,
bool  a_inside 
)
inline

Overloaded constructor for finite cylinder IF: if the user does specify a cylinder height (length), then the IF corresponds to a cylinder extending only to height/2 from it's center.

Member Function Documentation

◆ operator()() [1/2]

AMREX_GPU_HOST_DEVICE Real amrex::EB2::CylinderIF::operator() ( AMREX_D_DECL(Real x, Real y, Real z)  ) const
inlinenoexcept

◆ operator()() [2/2]

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

Member Data Documentation

◆ m_center

XDim3 amrex::EB2::CylinderIF::m_center
protected

◆ m_direction

int amrex::EB2::CylinderIF::m_direction
protected

◆ m_height

Real amrex::EB2::CylinderIF::m_height
protected

◆ m_radius

Real amrex::EB2::CylinderIF::m_radius
protected

◆ m_sign

Real amrex::EB2::CylinderIF::m_sign
protected

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