Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85633891
MeshHex8.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, 13:01
Size
1 KB
Mime Type
text/x-c
Expires
Wed, Oct 2, 13:01 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21225092
Attached To
rGOOSEFEM GooseFEM
MeshHex8.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_MESHHEX8_H
#define PYGOOSEFEM_MESHHEX8_H
#include <GooseFEM/MeshHex8.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <xtensor-python/pyarray.hpp>
#include <xtensor-python/pytensor.hpp>
#include "Mesh.hpp"
namespace
py
=
pybind11
;
void
init_MeshHex8
(
py
::
module
&
mod
)
{
{
py
::
class_
<
GooseFEM
::
Mesh
::
Hex8
::
Regular
>
cls
(
mod
,
"Regular"
);
cls
.
def
(
py
::
init
<
size_t
,
size_t
,
size_t
,
double
>
(),
"Mesh with nx*ny*nz 'pixels' and edge size h"
,
py
::
arg
(
"nx"
),
py
::
arg
(
"ny"
),
py
::
arg
(
"nz"
),
py
::
arg
(
"h"
)
=
1.
);
register_Element_RegularBase
<
GooseFEM
::
Mesh
::
Hex8
::
Regular
>
(
cls
);
register_Element_RegularBase3d
<
GooseFEM
::
Mesh
::
Hex8
::
Regular
>
(
cls
);
cls
.
def
(
"__repr__"
,
[](
const
GooseFEM
::
Mesh
::
Hex8
::
Regular
&
)
{
return
"<GooseFEM.Mesh.Hex8.Regular>"
;
});
}
{
py
::
class_
<
GooseFEM
::
Mesh
::
Hex8
::
FineLayer
>
cls
(
mod
,
"FineLayer"
);
cls
.
def
(
py
::
init
<
size_t
,
size_t
,
size_t
,
double
,
size_t
>
(),
"Mesh with nx*ny*nz 'pixels' and edge size h"
,
py
::
arg
(
"nx"
),
py
::
arg
(
"ny"
),
py
::
arg
(
"nz"
),
py
::
arg
(
"h"
)
=
1.0
,
py
::
arg
(
"nfine"
)
=
1
);
cls
.
def
(
"elementsMiddleLayer"
,
&
GooseFEM
::
Mesh
::
Hex8
::
FineLayer
::
elementsMiddleLayer
);
cls
.
def
(
"__repr__"
,
[](
const
GooseFEM
::
Mesh
::
Hex8
::
FineLayer
&
)
{
return
"<GooseFEM.Mesh.Hex8.FineLayer>"
;
});
}
}
#endif
Event Timeline
Log In to Comment