DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
FiniteVolume_bind.cpp File Reference
#include "FiniteVolume_bind.hpp"
#include <pybind11/stl.h>
#include <pybind11/eigen.h>
#include <pybind11_json/pybind11_json.hpp>
Include dependency graph for FiniteVolume_bind.cpp:

Go to the source code of this file.

Namespaces

namespace  DNDS
 the host side operators are provided as implemented
 
namespace  DNDS::CFV
 

Macros

#define DNDS_PY_DEF_SIMP_FUNC(foo)    def(#foo, &T::foo)
 
#define DNDS_CFV_FV_PYBIND11_DEFINE_BuildUDof(nVarsFixed)
 
#define DNDS_CFV_FV_PYBIND11_DEFINE_BuildUGrad(nVarsFixed)
 
#define DNDS_CFV_FV_PYBIND11_DEFINE_BuildCalls(nVarsFixed)
 

Functions

void DNDS::CFV::pybind11_FiniteVolume_define (py::module_ &m)
 

Macro Definition Documentation

◆ DNDS_CFV_FV_PYBIND11_DEFINE_BuildCalls

#define DNDS_CFV_FV_PYBIND11_DEFINE_BuildCalls (   nVarsFixed)
Value:
{ \
DNDS_CFV_FV_PYBIND11_DEFINE_BuildUDof(nVarsFixed); \
DNDS_CFV_FV_PYBIND11_DEFINE_BuildUGrad(nVarsFixed); \
}

◆ DNDS_CFV_FV_PYBIND11_DEFINE_BuildUDof

#define DNDS_CFV_FV_PYBIND11_DEFINE_BuildUDof (   nVarsFixed)
Value:
FiniteVolume_.def( \
("BuildUDof_" + RowSize_To_PySnippet(nVarsFixed)).c_str(), \
[](T &self, tUDof<nVarsFixed> &u, int nVars, bool buildSon, bool buildTrans, Geom::MeshLoc varloc) \
{ self.BuildUDof(u, nVars, buildSon, buildTrans, varloc); }, \
py::arg("u"), py::arg("nVars"), py::arg("buildSon") = true, \
py::arg("buildTrans") = true, py::arg("varloc") = Geom::MeshLoc::Cell, \
#define DNDS_PYBIND11_OSTREAM_GUARD

◆ DNDS_CFV_FV_PYBIND11_DEFINE_BuildUGrad

#define DNDS_CFV_FV_PYBIND11_DEFINE_BuildUGrad (   nVarsFixed)
Value:
FiniteVolume_ \
.def( \
("BuildUGrad_2x" + RowSize_To_PySnippet(nVarsFixed)).c_str(), \
[](T &self, tUGrad<nVarsFixed, 2> &u, int nVars, bool buildSon, bool buildTrans, Geom::MeshLoc varloc) \
{ self.BuildUGradD(u, nVars, buildSon, buildTrans, varloc); }, \
py::arg("u"), py::arg("nVars"), py::arg("buildSon") = true, \
py::arg("buildTrans") = true, py::arg("varloc") = Geom::MeshLoc::Cell, \
.def( \
("BuildUGrad_3x" + RowSize_To_PySnippet(nVarsFixed)).c_str(), \
[](T &self, tUGrad<nVarsFixed, 3> &u, int nVars, bool buildSon, bool buildTrans, Geom::MeshLoc varloc) \
{ self.BuildUGradD(u, nVars, buildSon, buildTrans, varloc); }, \
py::arg("u"), py::arg("nVars"), py::arg("buildSon") = true, \
py::arg("buildTrans") = true, py::arg("varloc") = Geom::MeshLoc::Cell, \

◆ DNDS_PY_DEF_SIMP_FUNC

#define DNDS_PY_DEF_SIMP_FUNC (   foo)     def(#foo, &T::foo)