|
peclet-amr 0.2.0
Block-local-Morton AMR octree + collocated cut-cell Navier–Stokes solver (header-only C++20, Kokkos + MPI)
|
Classes | |
| class | Octree |
| class | Poisson |
| class | Flow |
| class | DistributedOctree |
| class | FlowDiagnostics |
Typedefs | |
| using | BO = amr::BlockOctree<3> |
| using | DO = amr::DistributedOctree<3> |
| using | Code = BO::Code |
| using | Coord = BO::Coord |
| using | DArray = nb::ndarray<double, nb::c_contig> |
| using | SpacingArg = std::variant<double, std::array<double, 3>> |
Functions | |
| template<class T> | |
| nb::ndarray< nb::numpy, T > | vec1 (std::vector< T > v) |
| template<class T> | |
| nb::ndarray< nb::numpy, T > | vec2 (std::vector< T > v, std::size_t cols) |
| nb::ndarray< nb::numpy, double > | leafCenters (const BO &t, const amr::AmrGeometry< 3 > &geo) |
| nb::ndarray< nb::numpy, double > | leafSizes (const BO &t, const amr::AmrGeometry< 3 > &geo, int axis) |
| nb::ndarray< nb::numpy, std::int32_t > | leafLevels (const BO &t) |
| nb::ndarray< nb::numpy, std::uint64_t > | leafCodes (const BO &t) |
| nb::ndarray< nb::numpy, double > | vecToArray (std::vector< double > v) |
| std::vector< double > | asField (const BO &t, const DArray &field, const char *who) |
| std::array< double, 3 > | spacingsFromExtent (const std::array< double, 3 > &extent, const std::array< long, 3 > &cells) |
| double | spacingFromExtent (const std::array< double, 3 > &extent, const std::array< long, 3 > &cells) |
| std::array< double, 3 > | spacingOf (const SpacingArg &sp) |
| std::array< long, 3 > | rootCellsOf (const std::array< long, 3 > &cells, unsigned lmax, const char *who) |
| std::array< double, 3 > | 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 | bindOctreeCommon (nb::class_< T > &c) |
| using peclet::amr::pybind::BO = amr::BlockOctree<3> |
Definition at line 73 of file amr_bindings.cpp.
| using peclet::amr::pybind::DO = amr::DistributedOctree<3> |
Definition at line 74 of file amr_bindings.cpp.
| using peclet::amr::pybind::Code = BO::Code |
Definition at line 75 of file amr_bindings.cpp.
| using peclet::amr::pybind::Coord = BO::Coord |
Definition at line 76 of file amr_bindings.cpp.
| using peclet::amr::pybind::DArray = nb::ndarray<double, nb::c_contig> |
Definition at line 77 of file amr_bindings.cpp.
| using peclet::amr::pybind::SpacingArg = std::variant<double, std::array<double, 3>> |
Definition at line 201 of file amr_bindings.cpp.
| nb::ndarray< nb::numpy, T > peclet::amr::pybind::vec1 | ( | std::vector< T > | v | ) |
Definition at line 82 of file amr_bindings.cpp.
Referenced by peclet::amr::pybind::Poisson::apply(), peclet::amr::pybind::Flow::face_field(), peclet::amr::pybind::FlowDiagnostics::face_topology(), leafCodes(), leafLevels(), leafSizes(), peclet::amr::pybind::Flow::pressure(), peclet::amr::pybind::Poisson::solve(), vecToArray(), and peclet::amr::pybind::Flow::velocity().
| 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 ) |
Definition at line 94 of file amr_bindings.cpp.
References peclet::amr::BlockOctree< Dim, Bits >::bounds(), peclet::amr::AmrGeometry< Dim >::center(), peclet::amr::BlockOctree< Dim, Bits >::numLeaves(), and vec2().
Referenced by peclet::amr::pybind::DistributedOctree::centers(), and peclet::amr::pybind::Octree::centers().
| nb::ndarray< nb::numpy, double > peclet::amr::pybind::leafSizes | ( | const BO & | t, |
| const amr::AmrGeometry< 3 > & | geo, | ||
| int | axis ) |
Definition at line 108 of file amr_bindings.cpp.
References peclet::amr::AmrGeometry< Dim >::leafSize(), peclet::amr::BlockOctree< Dim, Bits >::level(), peclet::amr::BlockOctree< Dim, Bits >::numLeaves(), and vec1().
Referenced by peclet::amr::pybind::DistributedOctree::sizes(), and peclet::amr::pybind::Octree::sizes().
| nb::ndarray< nb::numpy, std::int32_t > peclet::amr::pybind::leafLevels | ( | const BO & | t | ) |
Definition at line 119 of file amr_bindings.cpp.
References peclet::amr::BlockOctree< Dim, Bits >::level(), peclet::amr::BlockOctree< Dim, Bits >::numLeaves(), and vec1().
Referenced by peclet::amr::pybind::DistributedOctree::levels(), and peclet::amr::pybind::Octree::levels().
| nb::ndarray< nb::numpy, std::uint64_t > peclet::amr::pybind::leafCodes | ( | const BO & | t | ) |
Definition at line 128 of file amr_bindings.cpp.
References peclet::amr::BlockOctree< Dim, Bits >::code(), peclet::amr::BlockOctree< Dim, Bits >::numLeaves(), and vec1().
Referenced by peclet::amr::pybind::DistributedOctree::codes(), and peclet::amr::pybind::Octree::codes().
| nb::ndarray< nb::numpy, double > peclet::amr::pybind::vecToArray | ( | std::vector< double > | v | ) |
Definition at line 137 of file amr_bindings.cpp.
References vec1().
Referenced by peclet::amr::pybind::DistributedOctree::adapt(), peclet::amr::pybind::Octree::adapt(), peclet::amr::pybind::DistributedOctree::lohner_indicator(), and peclet::amr::pybind::Octree::lohner_indicator().
| std::vector< double > peclet::amr::pybind::asField | ( | const BO & | t, |
| const DArray & | field, | ||
| const char * | who ) |
Definition at line 142 of file amr_bindings.cpp.
References peclet::amr::BlockOctree< Dim, Bits >::numLeaves().
Referenced by peclet::amr::pybind::DistributedOctree::adapt(), peclet::amr::pybind::Octree::adapt(), peclet::amr::pybind::DistributedOctree::face_neighbor_gather(), peclet::amr::pybind::DistributedOctree::lohner_indicator(), peclet::amr::pybind::Octree::lohner_indicator(), peclet::amr::pybind::DistributedOctree::write_vtu(), and peclet::amr::pybind::Octree::write_vtu().
|
inline |
Definition at line 168 of file amr_bindings.cpp.
Referenced by NB_MODULE(), resolveSpacing(), and spacingFromExtent().
|
inline |
Definition at line 184 of file amr_bindings.cpp.
References spacingsFromExtent().
Referenced by NB_MODULE().
|
inline |
Definition at line 202 of file amr_bindings.cpp.
Referenced by resolveSpacing().
|
inline |
Definition at line 210 of file amr_bindings.cpp.
Referenced by NB_MODULE().
|
inline |
Definition at line 229 of file amr_bindings.cpp.
References spacingOf(), and spacingsFromExtent().
Referenced by NB_MODULE().
| void peclet::amr::pybind::bindOctreeCommon | ( | nb::class_< T > & | c | ) |
Definition at line 896 of file amr_bindings.cpp.
Referenced by NB_MODULE().