1.1.0
CCC
 
MeshSphericalExt Class Reference

#include <MeshSphericalExt.hpp>

Inheritance diagram for MeshSphericalExt:
MeshSpherical AMesh AStringable ASerializable

Public Member Functions

 MeshSphericalExt ()
 
 MeshSphericalExt (const MeshSphericalExt &m)
 
MeshSphericalExtoperator= (const MeshSphericalExt &m)
 
virtual ~MeshSphericalExt ()
 
int resetFromDb (Db *dbin, Db *dbout, const String &triswitch="nqQ", bool verbose=false)
 
AMeshspde_mesh_load (Db *dbin, Db *dbout=nullptr, const VectorDouble &gext=VectorDouble(), const String &triswitch="-r2", bool verbose=false)
 
- Public Member Functions inherited from MeshSpherical
 MeshSpherical (const MatrixRectangular &apices=MatrixRectangular(), const MatrixInt &meshes=MatrixInt())
 
 MeshSpherical (const MeshSpherical &m)
 
MeshSphericaloperator= (const MeshSpherical &m)
 
virtual ~MeshSpherical ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface to AStringable. More...
 
int getNApices () const override
 Interface to AMesh. More...
 
int getNMeshes () const override
 
double getMeshSize (int imesh) const override
 
int getApex (int imesh, int rank) const override
 
double getCoor (int imesh, int rank, int idim) const override
 
double getApexCoor (int i, int idim) const override
 
int getEmbeddedNDim () const override
 
void getEmbeddedCoorPerMesh (int imesh, int ic, VectorDouble &coords) const override
 
void getEmbeddedCoorPerApex (int iapex, VectorDouble &coords) const override
 
int reset (int ndim, int napexpermesh, const VectorDouble &apices, const VectorInt &meshes, bool byCol, bool verbose=false)
 
void resetProjMatrix (ProjMatrix *m, const Db *db, int rankZ=-1, bool verbose=false) const override
 
int getVariety () const
 
const MatrixRectangulargetApices () const
 
const MatrixIntgetMeshes () const
 
VectorVectorInt getMeshesAsVVI () const
 
- Public Member Functions inherited from AMesh
 AMesh ()
 
 AMesh (const AMesh &m)
 
AMeshoperator= (const AMesh &m)
 
virtual ~AMesh ()
 
virtual int getNApexPerMesh () const
 Interface for AMesh. More...
 
virtual void getCoordinatesInPlace (int imesh, int rank, VectorDouble &coords) const
 
virtual void getApexCoordinatesInPlace (int i, VectorDouble &coords) const
 
ProjMatrixcreateProjMatrix (const Db *db, int rankZ=-1, bool verbose=false) const
 
int getNDim () const
 
double getExtendMin (int idim) const
 
double getExtendMax (int idim) const
 
VectorDouble getExtrema (int idim) const
 
void getElements (MatrixRectangular &apices, MatrixInt &meshes) const
 
int isCompatibleDb (const Db *db) const
 
VectorDouble getMeshSizes () const
 
void printMesh (int imesh0) const
 
void printMeshes (int level=0, int nline_max=-1) const
 
VectorDouble getCoordinates (int idim) const
 
VectorInt getMeshByApexPair (int apex1, int apex2) const
 
VectorDouble getCoordinatesPerMesh (int imesh, int idim, bool flagClose=false) const
 
VectorDouble getApexCoordinates (int iapex) const
 
VectorVectorDouble getCoordinatesPerMesh (int imesh) const
 
VectorVectorDouble getEmbeddedCoordinatesPerMesh (int imesh=0) const
 
void getEmbeddedCoordinatesPerMeshInPlace (int imesh, VectorVectorDouble &coors) const
 
VectorVectorDouble getEmbeddedCoordinatesPerApex () const
 
VectorDouble getDistances (int iapex0, const VectorInt &japices=VectorInt())
 
VectorVectorDouble getAllCoordinates () const
 
MatrixRectangular getAllApices () const
 
MatrixInt getAllMeshes () const
 
double getCenterCoordinate (int imesh, int idim) const
 
VectorVectorDouble getAllCenterCoordinates () const
 
VectorVectorInt getNeighborhoodPerMesh () const
 
VectorVectorInt getNeighborhoodPerApex () const
 
void dumpNeighborhood (std::vector< VectorInt > &Vmesh, int nline_max=1)
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ASerializable
 ASerializable ()
 
 ASerializable (const ASerializable &r)
 
ASerializableoperator= (const ASerializable &r)
 
virtual ~ASerializable ()
 
bool deserialize (std::istream &is, bool verbose=true)
 
bool serialize (std::ostream &os, bool verbose=true) const
 
bool dumpToNF (const String &neutralFilename, bool verbose=false) const
 

Additional Inherited Members

- Static Public Member Functions inherited from MeshSpherical
static MeshSphericalcreateFromNF (const String &neutralFilename, bool verbose=true)
 
static MeshSphericalcreate (const MatrixRectangular &apices=MatrixRectangular(), const MatrixInt &meshes=MatrixInt())
 
- Static Public Member Functions inherited from ASerializable
static String buildFileName (int status, const String &filename, bool ensureDirExist=false)
 
static String getHomeDirectory (const String &sub="")
 
static String getWorkingDirectory ()
 
static String getTestData (const String &subdir, const String &filename)
 
static String getFileIdentity (const String &filename, bool verbose=false)
 
static void setContainerName (bool useDefault, const String &containerName="", bool verbose=false)
 
static void unsetContainerName ()
 
static void setPrefixName (const String &prefixName)
 
static void unsetPrefixName ()
 
static const StringgetContainerName ()
 
static const StringgetPrefixName ()
 
static bool createDirectory (const String &dir)
 
static String getExecDirectory ()
 
static String getDirectory (const String &path)
 

Detailed Description

Meshing defined in the Euclidean space

Constructor & Destructor Documentation

MeshSphericalExt::MeshSphericalExt ( )
MeshSphericalExt::MeshSphericalExt ( const MeshSphericalExt m)
MeshSphericalExt::~MeshSphericalExt ( )
virtual

Member Function Documentation

MeshSphericalExt & MeshSphericalExt::operator= ( const MeshSphericalExt m)
int MeshSphericalExt::resetFromDb ( Db dbin,
Db dbout,
const String triswitch = "nqQ",
bool  verbose = false 
)

Create the meshing

Parameters
[in]dbinPointer to the input Db (optional)
[in]dboutPointer to the output Db (optional)
[in]triswitchConstruction switch
[in]verboseVerbose flag
AMesh * MeshSphericalExt::spde_mesh_load ( Db dbin,
Db dbout = nullptr,
const VectorDouble gext = VectorDouble(),
const String triswitch = "-r2",
bool  verbose = false 
)

Load the AMesh structure

Returns
Pointer on the newly allocated AMesh
Parameters
[in]dbinDb structure for the conditioning data
[in]dboutDb structure of the grid
[in]gextArray of domain dilation
[in]triswitchTriswitch option
[in]verboseVerbose option

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