|
flow
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
|
nanobind module flow — the Kokkos cut-cell IBM Navier-Stokes solver (peclet.flow.Solver).
More...
#include <nanobind/nanobind.h>#include <nanobind/ndarray.h>#include <nanobind/stl/pair.h>#include <nanobind/stl/string.h>#include <nanobind/stl/vector.h>#include <array>#include <cstdint>#include <Kokkos_Core.hpp>#include <string>#include <vector>#include "flow_ibm.hpp"#include "peclet/core/python/ndarray_interop.hpp"Go to the source code of this file.
Functions | |
| template<class S > | |
| static nb::ndarray< nb::numpy, double > | field_out (S &s, std::vector< double > &&v) |
| static std::vector< double > | grid_in (nb::ndarray< double, nb::f_contig > a) |
| template<class S > | |
| static auto | field3d_out (S &s, peclet::flow::CCField f) |
| template<class Grid > | |
| static void | bind_solver (nb::module_ &m, const char *name) |
| NB_MODULE (_flow, m) | |
nanobind module flow — the Kokkos cut-cell IBM Navier-Stokes solver (peclet.flow.Solver).
Exposes peclet::flow::IbmSolver to Python: set rho/mu/dt, a body force, an SDF solid (cut-cell IBM no-slip
Arrays cross the boundary through the shared zero-copy bridge (peclet::core::python, in core): fields come back as Fortran-order (nx,ny,nz) float64 NumPy arrays referencing the field buffer, and inputs are read as flat x-fastest buffers. See tpx/python/ndarray_interop.hpp.
Definition in file flow_bindings.cpp.
|
static |
Definition at line 58 of file flow_bindings.cpp.
Referenced by bind_solver().
|
static |
Definition at line 69 of file flow_bindings.cpp.
Referenced by bind_solver().
|
static |
Definition at line 80 of file flow_bindings.cpp.
Referenced by bind_solver().
|
static |
Definition at line 105 of file flow_bindings.cpp.
References peclet::flow::ArrheniusMu, peclet::flow::BoussinesqForce, field3d_out(), field_out(), grid_in(), and peclet::flow::LinearMix.
| NB_MODULE | ( | _flow | , |
| m | |||
| ) |
Definition at line 554 of file flow_bindings.cpp.