Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90455384
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
Fri, Nov 1, 20:44
Size
1 KB
Mime Type
text/x-c
Expires
Sun, Nov 3, 20:44 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
22042837
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
>
(),
"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
>
(),
"QuadraturePlanar"
,
py
::
arg
(
"x"
),
py
::
arg
(
"xi"
),
py
::
arg
(
"w"
),
py
::
arg
(
"thick"
)
=
1.0
);
register_Element_QuadratureBase
<
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
>
(
cls
);
register_Element_QuadratureBaseCartesian
<
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
>
(
cls
);
cls
.
def
(
"GradN"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
GradN
,
"Shape function gradients"
);
cls
.
def
(
"__repr__"
,
[](
const
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
&
)
{
return
"<GooseFEM.Element.Quad4.QuadraturePlanar>"
;
});
}
#endif
Event Timeline
Log In to Comment