1 /*! 2 * \file PipeMesh.cxx 3 * \brief 4 * \author Thomas Helfer 5 * \date 12 mai 2016 6 * \copyright Copyright (C) 2006-2018 CEA/DEN, EDF R&D. All rights 7 * reserved. 8 * This project is publicly released under either the GNU GPL Licence 9 * or the CECILL-A licence. A copy of thoses licences are delivered 10 * with the sources of TFEL. CEA or EDF may also distribute this 11 * project under specific licensing conditions. 12 */ 13 14 #include<boost/python.hpp> 15 #include"MTest/PipeMesh.hxx" 16 17 18 void declarePipeMesh(); 19 declarePipeMesh()20void declarePipeMesh() 21 { 22 23 boost::python::enum_<mtest::PipeMesh::ElementType>("PipeMeshElementType") 24 .value("DEFAULT",mtest::PipeMesh::DEFAULT) 25 .value("LINEAR",mtest::PipeMesh::QUADRATIC) 26 .value("CUBIC",mtest::PipeMesh::CUBIC) 27 ; 28 29 boost::python::class_<mtest::PipeMesh,boost::noncopyable>("PipeMesh") 30 .def_readonly("inner_radius",&mtest::PipeMesh::inner_radius) 31 .def_readonly("outer_radius",&mtest::PipeMesh::outer_radius) 32 .def_readonly("number_of_elements",&mtest::PipeMesh::number_of_elements) 33 .def_readonly("etype",&mtest::PipeMesh::etype) 34 ; 35 36 } 37 38