Nektar++
Loading...
Searching...
No Matches
Functions
MeshGraphIO.cpp File Reference
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <SpatialDomains/Python/SpatialDomains.h>
#include <SpatialDomains/MeshGraphIO.h>

Go to the source code of this file.

Functions

MeshGraphSharedPtr MeshGraphIO_Read (const LibUtilities::SessionReaderSharedPtr &session)
 
MeshGraphIOSharedPtr MeshGraphIO_Create (std::string ioType)
 
void export_MeshGraphIO (py::module &m)
 

Function Documentation

◆ export_MeshGraphIO()

void export_MeshGraphIO ( py::module &  m)

Definition at line 58 of file Python/MeshGraphIO.cpp.

59{
60 py::class_<MeshGraphIO, std::shared_ptr<MeshGraphIO>>(m, "MeshGraphIO")
61
62 .def("Write", &MeshGraphIO::WriteGeometry, py::arg("outfile"),
63 py::arg("defaultExp") = false,
64 py::arg("metadata") = LibUtilities::NullFieldMetaDataMap)
65
66 .def("SetMeshGraph", &MeshGraphIO::SetMeshGraph)
67
68 .def_static("Read", MeshGraphIO_Read)
69 .def_static("Create", MeshGraphIO_Create);
70}
MeshGraphSharedPtr MeshGraphIO_Read(const LibUtilities::SessionReaderSharedPtr &session)
MeshGraphIOSharedPtr MeshGraphIO_Create(std::string ioType)
void WriteGeometry(const std::string &outfilename, bool defaultExp=false, const LibUtilities::FieldMetaDataMap &metadata=LibUtilities::NullFieldMetaDataMap)
Definition MeshGraphIO.h:64
void SetMeshGraph(MeshGraphSharedPtr &meshGraph)
Definition MeshGraphIO.h:59
static FieldMetaDataMap NullFieldMetaDataMap
Definition FieldIO.h:51

References MeshGraphIO_Create(), MeshGraphIO_Read(), Nektar::LibUtilities::NullFieldMetaDataMap, Nektar::SpatialDomains::MeshGraphIO::SetMeshGraph(), and Nektar::SpatialDomains::MeshGraphIO::WriteGeometry().

Referenced by PYBIND11_MODULE().

◆ MeshGraphIO_Create()

MeshGraphIOSharedPtr MeshGraphIO_Create ( std::string  ioType)

Definition at line 53 of file Python/MeshGraphIO.cpp.

54{
56}
tBaseSharedPtr CreateInstance(tKey idKey, tParam... args)
Create an instance of the class referred to by idKey.
MeshGraphIOFactory & GetMeshGraphIOFactory()

References Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), and Nektar::SpatialDomains::GetMeshGraphIOFactory().

Referenced by export_MeshGraphIO().

◆ MeshGraphIO_Read()

MeshGraphSharedPtr MeshGraphIO_Read ( const LibUtilities::SessionReaderSharedPtr session)

Definition at line 47 of file Python/MeshGraphIO.cpp.

49{
50 return MeshGraphIO::Read(session);
51}
static MeshGraphSharedPtr Read(const LibUtilities::SessionReaderSharedPtr pSession, LibUtilities::DomainRangeShPtr rng=LibUtilities::NullDomainRangeShPtr, bool fillGraph=true, SpatialDomains::MeshGraphSharedPtr partitionedGraph=nullptr)

References Nektar::SpatialDomains::MeshGraphIO::Read().

Referenced by export_MeshGraphIO().