Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_Geometry.H File Reference

Problem-domain geometry: maps between index space and physical space. More...

#include <AMReX_Config.H>
#include <AMReX_Array.H>
#include <AMReX_CoordSys.H>
#include <AMReX_ParallelDescriptor.H>
#include <AMReX_RealBox.H>
#include <AMReX_Periodicity.H>
#include <cmath>
#include <concepts>
#include <iosfwd>
#include <map>
#include <numbers>

Go to the source code of this file.

Classes

struct  amrex::GeometryData
 GPU-safe snapshot of Geometry data suitable for capture in GPU kernels. More...
class  amrex::Geometry
 Rectangular problem domain geometry. More...

Namespaces

namespace  amrex

Functions

std::ostream & amrex::operator<< (std::ostream &, const Geometry &)
 Write a Geometry to an output stream in ASCII format.
std::istream & amrex::operator>> (std::istream &is, Geometry &g)
 Read a Geometry from an input stream in ASCII format.
Geometry amrex::coarsen (Geometry const &fine, IntVect const &rr)
 Return a Geometry coarsened by rr.
Geometry amrex::coarsen (Geometry const &fine, int rr)
 Return a Geometry coarsened by rr.
Geometry amrex::refine (Geometry const &crse, IntVect const &rr)
 Return a Geometry refined by rr.
Geometry amrex::refine (Geometry const &crse, int rr)
 Return a Geometry refined by rr.
template<std::floating_point T>
__host__ __device__ T amrex::node_coord (T problo, int i, T dx) noexcept
 Coordinate of node i: problo + i*dx.
const Geometry & amrex::DefaultGeometry ()
 Return the default Geometry held by the top-level AMReX instance.

Detailed Description

Problem-domain geometry: maps between index space and physical space.