version 0.3.7
python/finiteelements/linearelastic.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2021-2024 The Ikarus Developers mueller@ibb.uni-stuttgart.de
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
9#pragma once
10
11#include "registerelement.hh"
12
13#include <dune/fufem/boundarypatch.hh>
14#include <dune/functions/functionspacebases/lagrangebasis.hh>
15#include <dune/functions/functionspacebases/powerbasis.hh>
16#include <dune/grid/yaspgrid.hh>
17#include <dune/python/common/typeregistry.hh>
18#include <dune/python/functions/globalbasis.hh>
19#include <dune/python/pybind11/eigen.h>
20#include <dune/python/pybind11/functional.h>
21#include <dune/python/pybind11/pybind11.h>
22#include <dune/python/pybind11/stl.h>
23
26#include <ikarus/utils/basis.hh>
27
28namespace Ikarus::Python {
29
44 template <class LinearElastic, class... options>
45 void registerLinearElastic(pybind11::handle scope, pybind11::class_<LinearElastic, options...> cls) {
46 registerElement(scope, cls);
47 }
48
49} // namespace Ikarus::Python
Definition of the LinearElastic class for finite element mechanics computations.
Python bindings for a generic finite element.
void registerLinearElastic(pybind11::handle scope, pybind11::class_< LinearElastic, options... > cls)
Register Python bindings for a Linear Elastic class.
Definition: python/finiteelements/linearelastic.hh:45
void registerElement(pybind11::handle scope, pybind11::class_< FE, options... > cls)
Register Python bindings for a generic finite element class.
Definition: registerelement.hh:45
Definition: flatassembler.hh:20
def LinearElastic(basis, element, youngsMod, nu, volumeLoad=None, bp=None, neumannBoundaryLoad=None)
Definition: finite_elements/__init__.py:87
Definition of the LinearElastic class for finite element mechanics computations.
Wrapper around Dune-functions global basis.