|
peclet-amr 0.2.0
Block-local-Morton AMR octree + collocated cut-cell Navier–Stokes solver (header-only C++20, Kokkos + MPI)
|
Public Member Functions | |
| DistributedOctree (std::array< long, 3 > global_root, unsigned lmax, std::array< double, 3 > origin, std::array< double, 3 > spacing, std::array< bool, 3 > periodic) | |
| void | release () noexcept override |
| int | rank () const |
| int | size () const |
| Index | num_leaves () const |
| unsigned | lmax () const |
| std::array< double, 3 > | spacing () const |
| std::array< long, 3 > | cells () const |
| The GLOBAL finest grid: global root cells * 2**lmax per axis (what the constructor took). | |
| std::array< double, 3 > | extent () const |
| The global box side lengths, cells * spacing. | |
| std::array< double, 3 > | origin () const |
| The global lower corner. | |
| std::array< long, 3 > | block_origin_root () const |
| std::array< long, 3 > | block_brick () const |
| std::array< long, 3 > | global_root_size () const |
| nb::ndarray< nb::numpy, double > | centers () const |
| nb::ndarray< nb::numpy, double > | sizes (int axis) const |
| nb::ndarray< nb::numpy, std::int32_t > | levels () const |
| nb::ndarray< nb::numpy, std::uint64_t > | codes () const |
| Index | refine_to_sphere (std::array< double, 3 > center, double radius, unsigned target_level, double band, bool balance) |
| Index | refine_to_sdf (std::function< double(double, double, double)> sdf, unsigned target_level, double band, bool balance) |
| Index | balance () |
| nb::ndarray< nb::numpy, double > | rebalance (DArray fields) |
| nb::ndarray< nb::numpy, double > | face_neighbor_gather (DArray field, double sentinel) |
| nb::ndarray< nb::numpy, double > | lohner_indicator (DArray field, double eps) |
| nb::ndarray< nb::numpy, double > | adapt (DArray field, double refine_thresh, double coarsen_thresh, unsigned finest_level, double eps, bool linear) |
| void | write_vtu (const std::string &path, const std::string &name, DArray field) |
| DO & | ref () |
| The wrapped core octree (the distributed Flow constructor hooks into it). | |
Definition at line 637 of file amr_bindings.cpp.
|
inline |
Definition at line 639 of file amr_bindings.cpp.
References peclet::amr::AmrGeometry< Dim >::h0, lmax(), peclet::amr::AmrGeometry< Dim >::origin, origin(), and spacing().
|
inlineoverridenoexcept |
Definition at line 647 of file amr_bindings.cpp.
|
inline |
Definition at line 650 of file amr_bindings.cpp.
Referenced by NB_MODULE().
|
inline |
Definition at line 651 of file amr_bindings.cpp.
Referenced by NB_MODULE().
|
inline |
Definition at line 652 of file amr_bindings.cpp.
|
inline |
Definition at line 653 of file amr_bindings.cpp.
Referenced by DistributedOctree().
|
inline |
Definition at line 654 of file amr_bindings.cpp.
Referenced by DistributedOctree().
|
inline |
The GLOBAL finest grid: global root cells * 2**lmax per axis (what the constructor took).
Definition at line 659 of file amr_bindings.cpp.
Referenced by extent().
|
inline |
The global box side lengths, cells * spacing.
Definition at line 664 of file amr_bindings.cpp.
References cells().
|
inline |
The global lower corner.
Definition at line 670 of file amr_bindings.cpp.
Referenced by DistributedOctree().
|
inline |
Definition at line 674 of file amr_bindings.cpp.
Referenced by NB_MODULE().
|
inline |
Definition at line 678 of file amr_bindings.cpp.
Referenced by NB_MODULE().
|
inline |
Definition at line 682 of file amr_bindings.cpp.
Referenced by NB_MODULE().
|
inline |
Definition at line 688 of file amr_bindings.cpp.
References peclet::amr::pybind::leafCenters().
|
inline |
Definition at line 691 of file amr_bindings.cpp.
References peclet::amr::pybind::leafSizes().
|
inline |
Definition at line 694 of file amr_bindings.cpp.
References peclet::amr::pybind::leafLevels().
|
inline |
Definition at line 695 of file amr_bindings.cpp.
References peclet::amr::pybind::leafCodes().
|
inline |
Definition at line 700 of file amr_bindings.cpp.
References balance(), and peclet::amr::refineToSdf().
|
inline |
Definition at line 717 of file amr_bindings.cpp.
References balance(), and peclet::amr::refineToSdf().
|
inline |
Definition at line 729 of file amr_bindings.cpp.
Referenced by refine_to_sdf(), and refine_to_sphere().
|
inline |
Definition at line 736 of file amr_bindings.cpp.
References peclet::amr::pybind::vec2().
|
inline |
Definition at line 762 of file amr_bindings.cpp.
References peclet::amr::pybind::asField(), and peclet::amr::pybind::vec2().
Referenced by NB_MODULE().
|
inline |
Definition at line 772 of file amr_bindings.cpp.
References peclet::amr::pybind::asField(), peclet::amr::lohnerIndicatorDistributed(), and peclet::amr::pybind::vecToArray().
|
inline |
Definition at line 781 of file amr_bindings.cpp.
References peclet::amr::pybind::asField(), peclet::amr::distributedAdapt(), and peclet::amr::pybind::vecToArray().
|
inline |
Definition at line 791 of file amr_bindings.cpp.
References peclet::amr::pybind::asField(), and peclet::amr::writeVtu().
|
inline |
The wrapped core octree (the distributed Flow constructor hooks into it).
Definition at line 797 of file amr_bindings.cpp.
Referenced by peclet::amr::pybind::Flow::Flow().