1.8.0
CCC
 
Loading...
Searching...
No Matches
gstlrn::MeshEStandard Class Reference

#include <MeshEStandard.hpp>

Inheritance diagram for gstlrn::MeshEStandard:
gstlrn::AMesh gstlrn::AStringable gstlrn::ASerializable

Detailed Description

Standard Meshing defined in the Euclidean space

Public Member Functions

 MeshEStandard ()
 
 MeshEStandard (const MeshEStandard &m)
 
MeshEStandardoperator= (const MeshEStandard &m)
 
virtual ~MeshEStandard ()
 
String toString (const AStringFormat *strfmt=nullptr) const override
 Interface to AStringable.
 
Id getNApices () const override
 Interface for AMesh.
 
Id getNMeshes () const override
 
Id getApex (Id imesh, Id rank) const override
 
double getCoor (Id imesh, Id rank, Id idim) const override
 
double getApexCoor (Id i, Id idim) const override
 
double getMeshSize (Id imesh) const override
 
 getMeshList () const
 
 getPointList (bool byCol=true) const
 
Id reset (const MatrixDense &apices, const MatrixInt &meshes, bool verbose=false)
 
Id reset (Id ndim, Id napexpermesh, const 1 &apices, const 1 &meshes, bool byCol=true, bool verbose=false)
 
Id resetFromTurbo (const MeshETurbo &turbo, bool verbose=false)
 
const MatrixDensegetApices () const
 
const MatrixIntgetMeshes () const
 
- Public Member Functions inherited from gstlrn::AMesh
 AMesh ()
 
 AMesh (const AMesh &m)
 
AMeshoperator= (const AMesh &m)
 
virtual ~AMesh ()
 
virtual Id getNApexPerMesh () const
 Interface for AMesh.
 
virtual void getCoordinatesPerMeshInPlace (Id imesh, Id rank, 1 &coords) const
 
virtual void getApexCoordinatesInPlace (Id i, 1 &coords) const
 
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
 
ProjMatrixcreateProjMatrix (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
 
- Public Member Functions inherited from gstlrn::AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (Id level) const final
 
- Public Member Functions inherited from gstlrn::ASerializable
 ASerializable ()
 
 ASerializable (const ASerializable &r)
 
ASerializableoperator= (const ASerializable &r)
 
 ASerializable (ASerializable &&r) noexcept
 
ASerializableoperator= (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 MeshEStandardcreateFromNF (const String &NFFilename, bool verbose=true)
 
static MeshEStandardcreateFromExternal (const MatrixDense &apices, const MatrixInt &meshes, bool verbose=false)
 
- Static Public Member Functions inherited from gstlrn::AMesh
static void dumpNeighborhood (std::vector< 1 > &Vmesh, Id nline_max=1)
 
- Static Public Member Functions inherited from gstlrn::ASerializable
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 StringgetPrefixName ()
 

Friends

class DbMeshStandard
 

Constructor & Destructor Documentation

◆ MeshEStandard() [1/2]

gstlrn::MeshEStandard::MeshEStandard ( )

◆ MeshEStandard() [2/2]

gstlrn::MeshEStandard::MeshEStandard ( const MeshEStandard m)

◆ ~MeshEStandard()

gstlrn::MeshEStandard::~MeshEStandard ( )
virtual

Member Function Documentation

◆ createFromExternal()

MeshEStandard * gstlrn::MeshEStandard::createFromExternal ( const MatrixDense apices,
const MatrixInt meshes,
bool  verbose = false 
)
static

◆ createFromNF()

MeshEStandard * gstlrn::MeshEStandard::createFromNF ( const String NFFilename,
bool  verbose = true 
)
static

Create a MeshEStandard by loading the contents of a Neutral File

Parameters
NFFilenameName of the Neutral File (MeshEStandard format)
verboseVerbose

◆ getApex()

Id gstlrn::MeshEStandard::getApex ( Id  imesh,
Id  rank 
) const
overridevirtual

Returns the rank of the Apex 'rank' of the Mesh 'imesh'

Returns
The rank of the target apex
Parameters
[in]imeshRank of Mesh (from 0 to _nMeshes-1))
[in]rankRank of Apex within a Mesh (from 0 to _nApexPerMesh)

Implements gstlrn::AMesh.

◆ getApexCoor()

double gstlrn::MeshEStandard::getApexCoor ( Id  i,
Id  idim 
) const
overridevirtual

Returns coordinate 'idim' of apex 'i'

Implements gstlrn::AMesh.

◆ getApices()

const MatrixDense & gstlrn::MeshEStandard::getApices ( ) const
inline

◆ getCoor()

double gstlrn::MeshEStandard::getCoor ( Id  imesh,
Id  rank,
Id  idim 
) const
overridevirtual

Returns the coordinate 'idim' of the Apex 'rank' of the Mesh 'imesh'

Returns
The coordinate of the target apex
Parameters
[in]imeshRank of the Mesh (from 0 to _nMeshes-1))
[in]rankRank of Apex within a Mesh (from 0 to _nApexPerMesh-1)
[in]idimRank of the coordinate (from 0 to _nDim-1)

Implements gstlrn::AMesh.

◆ getMeshes()

const MatrixInt & gstlrn::MeshEStandard::getMeshes ( ) const
inline

◆ getMeshList()

gstlrn::MeshEStandard::getMeshList ( ) const
inline

◆ getMeshSize()

double gstlrn::MeshEStandard::getMeshSize ( Id  imesh) const
overridevirtual

Returns the size of the Mesh 'imesh'

Returns
mesh dimension
Parameters
[in]imeshRank of the Mesh (from 0 to _nMeshes-1))

Implements gstlrn::AMesh.

◆ getNApices()

Id gstlrn::MeshEStandard::getNApices ( ) const
overridevirtual

Interface for AMesh.

Returns the number of Apices

Returns
Number of apices

Implements gstlrn::AMesh.

◆ getNMeshes()

Id gstlrn::MeshEStandard::getNMeshes ( ) const
overridevirtual

Returns the number of Meshes

Returns
Number of meshes

Implements gstlrn::AMesh.

◆ getPointList()

gstlrn::MeshEStandard::getPointList ( bool  byCol = true) const

Returns the list of mesh vertex information This List is organized as a single Vector of Double It is dimensioned to Nrows=getNApices() and Ncols=getNDim()

Parameters
byColtrue if the values must be sorted by column
Returns

◆ operator=()

MeshEStandard & gstlrn::MeshEStandard::operator= ( const MeshEStandard m)

◆ reset() [1/2]

Id gstlrn::MeshEStandard::reset ( const MatrixDense apices,
const MatrixInt meshes,
bool  verbose = false 
)

Create the meshing (from mesh information)

Parameters
[in]apicesMatrix of Apices
[in]meshesArray of mesh indices
[in]verboseVerbose flag

◆ reset() [2/2]

Id gstlrn::MeshEStandard::reset ( Id  ndim,
Id  napexpermesh,
const 1 &  apices,
const 1 &  meshes,
bool  byCol = true,
bool  verbose = false 
)

Create the meshing (from mesh information)

Parameters
[in]ndimSpace Dimension
[in]napexpermeshNumber of apices per mesh
[in]apicesVector of Apex information
[in]meshesVector of mesh indices
[in]byColtrue for Column major; false for Row Major
[in]verboseVerbose flag
Remarks
The argument 'byCol' concerns 'apices' and 'meshes'

◆ resetFromTurbo()

Id gstlrn::MeshEStandard::resetFromTurbo ( const MeshETurbo turbo,
bool  verbose = false 
)

◆ toString()

String gstlrn::MeshEStandard::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface to AStringable.

Print the contents of the meshing

Parameters
[in]strfmtFormat for printout

Reimplemented from gstlrn::AMesh.

Friends And Related Symbol Documentation

◆ DbMeshStandard

friend class DbMeshStandard
friend

The documentation for this class was generated from the following files: