SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
bindings.cpp File Reference
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
#include <pybind11/operators.h>
#include <memory>
#include <sstream>
#include "bindings.h"
#include "Trampoline/PyMFEMTrampolines/Operator/PyOperator.h"
#include "Trampoline/PyMFEMTrampolines/Operator/Matrix/PyMatrix.h"
#include "Trampoline/PyMFEMTrampolines/Coefficient/PyCoefficient.h"
#include "mfem.hpp"

Go to the source code of this file.

Functions

void register_mfem_bindings (py::module &mfem_submodule)
 
void register_operator_bindings (py::module &mfem_submodule)
 
void register_matrix_bindings (py::module &mfem_submodule)
 
void register_vector_bindings (py::module &mfem_submodule)
 
void register_array_bindings (py::module &mfem_submodule)
 
void register_bilinear_form_bindings (py::module &mfem_submodule)
 
void bind_assembly_level_enum (py::module &m)
 
void register_mixed_bilinear_form_bindings (py::module &mfem_submodule)
 
void register_mesh_bindings (py::module &mfem_submodule)
 
void register_table_bindings (pybind11::module &mfem_submodule)
 Registers mfem::Table.
 
void register_finite_element_collection_bindings (pybind11::module &mfem_submodule)
 Registers mfem::FiniteElementCollection base class.
 
void register_basis_type_bindings (py::module &m)
 
void register_H1_FECollection_bindings (py::module &m)
 
void register_RT_FECollection_bindings (py::module &m)
 
void register_ND_FECollection_bindings (py::module &m)
 
void register_finite_element_space_bindings (py::module &mfem_submodule)
 
void bind_ordering_enum (py::module &mfem_submodule)
 
void register_grid_function_bindings (py::module &m)
 Binds mfem::GridFunction.
 
void register_coefficient_bindings (py::module &m)
 
void register_intrule_bindings (py::module &m)
 Binds mfem::IntegrationPoint and mfem::IntegrationRule.
 
void register_eltrans_bindings (py::module &m)
 Binds mfem::ElementTransformation and related classes.
 

Function Documentation

◆ bind_assembly_level_enum()

void bind_assembly_level_enum ( py::module & m)

Definition at line 319 of file bindings.cpp.

◆ bind_ordering_enum()

void bind_ordering_enum ( py::module & mfem_submodule)

Definition at line 656 of file bindings.cpp.

◆ register_array_bindings()

void register_array_bindings ( py::module & mfem_submodule)

Definition at line 176 of file bindings.cpp.

◆ register_basis_type_bindings()

void register_basis_type_bindings ( py::module & m)

Definition at line 528 of file bindings.cpp.

◆ register_bilinear_form_bindings()

void register_bilinear_form_bindings ( py::module & mfem_submodule)

Definition at line 234 of file bindings.cpp.

◆ register_coefficient_bindings()

void register_coefficient_bindings ( py::module & m)

Definition at line 756 of file bindings.cpp.

◆ register_eltrans_bindings()

void register_eltrans_bindings ( py::module & m)

Binds mfem::ElementTransformation and related classes.

Definition at line 843 of file bindings.cpp.

◆ register_finite_element_collection_bindings()

void register_finite_element_collection_bindings ( pybind11::module & mfem_submodule)

Registers mfem::FiniteElementCollection base class.

Parameters
mfem_submoduleThe serif.mfem Python submodule.
Python Usage Example:
import serif.mfem as mfem
# fec = mfem.FiniteElementCollection() # Typically use derived classes

Definition at line 517 of file bindings.cpp.

◆ register_finite_element_space_bindings()

void register_finite_element_space_bindings ( py::module & mfem_submodule)

Definition at line 582 of file bindings.cpp.

◆ register_grid_function_bindings()

void register_grid_function_bindings ( py::module & m)

Binds mfem::GridFunction.

Definition at line 665 of file bindings.cpp.

◆ register_H1_FECollection_bindings()

void register_H1_FECollection_bindings ( py::module & m)

Definition at line 546 of file bindings.cpp.

◆ register_intrule_bindings()

void register_intrule_bindings ( py::module & m)

Binds mfem::IntegrationPoint and mfem::IntegrationRule.

Definition at line 813 of file bindings.cpp.

◆ register_matrix_bindings()

void register_matrix_bindings ( py::module & mfem_submodule)

Definition at line 111 of file bindings.cpp.

◆ register_mesh_bindings()

void register_mesh_bindings ( py::module & mfem_submodule)

Definition at line 401 of file bindings.cpp.

◆ register_mfem_bindings()

void register_mfem_bindings ( py::module & mfem_submodule)

Definition at line 21 of file bindings.cpp.

◆ register_mixed_bilinear_form_bindings()

void register_mixed_bilinear_form_bindings ( py::module & mfem_submodule)

Definition at line 331 of file bindings.cpp.

◆ register_ND_FECollection_bindings()

void register_ND_FECollection_bindings ( py::module & m)

Definition at line 571 of file bindings.cpp.

◆ register_operator_bindings()

void register_operator_bindings ( py::module & mfem_submodule)

Definition at line 53 of file bindings.cpp.

◆ register_RT_FECollection_bindings()

void register_RT_FECollection_bindings ( py::module & m)

Definition at line 561 of file bindings.cpp.

◆ register_table_bindings()

void register_table_bindings ( pybind11::module & mfem_submodule)

Registers mfem::Table.

Parameters
mfem_submoduleThe serif.mfem Python submodule.
Python Usage Example:
import serif.mfem as mfem
table = mfem.Table()
# ... use table methods ...

Definition at line 489 of file bindings.cpp.

◆ register_vector_bindings()

void register_vector_bindings ( py::module & mfem_submodule)

Definition at line 148 of file bindings.cpp.