Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93746352
ntn_friction.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
Sun, Dec 1, 03:59
Size
3 KB
Mime Type
text/x-c++
Expires
Tue, Dec 3, 03:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22627004
Attached To
rAKA akantu
ntn_friction.hh
View Options
/**
* @file ntn_friction.hh
*
* @author David Simon Kammer <david.kammer@epfl.ch>
*
*
* @brief implementation of friction for node to node contact
*
* @section LICENSE
*
* Copyright (©) 2010-2012, 2014 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
*/
/* -------------------------------------------------------------------------- */
#ifndef __AST_NTN_FRICTION_HH__
#define __AST_NTN_FRICTION_HH__
/* -------------------------------------------------------------------------- */
// simtools
#include "ntn_base_friction.hh"
#include "ntn_friclaw_coulomb.hh"
__BEGIN_AKANTU__
/* -------------------------------------------------------------------------- */
template
<
template
<
class
>
class
FrictionLaw
=
NTNFricLawCoulomb
,
class
Regularisation
=
NTNFricRegNoRegularisation
>
class
NTNFriction
:
public
FrictionLaw
<
Regularisation
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
NTNFriction
(
NTNBaseContact
*
contact
,
const
FrictionID
&
id
=
"friction"
,
const
MemoryID
&
memory_id
=
0
);
virtual
~
NTNFriction
()
{};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
/// apply the friction force
virtual
void
applyFrictionTraction
();
/// function to print the contain of the class
virtual
void
printself
(
std
::
ostream
&
stream
,
int
indent
=
0
)
const
;
protected
:
/* ------------------------------------------------------------------------ */
/* Dumpable */
/* ------------------------------------------------------------------------ */
public
:
// virtual void addDumpFieldToDumper(const std::string & dumper_name,
// const std::string & field_id);
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
public
:
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
protected
:
};
/* -------------------------------------------------------------------------- */
/* inline functions */
/* -------------------------------------------------------------------------- */
/// standard output stream operator
template
<
template
<
class
>
class
FrictionLaw
,
class
Regularisation
>
inline
std
::
ostream
&
operator
<<
(
std
::
ostream
&
stream
,
const
NTNFriction
<
FrictionLaw
,
Regularisation
>
&
_this
)
{
_this
.
printself
(
stream
);
return
stream
;
}
__END_AKANTU__
#include "ntn_friction_tmpl.hh"
#endif
/* __AST_NTN_FRICTION_HH__ */
Event Timeline
Log In to Comment