#include <AMesh.hpp>
Public Member Functions | |
AMesh () | |
AMesh (const AMesh &m) | |
AMesh & | operator= (const AMesh &m) |
virtual | ~AMesh () |
String | toString (const AStringFormat *strfmt=nullptr) const override |
Interface to AStringable. | |
virtual Id | getNApexPerMesh () const |
Interface for AMesh. | |
virtual Id | getNApices () const =0 |
virtual Id | getNMeshes () const =0 |
virtual Id | getApex (Id imesh, Id rank) const =0 |
virtual double | getCoor (Id imesh, Id rank, Id idim) const =0 |
virtual void | getCoordinatesPerMeshInPlace (Id imesh, Id rank, 1 &coords) const |
virtual double | getApexCoor (Id i, Id idim) const =0 |
virtual void | getApexCoordinatesInPlace (Id i, 1 &coords) const |
virtual double | getMeshSize (Id imesh) const =0 |
virtual void | resetProjFromDb (ProjMatrix *m, const Db *db, Id rankZ=-1, bool verbose=false) const |
virtual Id | getVariety () const |
virtual Id | getEmbeddedNDim () const |
virtual void | getEmbeddedCoorPerMesh (Id imesh, Id ic, 1 &coords) const |
virtual void | getEmbeddedCoorPerApex (Id iapex, 1 &coords) const |
virtual void | getBarycenterInPlace (Id imesh, vect coord) const |
ProjMatrix * | createProjMatrix (const Db *db, Id rankZ=-1, bool verbose=false) const |
Id | getNDim () const |
double | getExtendMin (Id idim) const |
double | getExtendMax (Id idim) const |
getExtrema (Id idim) const | |
void | getElements (MatrixDense &apices, MatrixInt &meshes) const |
Id | isCompatibleDb (const Db *db) const |
getMeshSizes () const | |
void | printMesh (Id imesh0=-1) const |
void | printMeshes (Id level=0, Id nline_max=-1) const |
getCoordinatesPerApex (Id idim) const | |
getMeshByApexPair (Id apex1, Id apex2) const | |
getCoordinatesPerMesh (Id imesh, Id idim, bool flagClose=false) const | |
getApexCoordinates (Id iapex) const | |
getCoordinatesPerMesh (Id imesh) const | |
getEmbeddedCoordinatesPerMesh (Id imesh=0) const | |
void | getEmbeddedCoordinatesPerMeshInPlace (Id imesh, 1 &vec) const |
getEmbeddedCoordinatesPerApex () const | |
getDistances (Id iapex0, const 1 &japices=1()) const | |
getAllCoordinates () const | |
MatrixDense | getAllApices () const |
MatrixInt | getAllMeshes () const |
double | getCenterCoordinate (Id imesh, Id idim) const |
getAllCenterCoordinates () const | |
getNeighborhoodPerMesh () const | |
getNeighborhoodPerApex () const | |
![]() | |
AStringable () | |
AStringable (const AStringable &r) | |
AStringable & | operator= (const AStringable &r) |
virtual | ~AStringable () |
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
virtual void | display (Id level) const final |
![]() | |
ASerializable () | |
ASerializable (const ASerializable &r) | |
ASerializable & | operator= (const ASerializable &r) |
ASerializable (ASerializable &&r) noexcept | |
ASerializable & | operator= (ASerializable &&r) noexcept |
virtual | ~ASerializable () |
bool | dumpToNF (const String &NFFilename, const EFormatNF &format=EFormatNF::fromKey("DEFAULT"), bool verbose=false) const |
Dump the contents of an object into an Output File using a given Output NF Format. | |
void | setDefaultFormatNF (const EFormatNF &format) |
Static Public Member Functions | |
static void | dumpNeighborhood (std::vector< 1 > &Vmesh, Id nline_max=1) |
![]() | |
static String | buildFileName (Id status, const String &filename, bool ensureDirExist=false) |
static String | getFileIdentity (const String &filename, bool verbose=false) |
static void | setPrefixName (const String &prefixName) |
static void | unsetPrefixName () |
static const String & | getPrefixName () |
gstlrn::AMesh::AMesh | ( | ) |
gstlrn::AMesh::AMesh | ( | const AMesh & | m | ) |
|
virtual |
ProjMatrix * gstlrn::AMesh::createProjMatrix | ( | const Db * | db, |
Id | rankZ = -1 , |
||
bool | verbose = false |
||
) | const |
Returns the Sparse Matrix for projecting the Mesh to a Db
|
static |
MatrixDense gstlrn::AMesh::getAllApices | ( | ) | const |
Returns the information about all apices:
gstlrn::AMesh::getAllCenterCoordinates | ( | ) | const |
gstlrn::AMesh::getAllCoordinates | ( | ) | const |
Returns the coordinates of all meshes:
MatrixInt gstlrn::AMesh::getAllMeshes | ( | ) | const |
Returns the information of all meshes:
Returns the rank of apex 'rank' for mesh 'imesh'
Implemented in gstlrn::MeshEStandard, gstlrn::MeshETurbo, and gstlrn::MeshSpherical.
Returns coordinate 'idim' of apex 'i'
Implemented in gstlrn::MeshEStandard, gstlrn::MeshETurbo, and gstlrn::MeshSpherical.
gstlrn::AMesh::getApexCoordinates | ( | Id | iapex | ) | const |
Returns the coordinates of an Apex
|
virtual |
Returns coordinates of apex 'i'
Reimplemented in gstlrn::MeshETurbo.
Reimplemented in gstlrn::MeshSpherical.
Returns the coordinates of the Center of Gravity of a Mesh
imesh | Rank of the Mesh |
idim | Index of the space dimension |
Returns coordinate 'idim' of apex 'rank' of mesh 'imesh'
Implemented in gstlrn::MeshEStandard, gstlrn::MeshETurbo, and gstlrn::MeshSpherical.
gstlrn::AMesh::getCoordinatesPerApex | ( | Id | idim | ) | const |
Returns Vector of Apex coordinates for space index
gstlrn::AMesh::getCoordinatesPerMesh | ( | Id | imesh | ) | const |
Returns the vector of coordinates for a mesh
Returns coordinate 'idim' of apex 'rank' of mesh 'imesh'
Reimplemented in gstlrn::MeshETurbo.
gstlrn::AMesh::getDistances | ( | Id | iapex0, |
const 1 & | japices = 1() |
||
) | const |
void gstlrn::AMesh::getElements | ( | MatrixDense & | apices, |
MatrixInt & | meshes | ||
) | const |
Returns the list of apexes and meshes
Extract the elements of the meshing
[out] | apices | Pointer on the array of Apices |
[out] | meshes | Pointer on the array of Meshes |
gstlrn::AMesh::getEmbeddedCoordinatesPerApex | ( | ) | const |
Returns the coordinates of the Mesh apices expressed in the embedded space The returned vector is organized by coordinate
gstlrn::AMesh::getEmbeddedCoordinatesPerMesh | ( | Id | imesh = 0 | ) | const |
Returns the array of coordinates of all apices of any mesh in embedded space Its dimensions are: ncorner * ndim
imesh | Mesh rank |
void gstlrn::AMesh::getEmbeddedCoordinatesPerMeshInPlace | ( | Id | imesh, |
1 & | vec | ||
) | const |
Fill the array of coordinates of all apices of a mesh in embedded space Storage [ndim, ncorner]
imesh | Mesh rank |
vec | Returned array |
|
virtual |
Fill the coordinates of an apex in embedded space
iapex | Apex index |
coords | Array of coordinates |
Reimplemented in gstlrn::MeshSpherical.
Fill the coordinates of a corner of a mesh in embedded space
imesh | Mesh rank |
ic | Corner index |
coords | Array of coordinates |
Reimplemented in gstlrn::MeshSpherical.
|
inlinevirtual |
Reimplemented in gstlrn::MeshSpherical.
|
inline |
Returns the maximum of the Bounding box for a given space dimension
|
inline |
Returns the minimum of the Bounding box for a given space dimension
gstlrn::AMesh::getExtrema | ( | Id | idim | ) | const |
Returns the Vector of Extrema of the Bounding Box
Returns the list of indices of Meshes sharing the same Apex
|
pure virtual |
Returns the mesh size
Implemented in gstlrn::MeshEStandard, gstlrn::MeshETurbo, and gstlrn::MeshSpherical.
gstlrn::AMesh::getMeshSizes | ( | ) | const |
|
inlinevirtual |
Interface for AMesh.
Returns the number of apex per mesh
|
pure virtual |
Returns the number of apices
Implemented in gstlrn::MeshEStandard, gstlrn::MeshETurbo, and gstlrn::MeshSpherical.
|
inline |
Returns the space dimension
gstlrn::AMesh::getNeighborhoodPerApex | ( | ) | const |
Returns the list of neighboring apices This is a complex structure which stands as a vector of vectors of integers
gstlrn::AMesh::getNeighborhoodPerMesh | ( | ) | const |
Returns the list of neighboring meshes This is a complex structure which stands as a vector of vectors of integers
|
pure virtual |
Returns the number of meshes
Implemented in gstlrn::MeshEStandard, gstlrn::MeshETurbo, and gstlrn::MeshSpherical.
|
inlinevirtual |
Returns the space variety
Reimplemented in gstlrn::MeshSpherical.
void gstlrn::AMesh::printMesh | ( | Id | imesh0 = -1 | ) | const |
Print the list of meshes and apices
|
virtual |
Initialize the Sparse Matrix for projecting the Db on a Mesh
Returns the Sparse Matrix used to project a Db onto the Meshing
[out] | m | Projection matrix to be initialized |
[in] | db | Db structure |
[in] | rankZ | Rank of the Z-locator to be tested (see remarks) |
[in] | verbose | Verbose flag |
Reimplemented in gstlrn::MeshETurbo.
|
overridevirtual |
Interface to AStringable.
Reimplemented from gstlrn::AStringable.
Reimplemented in gstlrn::MeshEStandard, gstlrn::MeshETurbo, and gstlrn::MeshSpherical.