Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91333474
test_multiple_init.py
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
Sun, Nov 10, 02:23
Size
1 KB
Mime Type
text/x-python
Expires
Tue, Nov 12, 02:23 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22197962
Attached To
rAKA akantu
test_multiple_init.py
View Options
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
__author__
=
"Fabian Barras"
__copyright__
=
"Copyright (C) 2016-2018, EPFL (Ecole Polytechnique Fédérale"
\
" de Lausanne) Laboratory (LSMS - Laboratoire de Simulation"
\
" en Mécanique des Solides)"
__credits__
=
[
"Fabian Barras"
]
__license__
=
"L-GPLv3"
__maintainer__
=
"Fabian Barras"
__email__
=
"fabian.barras@epfl.ch"
# ------------------------------------------------------------------------------
import
sys
import
os
import
akantu
as
aka
aka
.
parseInput
(
'input_test.dat'
)
print
(
'First initialisation'
)
mesh
=
aka
.
Mesh
(
2
)
mesh
.
read
(
'mesh_dcb_2d.msh'
)
model
=
aka
.
SolidMechanicsModel
(
mesh
)
model
.
initFull
(
aka
.
SolidMechanicsModelOptions
(
aka
.
_static
))
del
model
del
mesh
print
(
'Second initialisation'
)
mesh
=
aka
.
Mesh
(
2
)
mesh
.
read
(
'mesh_dcb_2d.msh'
)
model
=
aka
.
SolidMechanicsModel
(
mesh
)
model
.
initFull
(
aka
.
SolidMechanicsModelOptions
(
aka
.
_static
))
del
model
del
mesh
print
(
'All right'
)
Event Timeline
Log In to Comment