1 #ifndef AMREX_EB2_IF_CYLINDER_H_
2 #define AMREX_EB2_IF_CYLINDER_H_
3 #include <AMReX_Config.H>
25 :
CylinderIF(a_radius, -1.0_rt, a_direction, a_center, a_inside)
31 CylinderIF (Real a_radius, Real a_height,
int a_direction,
35 m_sign(a_inside ? 1.0_rt : -1.0_rt)
43 #if (AMREX_SPACEDIM == 3)
53 #if (AMREX_SPACEDIM == 3)
54 d2 = pos.y*pos.y+pos.z*pos.z;
55 #elif (AMREX_SPACEDIM == 2)
63 #if (AMREX_SPACEDIM == 3)
64 d2 = pos.x*pos.x+pos.z*pos.z;
65 #elif (AMREX_SPACEDIM == 2)
73 d2 = pos.x*pos.x+pos.y*pos.y;
74 #if (AMREX_SPACEDIM == 3)
88 Real rtop = ( pdir - 0.5_rt*
m_height);
89 Real rbot = (-pdir - 0.5_rt*
m_height);
#define AMREX_ASSERT(EX)
Definition: AMReX_BLassert.H:38
#define AMREX_GPU_HOST_DEVICE
Definition: AMReX_GpuQualifiers.H:20
#define AMREX_D_DECL(a, b, c)
Definition: AMReX_SPACE.H:104
Definition: AMReX_EB2_IF_Cylinder.H:16
AMREX_GPU_HOST_DEVICE Real operator()(AMREX_D_DECL(Real x, Real y, Real z)) const noexcept
Definition: AMReX_EB2_IF_Cylinder.H:41
XDim3 m_center
Definition: AMReX_EB2_IF_Cylinder.H:105
CylinderIF(Real a_radius, Real a_height, int a_direction, const RealArray &a_center, bool a_inside)
Definition: AMReX_EB2_IF_Cylinder.H:31
Real m_radius
Definition: AMReX_EB2_IF_Cylinder.H:102
int m_direction
Definition: AMReX_EB2_IF_Cylinder.H:104
CylinderIF(Real a_radius, int a_direction, const RealArray &a_center, bool a_inside)
Definition: AMReX_EB2_IF_Cylinder.H:23
Real m_sign
Definition: AMReX_EB2_IF_Cylinder.H:107
Real m_height
Definition: AMReX_EB2_IF_Cylinder.H:103
Definition: AMReX_FabArrayBase.H:32
AMREX_GPU_HOST_DEVICE constexpr AMREX_FORCE_INLINE const T & max(const T &a, const T &b) noexcept
Definition: AMReX_Algorithm.H:35
XDim3 makeXDim3(const Array< Real, AMREX_SPACEDIM > &a) noexcept
Definition: AMReX_Array.H:885
Array< Real, AMREX_SPACEDIM > RealArray
Definition: AMReX_Array.H:26
Definition: AMReX_EB2_IF_Base.H:11
Definition: AMReX_Dim3.H:13
Real x
Definition: AMReX_Dim3.H:13
Real z
Definition: AMReX_Dim3.H:13
Real y
Definition: AMReX_Dim3.H:13