FieldExport.impl.h File Reference
#include "python_coupling/PythonWrapper.h"
#include "core/logging/Logging.h"
#include "core/VectorTrait.h"
#include "field/Field.h"
#include "field/GhostLayerField.h"
#include "field/FlagField.h"
#include "field/communication/PackInfo.h"
#include "field/communication/UniformMPIDatatypeInfo.h"
#include "field/AddToStorage.h"
#include "field/python/GatherExport.h"
#include "field/vtk/VTKWriter.h"
#include "field/vtk/FlagFieldMapping.h"
#include "python_coupling/helper/MplHelpers.h"
#include "python_coupling/helper/BoostPythonHelpers.h"
#include <boost/mpl/vector.hpp>
#include <iostream>
#include <type_traits>

Classes

struct  walberla::field::internal::PythonFormatString< T >
 
struct  walberla::field::internal::PythonFormatString< double >
 
struct  walberla::field::internal::PythonFormatString< float >
 
struct  walberla::field::internal::PythonFormatString< unsigned short >
 
struct  walberla::field::internal::PythonFormatString< int >
 
struct  walberla::field::internal::PythonFormatString< unsigned int >
 
struct  walberla::field::internal::PythonFormatString< long >
 
struct  walberla::field::internal::PythonFormatString< unsigned long >
 
struct  walberla::field::internal::PythonFormatString< long long >
 
struct  walberla::field::internal::PythonFormatString< unsigned long long >
 
struct  walberla::field::internal::FieldBufferPyObject
 
struct  walberla::field::internal::FieldBufferGetDispatch< T, fs >
 
struct  walberla::field::internal::FieldBufferGetDispatch< VectorType, 1 >
 
struct  walberla::field::internal::FieldBufferType< T, fs >
 
struct  walberla::field::internal::FieldBufferTypeGl< T, fs >
 
class  walberla::field::internal::GhostLayerFieldDataHandling< GhostLayerField_T >
 
struct  walberla::field::internal::FieldExporter
 
struct  walberla::field::internal::GhostLayerFieldAdaptorExporter
 
class  walberla::field::internal::CreateFieldExporter
 
class  walberla::field::internal::AddToStorageExporter
 
class  walberla::field::internal::CreateVTKWriterExporter
 
class  walberla::field::internal::CreateFlagFieldVTKWriterExporter
 
class  walberla::field::internal::CreateBinarizationVTKWriterExporter
 

Namespaces

 walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
 
 walberla::field
 
 walberla::field::internal
 

Functions

template<typename T , uint_t fs>
int walberla::field::internal::fieldbuffer_get_withGl (FieldBufferPyObject *exporter, Py_buffer *view, int flags)
 
template<typename T , uint_t fs>
int walberla::field::internal::fieldbuffer_get (FieldBufferPyObject *exporter, Py_buffer *view, int flags)
 
template<typename T , uint_t fs>
int walberla::field::internal::fieldbuffer_release (PyObject *, Py_buffer *view)
 
template<typename T , uint_t fs>
static void walberla::field::internal::fieldbuffer_dealloc (FieldBufferPyObject *exporter)
 
template<typename T , uint_t fs>
Py_ssize_t walberla::field::internal::fieldbuffer_getbuffer (FieldBufferPyObject *, Py_ssize_t, const void **)
 
template<typename T , uint_t fs>
Py_ssize_t walberla::field::internal::fieldbuffer_getsegcount (FieldBufferPyObject *, Py_ssize_t *)
 
template<typename T , uint_t fs>
Py_ssize_t walberla::field::internal::fieldbuffer_getbuffer_withGl (FieldBufferPyObject *, Py_ssize_t, const void **)
 
template<typename T , uint_t fs>
Py_ssize_t walberla::field::internal::fieldbuffer_getsegcount_withGl (FieldBufferPyObject *, Py_ssize_t *)
 
template<typename T , uint_t fs>
boost::python::object walberla::field::internal::field_getBufferInterface (boost::python::object field, bool withGhostLayers)
 
template<typename T >
shared_ptr< field::FieldAllocator< T > > walberla::field::internal::getAllocator (uint_t alignment)
 
static Cell walberla::field::internal::tupleToCell (boost::python::tuple &tuple)
 
template<typename Field_T >
void walberla::field::internal::field_setCellXYZ (Field_T &field, boost::python::tuple args, const typename Field_T::value_type &value)
 
template<typename Field_T >
Field_T::value_type walberla::field::internal::field_getCellXYZ (Field_T &field, boost::python::tuple args)
 
template<typename Field_T >
boost::python::object walberla::field::internal::field_size (const Field_T &field)
 
template<typename GlField_T >
boost::python::object walberla::field::internal::field_sizeWithGhostLayer (const GlField_T &field)
 
template<typename Field_T >
boost::python::object walberla::field::internal::field_allocSize (const Field_T &field)
 
template<typename Field_T >
boost::python::object walberla::field::internal::field_strides (const Field_T &field)
 
template<typename Field_T >
boost::python::object walberla::field::internal::field_offsets (const Field_T &field)
 
template<typename Field_T >
boost::python::object walberla::field::internal::field_layout (const Field_T &f)
 
template<typename Field_T >
void walberla::field::internal::field_swapDataPointers (Field_T &f1, Field_T &f2)
 
template<typename T >
walberla::field::internal::FF_getFlag (const FlagField< T > &ff, const std::string &flag)
 
template<typename T >
boost::python::object walberla::field::internal::FF_registeredFlags (const FlagField< T > &ff)
 
template<typename T >
boost::python::object walberla::field::internal::FF_flagMap (const FlagField< T > &ff)
 
template<typename T >
boost::python::object walberla::field::internal::FF_registerFlag (FlagField< T > &ff, const std::string &flag, boost::python::object bitNr)
 
template<typename T >
std::string walberla::field::internal::FF_getFlagName (const FlagField< T > &ff, T flag)
 
template<typename Field_T >
boost::python::object walberla::field::internal::copyAdaptorToField (const Field_T &f)
 
template<typename T >
void walberla::field::internal::exportFlagFieldIfUnsigned (typename std::enable_if< std::is_unsigned< T >::value >::type *=0)
 
template<typename T >
void walberla::field::internal::exportFlagFieldIfUnsigned (typename std::enable_if< ! std::is_unsigned< T >::value >::type *=0)
 
template<typename FieldTypes >
boost::python::object walberla::field::internal::createPythonField (boost::python::list size, boost::python::object type, uint_t ghostLayers, Layout layout, uint_t alignment)
 
boost::python::object walberla::field::internal::createPythonFlagField (boost::python::list size, uint_t nrOfBits, uint_t ghostLayers)
 
template<typename FieldTypes >
void walberla::field::internal::addToStorage (const shared_ptr< StructuredBlockStorage > &blocks, const std::string &name, boost::python::object type, uint_t fs, uint_t gl, Layout layout, boost::python::object initValue, uint_t alignment)
 
void walberla::field::internal::addFlagFieldToStorage (const shared_ptr< StructuredBlockStorage > &blocks, const std::string &name, uint_t nrOfBits, uint_t gl)
 
template<typename FieldTypes >
shared_ptr< vtk::BlockCellDataWriterInterface > walberla::field::internal::createVTKWriter (const shared_ptr< StructuredBlockStorage > &blocks, const std::string &name, const std::string &nameInVtkOutput="")
 
template<typename FieldTypes >
shared_ptr< vtk::BlockCellDataWriterInterface > walberla::field::internal::createFlagFieldVTKWriter (const shared_ptr< StructuredBlockStorage > &blocks, const std::string &name, boost::python::dict flagMapping, const std::string &nameInVtkOutput="")
 
template<typename FieldTypes >
shared_ptr< vtk::BlockCellDataWriterInterface > walberla::field::internal::createBinarizationVTKWriter (const shared_ptr< StructuredBlockStorage > &blocks, const std::string &name, uint_t mask, const std::string &nameInVtkOutput="")
 
template<typename FieldTypes >
void walberla::field::exportFields ()
 
template<typename AdaptorTypes >
void walberla::field::exportGhostLayerFieldAdaptors ()
 
template<typename AdaptorType >
void walberla::field::exportGhostLayerFieldAdaptor ()