core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
peclet::core::amr::AmrGeometry< Dim > Struct Template Reference

World-space placement of a block-local octree: fine coordinate (0,..,0) sits at origin, and one level-0 fine cell is h0 wide in every axis. More...

#include <leaf_field.hpp>

Public Member Functions

Real leafSize (unsigned level) const
 World width of a leaf at level (covers 2^level fine cells).
 
template<class Coord >
Vec< Dim > lowerCorner (const std::array< Coord, Dim > &lo) const
 World coordinate of a leaf's lower corner, given its integer lower bound (fine units).
 
template<class Coord >
Vec< Dim > center (const std::array< std::array< Coord, Dim >, 2 > &b) const
 World coordinate of a leaf centre, from its integer bounds [lo,hi] (inclusive, fine units).
 

Public Attributes

Vec< Dim > origin {}
 
Real h0 = 1.0
 

Detailed Description

template<int Dim>
struct peclet::core::amr::AmrGeometry< Dim >

World-space placement of a block-local octree: fine coordinate (0,..,0) sits at origin, and one level-0 fine cell is h0 wide in every axis.

Definition at line 28 of file leaf_field.hpp.

Member Function Documentation

◆ leafSize()

template<int Dim>
Real peclet::core::amr::AmrGeometry< Dim >::leafSize ( unsigned  level) const
inline

World width of a leaf at level (covers 2^level fine cells).

Definition at line 33 of file leaf_field.hpp.

References peclet::core::amr::AmrGeometry< Dim >::h0.

◆ lowerCorner()

template<int Dim>
template<class Coord >
Vec< Dim > peclet::core::amr::AmrGeometry< Dim >::lowerCorner ( const std::array< Coord, Dim > &  lo) const
inline

World coordinate of a leaf's lower corner, given its integer lower bound (fine units).

Definition at line 37 of file leaf_field.hpp.

References peclet::core::amr::AmrGeometry< Dim >::h0, and peclet::core::amr::AmrGeometry< Dim >::origin.

◆ center()

template<int Dim>
template<class Coord >
Vec< Dim > peclet::core::amr::AmrGeometry< Dim >::center ( const std::array< std::array< Coord, Dim >, 2 > &  b) const
inline

World coordinate of a leaf centre, from its integer bounds [lo,hi] (inclusive, fine units).

Definition at line 46 of file leaf_field.hpp.

References peclet::core::amr::AmrGeometry< Dim >::h0, and peclet::core::amr::AmrGeometry< Dim >::origin.

Member Data Documentation

◆ origin

◆ h0


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