Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85657613
ElementHex8.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
Mon, Sep 30, 20:21
Size
1 KB
Mime Type
text/x-c
Expires
Wed, Oct 2, 20:21 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21230409
Attached To
rGOOSEFEM GooseFEM
ElementHex8.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_ELEMENTHEX8_H
#define PYGOOSEFEM_ELEMENTHEX8_H
#include <GooseFEM/ElementHex8.h>
#include <pybind11/pybind11.h>
#include <xtensor-python/pytensor.hpp>
#include "Element.hpp"
namespace
py
=
pybind11
;
void
init_ElementHex8
(
py
::
module
&
m
)
{
py
::
class_
<
GooseFEM
::
Element
::
Hex8
::
Quadrature
>
cls
(
m
,
"Quadrature"
);
cls
.
def
(
py
::
init
<
const
xt
::
pytensor
<
double
,
3
>&>
(),
"Quadrature"
,
py
::
arg
(
"x"
));
cls
.
def
(
py
::
init
<
const
xt
::
pytensor
<
double
,
3
>&
,
const
xt
::
pytensor
<
double
,
2
>&
,
const
xt
::
pytensor
<
double
,
1
>&>
(),
"Quadrature"
,
py
::
arg
(
"x"
),
py
::
arg
(
"xi"
),
py
::
arg
(
"w"
));
register_Element_QuadratureBase
<
GooseFEM
::
Element
::
Hex8
::
Quadrature
>
(
cls
);
register_Element_QuadratureBaseCartesian
<
GooseFEM
::
Element
::
Hex8
::
Quadrature
>
(
cls
);
cls
.
def
(
"GradN"
,
&
GooseFEM
::
Element
::
Hex8
::
Quadrature
::
GradN
,
"Shape function gradients"
);
cls
.
def
(
"__repr__"
,
[](
const
GooseFEM
::
Element
::
Hex8
::
Quadrature
&
)
{
return
"<GooseFEM.Element.Hex8.Quadrature>"
;
});
}
void
init_ElementHex8Gauss
(
py
::
module
&
m
)
{
m
.
def
(
"nip"
,
&
GooseFEM
::
Element
::
Hex8
::
Gauss
::
nip
,
"Return number of integration point"
);
m
.
def
(
"xi"
,
&
GooseFEM
::
Element
::
Hex8
::
Gauss
::
xi
,
"Return integration point coordinates"
);
m
.
def
(
"w"
,
&
GooseFEM
::
Element
::
Hex8
::
Gauss
::
w
,
"Return integration point weights"
);
}
void
init_ElementHex8Nodal
(
py
::
module
&
m
)
{
m
.
def
(
"nip"
,
&
GooseFEM
::
Element
::
Hex8
::
Nodal
::
nip
,
"Return number of integration point"
);
m
.
def
(
"xi"
,
&
GooseFEM
::
Element
::
Hex8
::
Nodal
::
xi
,
"Return integration point coordinates"
);
m
.
def
(
"w"
,
&
GooseFEM
::
Element
::
Hex8
::
Nodal
::
w
,
"Return integration point weights"
);
}
#endif
Event Timeline
Log In to Comment