Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91524564
contact_area.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
Mon, Nov 11, 22:04
Size
2 KB
Mime Type
text/x-c++
Expires
Wed, Nov 13, 22:04 (2 d)
Engine
blob
Format
Raw Data
Handle
22237010
Attached To
rTAMAAS tamaas
contact_area.hh
View Options
//==================================================================//
// Percolation detection and characterization of contact clusters //
// To be integrated in FFT-BEM code //
// //
// V.A. Yastrebov, 2014 //
// Centre des Materiaux, CNRS, MINES ParisTech //
// //
// G. Anciaux, 2014 //
// EPFL, ENAC, IIC, LSMS //
//==================================================================//
#ifndef __CONTACT_AREA__
#define __CONTACT_AREA__
/* -------------------------------------------------------------------------- */
#include "map_2d.hh"
#include <vector>
#include "contact_cluster.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_TAMAAS__
class
ContactArea
:
public
Surface
<
int
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
ContactArea
(
UInt
n
,
Real
L
);
template
<
typename
T
>
ContactArea
(
const
Map2dSquare
<
T
>
&
n
);
~
ContactArea
();
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
//! TODO
void
detectContactClusters
();
//! TODO
void
replaceColors
(
int
from
,
int
to
);
//! TODO
void
randomizeClusterID
(
UInt
seed
);
//! generate contact clusters
std
::
vector
<::
tamaas
::
ContactCluster
>
getContactClusters
();
/* ------------------------------------------------------------------------ */
/* Accessors */
/* ------------------------------------------------------------------------ */
UInt
getNumClusters
(){
return
colors
.
size
();};
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
std
::
vector
<
int
>
colors
;
};
__END_TAMAAS__
#endif
Event Timeline
Log In to Comment