peclet-amr 0.2.0
Block-local-Morton AMR octree + collocated cut-cell Navier–Stokes solver (header-only C++20, Kokkos + MPI)
Loading...
Searching...
No Matches
amr_bindings.cpp File Reference
#include <mpi.h>
#include <nanobind/nanobind.h>
#include <nanobind/ndarray.h>
#include <nanobind/stl/array.h>
#include <nanobind/stl/function.h>
#include <nanobind/stl/optional.h>
#include <nanobind/stl/string.h>
#include <nanobind/stl/tuple.h>
#include <nanobind/stl/variant.h>
#include <nanobind/stl/vector.h>
#include <array>
#include <cstdint>
#include <functional>
#include <Kokkos_Core.hpp>
#include <optional>
#include <set>
#include <string>
#include <vector>
#include "peclet/amr/adapt.hpp"
#include "peclet/amr/block_octree.hpp"
#include "peclet/amr/distributed_adapt.hpp"
#include "peclet/amr/distributed_octree.hpp"
#include "peclet/amr/flow.hpp"
#include "peclet/amr/flow_oracle.hpp"
#include "peclet/amr/indicators.hpp"
#include "peclet/amr/leaf_field.hpp"
#include "peclet/amr/mg_predict.hpp"
#include "peclet/amr/poisson.hpp"
#include "peclet/amr/refine.hpp"
#include "peclet/amr/vtu_io.hpp"
#include "peclet/core/common/types.hpp"
#include "peclet/core/geom/scene_query.hpp"
#include "peclet/core/geom/sdf.hpp"
#include "peclet/core/python/kokkos_teardown.hpp"
#include "peclet/core/python/ndarray_interop.hpp"

Go to the source code of this file.

Classes

class  peclet::amr::pybind::Octree
 
class  peclet::amr::pybind::Poisson
 
class  peclet::amr::pybind::Flow
 
class  peclet::amr::pybind::DistributedOctree
 
class  peclet::amr::pybind::FlowDiagnostics
 

Namespaces

namespace  peclet
 
namespace  peclet::amr
 
namespace  peclet::amr::pybind
 

Typedefs

using peclet::amr::pybind::BO = amr::BlockOctree< 3 >
 
using peclet::amr::pybind::DO = amr::DistributedOctree< 3 >
 
using peclet::amr::pybind::Code = BO::Code
 
using peclet::amr::pybind::Coord = BO::Coord
 
using peclet::amr::pybind::DArray = nb::ndarray< double, nb::c_contig >
 
using peclet::amr::pybind::SpacingArg = std::variant< double, std::array< double, 3 > >
 

Functions

template<class T >
nb::ndarray< nb::numpy, T > peclet::amr::pybind::vec1 (std::vector< T > v)
 
template<class T >
nb::ndarray< nb::numpy, T > peclet::amr::pybind::vec2 (std::vector< T > v, std::size_t cols)
 
nb::ndarray< nb::numpy, double > peclet::amr::pybind::leafCenters (const BO &t, const amr::AmrGeometry< 3 > &geo)
 
nb::ndarray< nb::numpy, double > peclet::amr::pybind::leafSizes (const BO &t, const amr::AmrGeometry< 3 > &geo, int axis)
 
nb::ndarray< nb::numpy, std::int32_t > peclet::amr::pybind::leafLevels (const BO &t)
 
nb::ndarray< nb::numpy, std::uint64_t > peclet::amr::pybind::leafCodes (const BO &t)
 
nb::ndarray< nb::numpy, double > peclet::amr::pybind::vecToArray (std::vector< double > v)
 
std::vector< double > peclet::amr::pybind::asField (const BO &t, const DArray &field, const char *who)
 
std::array< double, 3 > peclet::amr::pybind::spacingsFromExtent (const std::array< double, 3 > &extent, const std::array< long, 3 > &cells)
 
double peclet::amr::pybind::spacingFromExtent (const std::array< double, 3 > &extent, const std::array< long, 3 > &cells)
 
std::array< double, 3 > peclet::amr::pybind::spacingOf (const SpacingArg &sp)
 
std::array< long, 3 > peclet::amr::pybind::rootCellsOf (const std::array< long, 3 > &cells, unsigned lmax, const char *who)
 
std::array< double, 3 > peclet::amr::pybind::resolveSpacing (const std::optional< SpacingArg > &spacing, const std::optional< std::array< double, 3 > > &extent, const std::array< long, 3 > &cells, const char *who)
 
template<class T >
void peclet::amr::pybind::bindOctreeCommon (nb::class_< T > &c)
 
 NB_MODULE (_amr, m)
 

Function Documentation

◆ NB_MODULE()