Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65273278
test_cohesive.cc
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, Jun 2, 11:30
Size
2 KB
Mime Type
text/x-c
Expires
Tue, Jun 4, 11:30 (2 d)
Engine
blob
Format
Raw Data
Handle
18040779
Attached To
rAKA akantu
test_cohesive.cc
View Options
/**
* @file test_cohesive.cc
*
* @author Nicolas Richart <nicolas.richart@epfl.ch>
*
* @date creation: Tue May 08 2012
* @date last modification: Mon Feb 19 2018
*
* @brief Generic test for cohesive elements
*
* @section LICENSE
*
* Copyright (©) 2010-2018 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* Akantu is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Akantu is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Akantu. If not, see <http://www.gnu.org/licenses/>.
*
*/
/* -------------------------------------------------------------------------- */
#include "aka_iterators.hh"
#include "test_cohesive_fixture.hh"
/* -------------------------------------------------------------------------- */
TYPED_TEST
(
TestSMMCFixture
,
ExtrinsicModeI
)
{
getStaticParser
().
parse
(
"material_0.dat"
);
this
->
is_extrinsic
=
true
;
this
->
analysis_method
=
_explicit_lumped_mass
;
this
->
testModeI
();
this
->
checkInsertion
();
auto
&
mat_co
=
this
->
model
->
getMaterial
(
"insertion"
);
Real
G_c
=
mat_co
.
get
(
"G_c"
);
if
(
this
->
dim
!=
3
)
this
->
checkDissipated
(
G_c
);
}
TYPED_TEST
(
TestSMMCFixture
,
ExtrinsicModeII
)
{
getStaticParser
().
parse
(
"material_0.dat"
);
this
->
is_extrinsic
=
true
;
this
->
analysis_method
=
_explicit_lumped_mass
;
this
->
testModeII
();
this
->
checkInsertion
();
auto
&
mat_co
=
this
->
model
->
getMaterial
(
"insertion"
);
Real
G_c
=
mat_co
.
get
(
"G_c"
);
if
(
this
->
dim
!=
3
)
this
->
checkDissipated
(
G_c
);
}
TYPED_TEST
(
TestSMMCFixture
,
IntrinsicModeI
)
{
getStaticParser
().
parse
(
"material_1.dat"
);
this
->
is_extrinsic
=
false
;
this
->
analysis_method
=
_explicit_lumped_mass
;
this
->
testModeI
();
this
->
checkInsertion
();
auto
&
mat_co
=
this
->
model
->
getMaterial
(
"insertion"
);
Real
G_c
=
mat_co
.
get
(
"G_c"
);
if
(
this
->
dim
!=
3
)
this
->
checkDissipated
(
G_c
);
}
TYPED_TEST
(
TestSMMCFixture
,
IntrinsicModeII
)
{
getStaticParser
().
parse
(
"material_1.dat"
);
this
->
is_extrinsic
=
false
;
this
->
analysis_method
=
_explicit_lumped_mass
;
this
->
testModeII
();
this
->
checkInsertion
();
auto
&
mat_co
=
this
->
model
->
getMaterial
(
"insertion"
);
Real
G_c
=
mat_co
.
get
(
"G_c"
);
if
(
this
->
dim
!=
3
)
this
->
checkDissipated
(
G_c
);
}
Event Timeline
Log In to Comment