Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77886584
implicit_penalty_2d.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
Sat, Aug 17, 00:26
Size
2 KB
Mime Type
text/x-c
Expires
Mon, Aug 19, 00:26 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19923775
Attached To
rAKA akantu
implicit_penalty_2d.cc
View Options
/**
* @file contact_mechanics_penalty.cc
*
* @author Mohit Pundir <mohit.pundir@epfl.ch>
*
* @date creation: Mon Jan 21 2019
* @date last modification: Mon Jan 21 2019
*
* @brief contact mechanics model with penalty resolution
*
* @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 <fstream>
#include <iostream>
/* -------------------------------------------------------------------------- */
#include "contact_mechanics_model.hh"
/* -------------------------------------------------------------------------- */
using
namespace
akantu
;
int
main
(
int
argc
,
char
*
argv
[])
{
initialize
(
"material_implicit.dat"
,
argc
,
argv
);
const
UInt
spatial_dimension
=
2
;
Mesh
mesh
(
spatial_dimension
);
mesh
.
read
(
"hertz_implicit_2d.msh"
);
ContactMechanicsModel
model
(
mesh
);
model
.
initFull
(
_analysis_method
=
_implicit_contact
);
model
.
setBaseName
(
"implicit-penalty-2d"
);
model
.
addDumpField
(
"contact_force"
);
model
.
addDumpField
(
"external_force"
);
model
.
addDumpField
(
"blocked_dofs"
);
model
.
addDumpField
(
"gaps"
);
model
.
addDumpField
(
"areas"
);
model
.
dump
();
model
.
search
();
model
.
dump
();
model
.
assembleInternalForces
();
model
.
assembleStiffnessMatrix
();
model
.
dump
();
finalize
();
return
EXIT_SUCCESS
;
}
Event Timeline
Log In to Comment