Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91770232
ElementQuad4Axisymmetric.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, Nov 14, 07:21
Size
5 KB
Mime Type
text/x-c
Expires
Sat, Nov 16, 07:21 (2 d)
Engine
blob
Format
Raw Data
Handle
22320669
Attached To
rGOOSEFEM GooseFEM
ElementQuad4Axisymmetric.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_ElementQuad4Axisymmetric
(
py
::
module
&
m
)
{
py
::
class_
<
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
>
(
m
,
"QuadratureAxisymmetric"
)
.
def
(
py
::
init
<
const
xt
::
xtensor
<
double
,
3
>&>
(),
"QuadratureAxisymmetric"
,
py
::
arg
(
"x"
))
.
def
(
py
::
init
<
const
xt
::
xtensor
<
double
,
3
>&
,
const
xt
::
xtensor
<
double
,
2
>&
,
const
xt
::
xtensor
<
double
,
1
>&>
(),
"QuadratureAxisymmetric"
,
py
::
arg
(
"x"
),
py
::
arg
(
"xi"
),
py
::
arg
(
"w"
))
.
def
(
"update_x"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
update_x
,
"Update the nodal positions"
)
.
def
(
"dV"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
dV
,
"Integration point volume (qscalar)"
)
.
def
(
"GradN_vector"
,
py
::
overload_cast
<
const
xt
::
xtensor
<
double
,
3
>&>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
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
::
QuadratureAxisymmetric
::
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
::
QuadratureAxisymmetric
::
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
::
QuadratureAxisymmetric
::
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
::
QuadratureAxisymmetric
::
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
::
QuadratureAxisymmetric
::
Int_gradN_dot_tensor4_dot_gradNT_dV
,
py
::
const_
),
"Integration, returns 'elemvec'"
,
py
::
arg
(
"qtensor"
))
// Derived from QuadratureBase
.
def
(
"nelem"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
nelem
,
"Number of elements"
)
.
def
(
"nne"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
nne
,
"Number of nodes per element"
)
.
def
(
"ndim"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
ndim
,
"Number of dimensions"
)
.
def
(
"nip"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
nip
,
"Number of integration points"
)
.
def
(
"AsTensor"
,
(
xt
::
xarray
<
double
>
(
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::*
)(
size_t
,
const
xt
::
xtensor
<
double
,
2
>&
)
const
)
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
AsTensor
<
double
>
,
"Convert 'qscalar' to 'qtensor' of certain rank"
)
.
def
(
"shape_elemvec"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
shape_elemvec
,
"Shape of 'elemvec'"
)
.
def
(
"shape_elemmat"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
shape_elemmat
,
"Shape of 'elemmat'"
)
.
def
(
"shape_qtensor"
,
(
std
::
vector
<
size_t
>
(
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::*
)(
size_t
)
const
)
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
shape_qtensor
,
"Shape of 'qtensor'"
,
py
::
arg
(
"rank"
))
.
def
(
"shape_qscalar"
,
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
shape_qscalar
,
"Shape of 'qscalar'"
)
// Deprecated
.
def
(
"AllocateQtensor"
,
(
xt
::
xarray
<
double
>
(
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::*
)(
size_t
)
const
)
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
allocate_qtensor
<
double
>
,
"Allocate 'qtensor'"
,
py
::
arg
(
"rank"
))
.
def
(
"AllocateQtensor"
,
(
xt
::
xarray
<
double
>
(
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::*
)(
size_t
,
double
)
const
)
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
allocate_qtensor
<
double
>
,
"Allocate 'qtensor'"
,
py
::
arg
(
"rank"
),
py
::
arg
(
"val"
))
.
def
(
"AllocateQscalar"
,
py
::
overload_cast
<>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
allocate_qscalar
<
double
>
,
py
::
const_
),
"Allocate 'qscalar'"
)
.
def
(
"AllocateQscalar"
,
py
::
overload_cast
<
double
>
(
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
allocate_qscalar
<
double
>
,
py
::
const_
),
"Allocate 'qscalar'"
,
py
::
arg
(
"val"
))
.
def
(
"__repr__"
,
[](
const
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
&
)
{
return
"<GooseFEM.Element.Quad4.QuadratureAxisymmetric>"
;
});
}
Event Timeline
Log In to Comment