223 std::vector<util::Point>
nds;
421 std::vector<std::vector<size_t>>
d_nec;
513 std::pair<std::vector<double>, std::vector<double>>
d_bbox;
std::vector< util::Point > d_nodes
Vector of initial (reference) coordinates of nodes.
double getMeshSize() const
Get the mesh size.
std::vector< double > d_vol
Vector of volume of each node.
std::vector< size_t > & getElementConnectivities()
Get the reference to element-node connectivity data.
std::string d_spatialDiscretization
Tag for spatial discretization type.
const std::pair< std::vector< double >, std::vector< double > > & getBoundingBox() const
Get the bounding box of the mesh.
std::vector< uint8_t > & getFixity()
Get the reference to fixity data.
std::vector< size_t > d_nodePartition
Node partition information. For each node i, d_nodePartition[i] specifies the partition number,...
const std::vector< uint8_t > & getFixity() const
Get the reference to fixity data.
bool readElementData(const std::string &filename)
Reads element-node connectivity data from file. This function is meant for cases when mesh was create...
std::vector< util::Point > & getNodes()
Get the nodes data.
bool isNodeFree(const size_t &i, const unsigned int &dof) const
Return true if node is free.
size_t d_nPart
Number of partitions.
const std::vector< double > * getNodalVolumesP() const
Get the pointer to nodal volume data.
size_t d_dim
Dimension of the mesh.
std::vector< double > * getNodalVolumesP()
Get the pointer to nodal volume data.
const std::vector< util::Point > & getNodes() const
Get the nodes data.
std::vector< uint8_t > d_fix
Vector of fixity mask of each node.
void computeBBox()
Compute the bounding box
double getNodalVolume(const size_t &i) const
Get nodal volume of node i.
std::vector< util::Point > getElementConnectivityNodes(const size_t &i) const
Get the vertices of element.
size_t d_numElems
Number of elements.
void clearElementData()
Clear element-node connectivity data.
size_t getElementType() const
Get the type of element in mesh.
util::Point getNode(const size_t &i) const
Get coordinates of node i.
std::pair< std::vector< double >, std::vector< double > > d_bbox
Bounding box.
void computeMeshSize()
Compute the mesh size.
size_t d_eType
Element type.
std::string d_partitionMethod
Partitioning method. It could be either empty string or "metis_recursive" or "metis_kway".
std::string d_filename
Filename to read mesh data.
std::vector< double > & getNodalVolumes()
Get the nodal volume data.
std::vector< uint8_t > * getFixityP()
Get the pointer to fixity data.
std::vector< std::vector< size_t > > d_nec
Node-element connectivity data.
std::vector< size_t > d_enc
Element-node connectivity data.
bool d_encDataPopulated
Flag that indicates whether element-node connectivity data is read from file.
std::vector< size_t > * getElementConnectivitiesP()
Get the pointer to element-node connectivity data.
std::vector< size_t > getElementConnectivity(const size_t &i) const
Get the connectivity of element.
const std::vector< size_t > & getElementConnectivities() const
Get the reference to element-node connectivity data.
std::pair< std::vector< double >, std::vector< double > > & getBoundingBox()
Get the bounding box of the mesh.
size_t d_numNodes
Number of nodes.
size_t d_eNumVertex
Number of vertex per element.
size_t getNumNodes() const
Get the number of nodes.
bool d_needEncData
Flag that indicates whether we need enc data (set by input mesh deck in constructor)
void print(int nt=0, int lvl=0) const
Prints the information about the object.
const std::vector< util::Point > * getNodesP() const
Get the pointer to nodes data.
size_t getNumElements() const
Get the number of elements.
std::vector< size_t > d_gMap
Map from global reduced id to default global id.
void setFixity(const size_t &i, const unsigned int &dof, const bool &flag)
Set the fixity to free (0) or fixed (1)
const std::vector< size_t > * getElementConnectivitiesP() const
Get the pointer to element-node connectivity data.
std::vector< util::Point > * getNodesP()
Get the pointer to nodes data.
size_t getDimension() const
Get the dimension of the domain.
const std::vector< double > & getNodalVolumes() const
Get the nodal volume data.
void computeVol()
Compute the nodal volume.
const std::vector< uint8_t > * getFixityP() const
Get the pointer to fixity data.
std::vector< int > d_gInvMap
Map from global id to reduced global id.
size_t getNumDofs() const
Get the number of dofs.
void createData(const std::string &filename, bool ref_config=false)
Reads mesh data from the file and populates other data.
size_t d_numDofs
Number of dofs = (dimension) times (number of nodes)
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
Collection of methods and data related to finite element and mesh.
Collection of methods and database related to input.
Structure to read and store mesh related input data.
A structure to represent 3d vectors.