Page MenuHomec4science

ElementQuad4Planar.hpp
No OneTemporary

File Metadata

Created
Thu, May 30, 13:45

ElementQuad4Planar.hpp

/**
* @file
* @copyright Copyright 2017. Tom de Geus. All rights reserved.
* @license This project is released under the GNU Public License (GPLv3).
*/
#ifndef PYGOOSEFEM_ELEMENTQUAD4PLANAR_H
#define PYGOOSEFEM_ELEMENTQUAD4PLANAR_H
#include <GooseFEM/ElementQuad4Planar.h>
#include <pybind11/pybind11.h>
#include <xtensor-python/pytensor.hpp>
#include "Element.hpp"
namespace py = pybind11;
void init_ElementQuad4Planar(py::module& m)
{
py::class_<GooseFEM::Element::Quad4::QuadraturePlanar> cls(m, "QuadraturePlanar");
cls.def(
py::init<const xt::pytensor<double, 3>&, double>(),
"See :cpp:class:`GooseFEM::Element::Quad4::QuadraturePlanar`.",
py::arg("x"),
py::arg("thick") = 1.0);
cls.def(
py::init<
const xt::pytensor<double, 3>&,
const xt::pytensor<double, 2>&,
const xt::pytensor<double, 1>&,
double>(),
"See :cpp:class:`GooseFEM::Element::Quad4::QuadraturePlanar`.",
py::arg("x"),
py::arg("xi"),
py::arg("w"),
py::arg("thick") = 1.0);
register_Mesh_QuadratureBase<GooseFEM::Element::Quad4::QuadraturePlanar>(cls);
register_Mesh_QuadratureBaseCartesian<GooseFEM::Element::Quad4::QuadraturePlanar>(cls);
cls.def_property_readonly(
"GradN",
&GooseFEM::Element::Quad4::QuadraturePlanar::GradN,
"Shape function gradients [nelem, nip, nne, ndim]");
cls.def("__repr__", [](const GooseFEM::Element::Quad4::QuadraturePlanar&) {
return "<GooseFEM.Element.Quad4.QuadraturePlanar>";
});
}
#endif

Event Timeline