Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66104209
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
Sat, Jun 8, 07:35
Size
2 KB
Mime Type
text/x-c++
Expires
Mon, Jun 10, 07:35 (2 d)
Engine
blob
Format
Raw Data
Handle
18125254
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