Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80405927
contact_element.hh
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 31, 13:43
Size
4 KB
Mime Type
text/x-c++
Expires
Mon, Sep 2, 13:43 (2 d)
Engine
blob
Format
Raw Data
Handle
20332502
Attached To
rAKA akantu
contact_element.hh
View Options
/**
* @file contact_element.hh
*
* @author Mohit Pundir <mohit.pundir@epfl.ch>
*
* @date creation: Wed Sep 12 2018
* @date last modification: Tue Oct 23 2018
*
* @brief Mother class for all detection algorithms
*
* @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_common.hh"
/* -------------------------------------------------------------------------- */
#ifndef __AKANTU_CONTACT_ELEMENT_HH__
#define __AKANTU_CONTACT_ELEMENT_HH__
/* -------------------------------------------------------------------------- */
namespace
akantu
{
using
SlaveType
=
UInt
;
using
MasterType
=
Element
;
class
ContactElement
{
/* ------------------------------------------------------------------------ */
/* Constructor/ Destructors */
/* ------------------------------------------------------------------------ */
public
:
ContactElement
()
=
default
;
ContactElement
(
MasterType
master
)
:
master
(
master
)
{}
~
ContactElement
()
=
default
;
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/// set the master element
AKANTU_SET_MACRO
(
Master
,
master
,
MasterType
);
/// gets the value of normal vector
AKANTU_GET_MACRO
(
Normal
,
normal
,
Vector
<
Real
>
);
/// sets the value of normal vector
AKANTU_SET_MACRO
(
Normal
,
normal
,
Vector
<
Real
>
);
/// sets the value of tangent vector
AKANTU_SET_MACRO
(
Tangent
,
tangents
,
Matrix
<
Real
>
);
/// gets the value of tangent vector
AKANTU_GET_MACRO
(
Tangent
,
tangents
,
Matrix
<
Real
>
);
/// sets the value of natural projection
AKANTU_SET_MACRO
(
Projection
,
projection
,
Vector
<
Real
>
);
/// gets the value of natural projection
AKANTU_GET_MACRO
(
Projection
,
projection
,
Vector
<
Real
>
);
/// sets the value of traction
AKANTU_SET_MACRO
(
Traction
,
traction
,
Vector
<
Real
>
);
/// gets the value of traction
AKANTU_GET_MACRO
(
Traction
,
traction
,
Vector
<
Real
>
);
/// sets the value of real projection
AKANTU_SET_MACRO
(
PreviousProjection
,
previous_projection
,
Vector
<
Real
>
);
/// gets the value of natural previous projection
AKANTU_GET_MACRO
(
PreviousProjection
,
previous_projection
,
Vector
<
Real
>
);
/// sets the connectivity of the contact
AKANTU_SET_MACRO
(
Connectivity
,
connectivity
,
Vector
<
UInt
>
);
/// gets the connectivity of the contact
AKANTU_GET_MACRO
(
Connectivity
,
connectivity
,
Vector
<
UInt
>
);
/// sets the value of gap
AKANTU_SET_MACRO
(
Gap
,
gap
,
Real
);
/// gets the value of gap
AKANTU_GET_MACRO
(
Gap
,
gap
,
Real
);
// sets the value of normal vector
AKANTU_SET_MACRO
(
Patch
,
patch
,
Array
<
MasterType
>
);
// gets the value of normal vector
AKANTU_GET_MACRO
(
Patch
,
patch
,
Array
<
MasterType
>
);
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
public
:
/// master element/node
MasterType
master
;
/// projected slave coordinate on master element
Vector
<
Real
>
projection
;
///
Vector
<
Real
>
previous_projection
;
/// normalized normal direction
Vector
<
Real
>
normal
;
/// normalized tangent direction
Matrix
<
Real
>
tangents
;
/// connectivity of the contact element
Vector
<
UInt
>
connectivity
;
///
Vector
<
Real
>
real_projection
;
/// penetration gap between slave and master
Real
gap
;
/// an array of master nodes/elements around slave node
Array
<
MasterType
>
patch
;
///
Vector
<
Real
>
traction
;
};
}
// akantu
#endif
/* __AKANTU_CONTACT_ELEMENT_HH__ */
Event Timeline
Log In to Comment