Page MenuHomec4science

ElementQuad4Axisymmetric.hpp
No OneTemporary

File Metadata

Created
Fri, Nov 1, 20:51

ElementQuad4Axisymmetric.hpp

/**
\file
\copyright Copyright 2017. Tom de Geus. All rights reserved.
\license This project is released under the GNU Public License (GPLv3).
*/
#ifndef PYGOOSEFEM_ELEMENTQUAD4AXISYMMETRIC_H
#define PYGOOSEFEM_ELEMENTQUAD4AXISYMMETRIC_H
#include <GooseFEM/ElementQuad4Axisymmetric.h>
#include <pybind11/pybind11.h>
#include <xtensor-python/pytensor.hpp>
#include "Element.hpp"
namespace py = pybind11;
void init_ElementQuad4Axisymmetric(py::module& m)
{
py::class_<GooseFEM::Element::Quad4::QuadratureAxisymmetric> cls(m, "QuadratureAxisymmetric");
cls.def(py::init<const xt::pytensor<double, 3>&>(), "QuadratureAxisymmetric", py::arg("x"));
cls.def(py::init<const xt::pytensor<double, 3>&,
const xt::pytensor<double, 2>&,
const xt::pytensor<double, 1>&>(),
"QuadratureAxisymmetric",
py::arg("x"),
py::arg("xi"),
py::arg("w"));
register_Element_QuadratureBase<GooseFEM::Element::Quad4::QuadratureAxisymmetric>(cls);
register_Element_QuadratureBaseCartesian<GooseFEM::Element::Quad4::QuadratureAxisymmetric>(cls);
cls.def("B", &GooseFEM::Element::Quad4::QuadratureAxisymmetric::B, "B-matrix");
cls.def("__repr__", [](const GooseFEM::Element::Quad4::QuadratureAxisymmetric&) {
return "<GooseFEM.Element.Quad4.QuadratureAxisymmetric>";
});
}
#endif

Event Timeline