Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88783427
coupler_solid_cohesive_contact.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, Oct 20, 16:11
Size
2 KB
Mime Type
text/x-c++
Expires
Tue, Oct 22, 16:11 (2 d)
Engine
blob
Format
Raw Data
Handle
21820024
Attached To
rAKA akantu
coupler_solid_cohesive_contact.cc
View Options
/**
* @file coupler_solid_cohesive_contact.cc
*
* @author Mohit Pundir <mohit.pundir@epfl.ch>
*
* @date creation: Thu Jan 17 2019
* @date last modification: Thu May 22 2019
*
* @brief class for coupling of solid mechanics cohesive and conatct mechanics
* model
*
* @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 "coupler_solid_cohesive_contact.hh"
/* -------------------------------------------------------------------------- */
namespace
akantu
{
template
<>
CouplerSolidContactTemplate
<
SolidMechanicsModelCohesive
>::
CouplerSolidContactTemplate
(
Mesh
&
mesh
,
UInt
dim
,
const
ID
&
id
,
std
::
shared_ptr
<
DOFManager
>
dof_manager
,
ModelType
model_type
)
:
Model
(
mesh
,
model_type
,
dof_manager
,
dim
,
id
)
{
#if defined(AKANTU_USE_IOHELPER)
this
->
mesh
.
registerDumper
<
DumperParaview
>
(
"coupler_solid_cohesive_contact"
,
id
,
true
);
this
->
mesh
.
addDumpMeshToDumper
(
"coupler_solid_cohesive_contact"
,
mesh
,
Model
::
spatial_dimension
,
_not_ghost
,
_ek_cohesive
);
#endif
this
->
registerDataAccessor
(
*
this
);
solid
=
std
::
make_unique
<
SolidMechanicsModelCohesive
>
(
mesh
,
Model
::
spatial_dimension
,
"solid_mechanics_model_cohesive"
,
this
->
dof_manager
);
contact
=
std
::
make_unique
<
ContactMechanicsModel
>
(
mesh
.
getMeshFacets
(),
Model
::
spatial_dimension
,
"contact_mechanics_model"
);
}
/* -------------------------------------------------------------------------- */
template
<>
void
CouplerSolidContactTemplate
<
SolidMechanicsModelCohesive
>::
initFullImpl
(
const
ModelOptions
&
options
)
{
Model
::
initFullImpl
(
options
);
const
auto
&
cscc_options
=
aka
::
as_type
<
CouplerSolidCohesiveContactOptions
>
(
options
);
solid
->
initFull
(
_analysis_method
=
cscc_options
.
analysis_method
,
_is_extrinsic
=
cscc_options
.
is_extrinsic
);
contact
->
initFull
(
_analysis_method
=
cscc_options
.
analysis_method
);
}
}
// namespace akantu
Event Timeline
Log In to Comment