|
flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
Shared helpers of the peclet.flow Python binding: array conversion, the string-enum tables, the bound Solver / Anderson accelerator classes and the diagnostics view. More...
#include <nanobind/nanobind.h>#include <nanobind/ndarray.h>#include <nanobind/stl/array.h>#include <nanobind/stl/optional.h>#include <nanobind/stl/pair.h>#include <nanobind/stl/string.h>#include <nanobind/stl/tuple.h>#include <nanobind/stl/vector.h>#include <array>#include <cstdint>#include <Kokkos_Core.hpp>#include <limits>#include <string>#include <vector>#include "anderson_accelerator.hpp"#include "flow_bindings_checks.hpp"#include "flow_ibm.hpp"#include "peclet/core/python/kokkos_teardown.hpp"#include "peclet/core/python/ndarray_interop.hpp"Go to the source code of this file.
Classes | |
| struct | peclet::flow::bindings::BoundSolver< Grid > |
| struct | peclet::flow::bindings::BoundAccelerator< Grid > |
| struct | peclet::flow::bindings::Diagnostics< Grid > |
| The developer tier: a view onto one Solver<Grid> (no state of its own). More... | |
Namespaces | |
| namespace | peclet |
| namespace | peclet::flow |
| namespace | peclet::flow::bindings |
Functions | |
| template<class S> | |
| nb::ndarray< nb::numpy, double > | peclet::flow::bindings::field_out (S &s, std::vector< double > &&v) |
| std::vector< double > | peclet::flow::bindings::grid_in (nb::ndarray< double, nb::f_contig > a) |
| int | peclet::flow::bindings::enum_index (const std::string &v, const std::vector< std::string > &names, const char *who, const char *what) |
| int | peclet::flow::bindings::face_index (const std::string &f, const char *who) |
| template<class S> | |
| auto | peclet::flow::bindings::field3d_out (S &s, peclet::flow::CCField f) |
| template<class Grid> | |
| auto | peclet::flow::bindings::traction_force_torque_array (peclet::flow::Solver< Grid > &s) |
| The reconstructed-traction loads as the (4, n_instances, 3) array that both of its Python names return: diagnostics.hydro_force_torque_traction() (canonical) and the deprecated hydro_force_torque(). | |
Variables | |
| const std::vector< std::string > | peclet::flow::bindings::kFaces {"-x", "+x", "-y", "+y", "-z", "+z"} |
| const std::vector< std::string > | peclet::flow::bindings::kAxes {"x", "y", "z"} |
| const std::vector< std::string > | peclet::flow::bindings::kBcTypes {"periodic", "wall", "inflow", "outflow", "slip"} |
| const std::vector< std::string > | peclet::flow::bindings::kScalarBcTypes {"periodic", "neumann", "dirichlet"} |
| const std::vector< std::string > | peclet::flow::bindings::kAdvSchemes {"sou", "koren"} |
| const std::vector< std::string > | peclet::flow::bindings::kScalarSchemes {"fou", "koren", "sou"} |
| const std::vector< std::string > | peclet::flow::bindings::kScalarWallTypes {"neumann", "dirichlet", "robin"} |
| const std::vector< std::string > | peclet::flow::bindings::kFluidOnly {"off", "filter", "star"} |
| const std::vector< std::string > | peclet::flow::bindings::kCsfModes {"face", "cell"} |
| const std::vector< std::string > | peclet::flow::bindings::kPivots |
| const std::vector< std::string > | peclet::flow::bindings::kAreaModes |
| const std::vector< std::string > | peclet::flow::bindings::kBlockAssign {"round-robin", "lpt", "orb"} |
Shared helpers of the peclet.flow Python binding: array conversion, the string-enum tables, the bound Solver / Anderson accelerator classes and the diagnostics view.
Binding-only: included by src/flow_bindings.cpp and its topic headers (flow_bindings_<topic>.hpp) alone; moved out of flow_bindings.cpp verbatim.
Definition in file flow_bindings_common.hpp.