Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F60590034
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
Wed, May 1, 07:46
Size
4 KB
Mime Type
text/x-c
Expires
Fri, May 3, 07:46 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
17380037
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
(
"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
(
"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"
))
.
def
(
"AsTensor"
,
(
xt
::
xarray
<
double
>
(
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::*
)(
size_t
,
const
xt
::
xtensor
<
double
,
2
>&
)
const
)
&
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
::
AsTensor
,
"Convert 'qscalar' to 'qtensor' of certain rank"
)
.
def
(
"__repr__"
,
[](
const
GooseFEM
::
Element
::
Quad4
::
QuadratureAxisymmetric
&
)
{
return
"<GooseFEM.Element.Quad4.QuadratureAxisymmetric>"
;
});
}
Event Timeline
Log In to Comment