Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85609884
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
Mon, Sep 30, 07:27
Size
4 KB
Mime Type
text/x-c
Expires
Wed, Oct 2, 07:27 (2 d)
Engine
blob
Format
Raw Data
Handle
21218082
Attached To
rGOOSEFEM GooseFEM
ElementQuad4Planar.hpp
View Options
/* =================================================================================================
(c - GPLv3) T.W.J. de Geus (Tom) | tom@geus.me | www.geus.me | github.com/tdegeus/GooseFEM
================================================================================================= */
#include <GooseFEM/GooseFEM.h>
#include <pybind11/pybind11.h>
#include <pyxtensor/pyxtensor.hpp>
namespace
py
=
pybind11
;
void
init_ElementQuad4Planar
(
py
::
module
&
m
)
{
py
::
class_
<
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
>
(
m
,
"QuadraturePlanar"
)
.
def
(
py
::
init
<
const
xt
::
xtensor
<
double
,
3
>&>
(),
"QuadraturePlanar"
,
py
::
arg
(
"x"
))
.
def
(
py
::
init
<
const
xt
::
xtensor
<
double
,
3
>&
,
const
xt
::
xtensor
<
double
,
2
>&
,
const
xt
::
xtensor
<
double
,
1
>&>
(),
"QuadraturePlanar"
,
py
::
arg
(
"x"
),
py
::
arg
(
"xi"
),
py
::
arg
(
"w"
))
.
def
(
"update_x"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
update_x
,
"Update the nodal positions"
)
.
def
(
"nelem"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
nelem
,
"Number of elements"
)
.
def
(
"nne"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
nne
,
"Number of nodes per element"
)
.
def
(
"ndim"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
ndim
,
"Number of dimensions"
)
.
def
(
"nip"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
nip
,
"Number of integration points"
)
.
def
(
"dV"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
dV
,
"Integration point volume (qscalar)"
)
.
def
(
"GradN_vector"
,
py
::
overload_cast
<
const
xt
::
xtensor
<
double
,
3
>&>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
GradN_vector
,
py
::
const_
),
"Dyadic product, returns 'qtensor'"
,
py
::
arg
(
"elemvec"
))
.
def
(
"GradN_vector_T"
,
py
::
overload_cast
<
const
xt
::
xtensor
<
double
,
3
>&>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
GradN_vector_T
,
py
::
const_
),
"Dyadic product, returns 'qtensor'"
,
py
::
arg
(
"elemvec"
))
.
def
(
"SymGradN_vector"
,
py
::
overload_cast
<
const
xt
::
xtensor
<
double
,
3
>&>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
SymGradN_vector
,
py
::
const_
),
"Dyadic product, returns 'qtensor'"
,
py
::
arg
(
"elemvec"
))
.
def
(
"Int_N_scalar_NT_dV"
,
py
::
overload_cast
<
const
xt
::
xtensor
<
double
,
2
>&>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
Int_N_scalar_NT_dV
,
py
::
const_
),
"Integration, returns 'elemmat'"
,
py
::
arg
(
"qscalar"
))
.
def
(
"Int_gradN_dot_tensor2_dV"
,
py
::
overload_cast
<
const
xt
::
xtensor
<
double
,
4
>&>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
Int_gradN_dot_tensor2_dV
,
py
::
const_
),
"Integration, returns 'elemvec'"
,
py
::
arg
(
"qtensor"
))
.
def
(
"Int_gradN_dot_tensor4_dot_gradNT_dV"
,
py
::
overload_cast
<
const
xt
::
xtensor
<
double
,
6
>&>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
Int_gradN_dot_tensor4_dot_gradNT_dV
,
py
::
const_
),
"Integration, returns 'elemvec'"
,
py
::
arg
(
"qtensor"
))
.
def
(
"AsTensor"
,
(
xt
::
xarray
<
double
>
(
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::*
)(
size_t
,
const
xt
::
xtensor
<
double
,
2
>&
)
const
)
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
AsTensor
<
double
>
,
"Convert 'qscalar' to 'qtensor' of certain rank"
)
.
def
(
"AllocateQtensor"
,
(
xt
::
xarray
<
double
>
(
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::*
)(
size_t
)
const
)
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
AllocateQtensor
<
double
>
,
"Allocate 'qtensor'"
,
py
::
arg
(
"rank"
))
.
def
(
"AllocateQtensor"
,
(
xt
::
xarray
<
double
>
(
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::*
)(
size_t
,
double
)
const
)
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
AllocateQtensor
<
double
>
,
"Allocate 'qtensor'"
,
py
::
arg
(
"rank"
),
py
::
arg
(
"val"
))
.
def
(
"AllocateQscalar"
,
py
::
overload_cast
<>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
AllocateQscalar
<
double
>
,
py
::
const_
),
"Allocate 'qscalar'"
)
.
def
(
"AllocateQscalar"
,
py
::
overload_cast
<
double
>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
::
AllocateQscalar
<
double
>
,
py
::
const_
),
"Allocate 'qscalar'"
,
py
::
arg
(
"val"
))
.
def
(
"__repr__"
,
[](
const
GooseFEM
::
Element
::
Quad4
::
QuadraturePlanar
&
)
{
return
"<GooseFEM.Element.Quad4.QuadraturePlanar>"
;
});
}
Event Timeline
Log In to Comment