Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F64936668
ElementQuad4Planar.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, May 30, 13:45
Size
1 KB
Mime Type
text/x-c
Expires
Sat, Jun 1, 13:45 (2 d)
Engine
blob
Format
Raw Data
Handle
17980874
Attached To
rGOOSEFEM GooseFEM
ElementQuad4Planar.hpp
View Options
/**
* @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
Log In to Comment