PolarGeometry Struct ReferenceΒΆ

adc_cpp: pops::PolarGeometry Struct Reference
adc_cpp 0.3.0
Model-free C++23 core for coupled hyperbolic-elliptic systems on adaptive (AMR) meshes, with MPI and GPU (Kokkos) backends

#include <geometry.hpp>

+ Collaboration diagram for pops::PolarGeometry:

Public Member Functions

POPS_HD Real dr () const
 
POPS_HD Real dtheta () const
 
POPS_HD Real r_cell (int i) const
 Radius at the CENTER of radial cell i (i = 0 -> r_min + dr/2).
 
POPS_HD Real r_face (int i) const
 Radius at radial FACE i (face between cells i-1 and i; i = 0 -> r_min, i = nr -> r_max).
 
POPS_HD Real theta_cell (int j) const
 Angle at the CENTER of azimuthal cell j (j = 0 -> dtheta/2).
 
POPS_HD Real theta_face (int j) const
 Angle at azimuthal FACE j (face between cells j-1 and j).
 
PolarGeometry refine (int r) const
 

Public Attributes

Box2D domain {}
 nx() = nr (radial cells), ny() = ntheta (azimuthal cells)
 
Real r_min = 0
 
Real r_max = 1
 physical radial bounds of the ring
 

Static Public Attributes

static constexpr Real kTwoPi = Real(2) * Real(3.14159265358979323846)
 

Member Function Documentation

◆ dr()

POPS_HD Real pops::PolarGeometry::dr ( ) const
inline
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dtheta()

POPS_HD Real pops::PolarGeometry::dtheta ( ) const
inline
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ r_cell()

POPS_HD Real pops::PolarGeometry::r_cell ( int  i) const
inline

Radius at the CENTER of radial cell i (i = 0 -> r_min + dr/2).

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ r_face()

POPS_HD Real pops::PolarGeometry::r_face ( int  i) const
inline

Radius at radial FACE i (face between cells i-1 and i; i = 0 -> r_min, i = nr -> r_max).

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ refine()

PolarGeometry pops::PolarGeometry::refine ( int  r) const
inline
+ Here is the call graph for this function:

◆ theta_cell()

POPS_HD Real pops::PolarGeometry::theta_cell ( int  j) const
inline

Angle at the CENTER of azimuthal cell j (j = 0 -> dtheta/2).

+ Here is the call graph for this function:

◆ theta_face()

POPS_HD Real pops::PolarGeometry::theta_face ( int  j) const
inline

Angle at azimuthal FACE j (face between cells j-1 and j).

+ Here is the call graph for this function:

Member Data Documentation

◆ domain

Box2D pops::PolarGeometry::domain {}

nx() = nr (radial cells), ny() = ntheta (azimuthal cells)

◆ kTwoPi

constexpr Real pops::PolarGeometry::kTwoPi = Real(2) * Real(3.14159265358979323846)
staticconstexpr

◆ r_max

Real pops::PolarGeometry::r_max = 1

physical radial bounds of the ring

◆ r_min

Real pops::PolarGeometry::r_min = 0

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