Namespaces | |
detail | |
internal | |
Classes | |
struct | BlockDataNotConvertible |
class | BlockDataToObjectTester |
class | DictWrapper |
class | Dispatcher |
class | Manager |
struct | NonCopyableWrap |
struct | NoSuchBlockData |
class | PythonCallback |
Run a Python function from C++ code. More... | |
Functions | |
void | runPythonObject (py::object obj) |
template<> | |
bool | DictWrapper::has< std::function< void()> > (const char *name) |
void | exportBasicWalberlaDatastructures (py::module_ &m) |
void | exportMPI (py::module_ &m) |
BlockDataID | blockDataIDFromString (BlockStorage &bs, const std::string &stringID) |
BlockDataID | blockDataIDFromString (IBlock &block, const std::string &stringID) |
BlockDataID | blockDataIDFromString (StructuredBlockStorage &bs, const std::string &stringID) |
template<typename UID , typename StringContainer > | |
Set< UID > | uidSetFromStringContainer (const StringContainer &) |
template<typename FField > | |
FField::value_type | maskFromFlagList (const shared_ptr< StructuredBlockStorage > &, ConstBlockDataID, const std::vector< std::string > &) |
void | initWalberlaForPythonModule () |
template<typename F > | |
void | for_each_noncopyable_type (const F &) |
template<typename Type , typename... Types, typename F > | |
void | for_each_noncopyable_type (const F &f) |
template<py::return_value_policy Policy = py::return_value_policy::reference_internal, typename T > | |
py::iterator | make_owning_iterator (T obj) |
template<typename T > | |
static bool | isCppEqualToPythonType (std::string n) |
template<> | |
bool | isCppEqualToPythonType< float > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< double > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< uint8_t > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< uint16_t > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< uint32_t > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< uint64_t > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< int8_t > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< int16_t > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< int32_t > (std::string n) |
template<> | |
bool | isCppEqualToPythonType< int64_t > (std::string n) |
template<typename T > | |
std::vector< T > | pythonIterableToStdVector (const py::object &iterable) |
CellInterval | globalPythonSliceToCellInterval (const shared_ptr< StructuredBlockStorage > &blocks, py::tuple indexTuple) |
Creates a CellInterval as subset from the complete domain-cell-bounding-box based on a Python slice. More... | |
template<typename... Types> | |
py::object | testBlockData (IBlock &block, BlockDataID blockDataID) |
void | importModuleOrFile (const std::string &, const std::vector< std::string > &) |
BlockDataID walberla::python_coupling::blockDataIDFromString | ( | BlockStorage & | bs, |
const std::string & | stringID | ||
) |
BlockDataID walberla::python_coupling::blockDataIDFromString | ( | IBlock & | block, |
const std::string & | stringID | ||
) |
BlockDataID walberla::python_coupling::blockDataIDFromString | ( | StructuredBlockStorage & | bs, |
const std::string & | stringID | ||
) |
config::Iterator walberla::python_coupling::configBegin | ( | int | argc, |
char ** | argv | ||
) |
|
inline |
shared_ptr< Config > walberla::python_coupling::createConfig | ( | int | argc, |
char ** | argv | ||
) |
shared_ptr< Config > walberla::python_coupling::createConfigFromPythonScript | ( | const std::string & | , |
const std::string & | , | ||
const std::vector< std::string > & | |||
) |
config::Iterator walberla::python_coupling::createConfigIteratorFromPythonScript | ( | const std::string & | , |
const std::string & | , | ||
const std::vector< std::string > & | |||
) |
|
inline |
void walberla::python_coupling::exportBasicWalberlaDatastructures | ( | py::module_ & | m | ) |
void walberla::python_coupling::exportMPI | ( | py::module_ & | m | ) |
void walberla::python_coupling::for_each_noncopyable_type | ( | const F & | ) |
void walberla::python_coupling::for_each_noncopyable_type | ( | const F & | f | ) |
|
inline |
Creates a CellInterval as subset from the complete domain-cell-bounding-box based on a Python slice.
Example: Python Slice: [ :, 3, -1 ] and a domain size of ( 3,4,5 )
Python slices are tuples with slice classes as entry. Each slice has start, stop and step. Steps are not supported since they can not be encoded in a CellInterval
void walberla::python_coupling::importModuleOrFile | ( | const std::string & | , |
const std::vector< std::string > & | |||
) |
void walberla::python_coupling::initWalberlaForPythonModule | ( | ) |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
py::iterator walberla::python_coupling::make_owning_iterator | ( | T | obj | ) |
FField::value_type walberla::python_coupling::maskFromFlagList | ( | const shared_ptr< StructuredBlockStorage > & | , |
ConstBlockDataID | , | ||
const std::vector< std::string > & | |||
) |
|
inline |
|
inline |
py::object walberla::python_coupling::testBlockData | ( | IBlock & | block, |
BlockDataID | blockDataID | ||
) |