|
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 | |
| Octree (std::array< long, 3 > root, unsigned lmax, std::array< double, 3 > origin, std::array< double, 3 > spacing) | |
| void | release () noexcept override |
| Index | num_leaves () const |
| unsigned | lmax () const |
| std::array< double, 3 > | origin () const |
| std::array< long, 3 > | cells () const |
| The FINEST-level cell counts the block resolves: root cells * 2**lmax per axis. | |
| std::array< double, 3 > | extent () const |
| The block's physical side lengths, cells * spacing. | |
| std::array< double, 3 > | spacing () const |
| bool | is_balanced () 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 | find (std::array< double, 3 > x) 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 | refine_to_sdf_graded (std::function< double(double, double, double)> sdf, std::function< unsigned(double, double, double)> target_level, double band, bool balance) |
| Index | refine_to_gap_floor (std::function< double(double, double, double)> sdf, std::function< double(double, double, double)> gap, unsigned coarsest_level, double n, double band, bool balance) |
| bool | refine_leaf (Index i) |
| Index | balance () |
| const BO & | octreeRef () const |
| const amr::AmrGeometry< 3 > & | geoRef () const |
| 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) |
Definition at line 247 of file amr_bindings.cpp.
|
inline |
Definition at line 249 of file amr_bindings.cpp.
|
inlineoverridenoexcept |
Definition at line 255 of file amr_bindings.cpp.
|
inline |
Definition at line 258 of file amr_bindings.cpp.
|
inline |
Definition at line 259 of file amr_bindings.cpp.
Referenced by Octree().
|
inline |
Definition at line 260 of file amr_bindings.cpp.
Referenced by Octree().
|
inline |
The FINEST-level cell counts the block resolves: root cells * 2**lmax per axis.
Definition at line 262 of file amr_bindings.cpp.
Referenced by extent().
|
inline |
The block's physical side lengths, cells * spacing.
Definition at line 268 of file amr_bindings.cpp.
References cells().
|
inline |
Definition at line 272 of file amr_bindings.cpp.
Referenced by Octree().
|
inline |
Definition at line 273 of file amr_bindings.cpp.
Referenced by NB_MODULE().
|
inline |
Definition at line 275 of file amr_bindings.cpp.
References peclet::amr::pybind::leafCenters().
|
inline |
Definition at line 276 of file amr_bindings.cpp.
References peclet::amr::pybind::leafSizes().
|
inline |
Definition at line 277 of file amr_bindings.cpp.
References peclet::amr::pybind::leafLevels().
|
inline |
Definition at line 278 of file amr_bindings.cpp.
References peclet::amr::pybind::leafCodes().
|
inline |
Definition at line 282 of file amr_bindings.cpp.
|
inline |
Definition at line 295 of file amr_bindings.cpp.
References balance(), and peclet::amr::refineToSdf().
|
inline |
Definition at line 305 of file amr_bindings.cpp.
References balance(), and peclet::amr::refineToSdf().
|
inline |
Definition at line 314 of file amr_bindings.cpp.
References balance(), and peclet::amr::refineToSdfGraded().
|
inline |
Definition at line 324 of file amr_bindings.cpp.
References balance(), peclet::amr::gapFloorTarget(), and peclet::amr::refineToSdfGraded().
Referenced by NB_MODULE().
|
inline |
Definition at line 335 of file amr_bindings.cpp.
|
inline |
Definition at line 338 of file amr_bindings.cpp.
Referenced by refine_to_gap_floor(), refine_to_sdf(), refine_to_sdf_graded(), and refine_to_sphere().
|
inline |
Definition at line 341 of file amr_bindings.cpp.
Referenced by peclet::amr::pybind::Flow::Flow(), and peclet::amr::pybind::Poisson::Poisson().
|
inline |
Definition at line 342 of file amr_bindings.cpp.
Referenced by peclet::amr::pybind::Flow::Flow(), and peclet::amr::pybind::Poisson::Poisson().
|
inline |
Definition at line 347 of file amr_bindings.cpp.
References peclet::amr::pybind::asField(), peclet::amr::lohnerIndicator(), and peclet::amr::pybind::vecToArray().
|
inline |
Definition at line 356 of file amr_bindings.cpp.
References peclet::amr::adapt(), peclet::amr::pybind::asField(), and peclet::amr::pybind::vecToArray().
|
inline |
Definition at line 367 of file amr_bindings.cpp.
References peclet::amr::pybind::asField(), and peclet::amr::writeVtu().