|
| virtual tMemSize | getMemorySize () const |
| | return the memory size of the class and the memory size of all its attributes/associations More...
|
| |
| virtual tMemSize | getContentsMemorySize () const |
| | return the memory size of the included associations More...
|
| |
| virtual void | copy (const SM_Network &network) |
| | copy the network More...
|
| |
| const int & | getIndex () const |
| | create new instance of the network More...
|
| |
|
const int & | getRootIndex () const |
| | index of the root network for network defined with many parts for mpi version
|
| |
|
const int & | getIndicesNumber () const |
| | get the number of network parts
|
| |
|
const tString & | getIndexPrefix () const |
| | index of the root network for network defined with many parts for mpi version
|
| |
| void | setIndex (const int &index, const int &rootIndex, const int &indicesNumber) |
| | set the index of the network More...
|
| |
| void | setIndex (const int &index, const int &rootIndex, const int &indicesNumber, const tString &prefix) |
| | set the index of the network More...
|
| |
| void | setPeriodicity (const std::initializer_list< tBoolean > &&period) |
| | set periodicity More...
|
| |
| void | setPeriodicity (const std::array< tBoolean, SM_Constants::DIM > &period) |
| | set periodicity More...
|
| |
| void | setPeriodicity (const std::vector< tBoolean > &period) |
| | set periodicity More...
|
| |
| const std::array< tBoolean, SM_Constants::DIM > & | getPeriodicity () const |
| | get periodicity per direction More...
|
| |
| void | setParticlesNumber (const tInteger &nParticles) |
| | set the particles number More...
|
| |
| void | setSize (const tInteger &nParticles, const tInteger &nHaloParticles) |
| | set the size of the network More...
|
| |
| const tInteger & | getParticlesNumber () const |
| | return the particles number More...
|
| |
| const tInteger & | getHaloParticlesNumber () const |
| | return the halo particles number More...
|
| |
| void | setParticlesCoordinates (std::initializer_list< tReal > &&coords) |
| | void set particles 3D-coordinates More...
|
| |
| void | setParticlesCoordinates (const std::initializer_list< tReal > &coords) |
| | void set particles 3D-coordinates More...
|
| |
| void | setParticlesCoordinates (const SM_RealField &coords) |
| | void set particles coordinates More...
|
| |
| const SM_RealField & | getParticlesCoordinates () const |
| | void get particles coordinates More...
|
| |
| SM_RealField & | getParticlesCoordinates () |
| | void get particles coordinates More...
|
| |
| const std::valarray< tIndex > & | getNeighboringParticlesList () const |
| | get the neighbors indices More...
|
| |
| std::valarray< tIndex > & | getNeighboringParticlesList () |
| | get the neighbors indices More...
|
| |
| tIndex | getNeighboringParticlesNumber () const |
| | get the number of connections More...
|
| |
| tIndex | getConnectionsNumber () const |
| | get the number of connections More...
|
| |
| const std::valarray< tIndex > & | getNeighboringParticlesNumberOffset () const |
| | get the index of the array mNeighboringParticlesList of the first neighbor of the particle p More...
|
| |
| std::valarray< tIndex > & | getNeighboringParticlesNumberOffset () |
| | get the index of the array mNeighboringParticlesList of the first neighbor of the particle p More...
|
| |
| const tIndex * | getNeighboringParticlesList (const tIndex &i) const |
| | get the index of neighboring particles list for the particle i for reading More...
|
| |
| tIndex | getNeighboringParticlesNumber (const tIndex &i) const |
| | get the number of neighboring particles for the particle i for writing More...
|
| |
| void | setNeighboringParticlesList (std::valarray< tUCInt > &&neighborsNumber, std::valarray< tIndex > &&neighborsList) |
| | set the neighbors list and offset for list More...
|
| |
| void | setNeighboringParticlesList (const std::valarray< tUCInt > &neighborsNumber, const std::vector< tIndex > &neighborsList) |
| | set the neighboring particles list and its offset More...
|
| |
| tIndex | computeAloneParticlesNumber () const |
| | return the particles number without any connection More...
|
| |
| tBoolean | hasConnectionValues () const |
| | has connection values More...
|
| |
| tIndex | getConnectionValuesNumber () const |
| | get the number of connection values More...
|
| |
| const std::valarray< tReal > & | getConnectionValues () const |
| | get the connection values for reading More...
|
| |
| std::valarray< tReal > & | getConnectionValues () |
| | get the connection values for writing More...
|
| |
| tReal & | getConnectionValue (const tIndex &i, const tIndex &j, tBoolean &isFound) |
| | get the value of the connection between particle i and j fro writing More...
|
| |
| const tReal & | getConnectionValue (const tIndex &i, const tIndex &j, tBoolean &isFound) const |
| | get the value of the connection between particle i and j for reading More...
|
| |
| const tReal * | getConnectionValues (const tIndex &i) const |
| | get the connections values of the particle i for reading More...
|
| |
| tReal * | getConnectionValues (const tIndex &i) |
| | get the connections values of the particle i for writing More...
|
| |
| const std::array< tReal, SM_Constants::DIM > & | getBoundingBoxMinPoint () const |
| | get the min point of the boudning box More...
|
| |
| const std::array< tReal, SM_Constants::DIM > & | getBoundingBoxSize () const |
| | get the size of the boudning box More...
|
| |
| virtual void | computeBoundingBox (std::array< tReal, SM_Constants::DIM > &bbMinPoint, std::array< tReal, SM_Constants::DIM > &bbSize) const =0 |
| | get the min point and size of the bunding box More...
|
| |
|
virtual void | updateState () |
| | update the state of the network It computes the bounding box
|
| |
| virtual void | updateConnectionValues (const tReal &noiseRate, SM_StochasticFunctionsInterface &randomF, const tReal &J, const std::function< void(const tReal &, const tReal &, const tReal &, tReal &)> &F)=0 |
| | compute the connection values of the particles in [startInddex,endIndex[ More...
|
| |
| tBoolean | saveToFile (const tString &fileName) const |
| | save the network into file More...
|
| |
| tBoolean | loadFromFile (const tString &fileName) |
| | load the network from file More...
|
| |
| virtual tString | toString () const override |
| | turn the class into a string representation More...
|
| |
|
| SM_Object (void) |
| | create
|
| |
|
virtual | ~SM_Object (void) |
| | destroy
|
| |
| template<class T > |
| std::shared_ptr< T > | getSharedPointer () |
| | return the shared pointer for this More...
|
| |
| template<class T > |
| std::shared_ptr< const T > | getConstSharedPointer () const |
| | return a const shared pointer for this More...
|
| |
| template<class T > |
| tBoolean | isInstanceOf () const |
| | test if the clas T is an instance of this class More...
|
| |
| tString | getClassName () const |
| | return the name of the class More...
|
| |
| tString | getPointerString () const |
| | retrun the pointer of the class as a string More...
|
| |
| tString | getIdentityString () const |
| | retrun the string identification of the class More...
|
| |
This class is describes a network composed by.
data attributes :
- mParticlesNumber: the number of particles
- mHaloParticlesNumber: the number of halo particles
- mX : a list of coordinates of (mParticlesNumber+mHaloParticlesNumber) particles
- mNeighboringParticlesList : a list of neighbors
- mNeighboringParticlesNumberOffset : a list of index within the neighbors list of the first neihbor of each point ()
- mFileVersion : a file version to manage evolution of network file type
- mBoundingBoxMinPoint : min point of the bounding box of the network
- mBoundingBoxSize : size of the bounding box
- mPeriodicity : periodicity of the network
- mIndex,mIndicesNumber,mRootIndex : data for mPi version (to be deprecated)
The state attributes are:
- mConnectionValues : J values for each connections with a particle and its neighboring particles
A network is built by the SM_NetworkBuilder interface implemented in network package of Stoch Magnet module
The network file format is a comment whose first word is a key to read the value of the key after it. Each comment line begins with '#'.
#version
1
#dimension
3
#periodicity per direction
isPx isPy isPz
#particles number
nPs
#halo particles number
nHs
#neighboring particles number
nNeighbors
#particles data : <index> <P.k> <neighbors number> <neighbors list>
i P.x P.y P.z n i0 i1 ... i{n-1}
Halo particles has no neigbor particles. An halo particle line contains only its index and coordinates.
- Author
- Stephane Despreaux
- Version
- 3.0