Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82201225
MeshReader.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 10, 03:39
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Sep 12, 03:39 (2 d)
Engine
blob
Format
Raw Data
Handle
20663407
Attached To
rLAMMPS lammps
MeshReader.h
View Options
#ifndef MESH_READER_H
#define MESH_READER_H
#include "Array2D.h"
#include "MatrixDef.h"
#include "MatrixLibrary.h"
#include "ATC_Error.h"
#include "FE_Mesh.h"
#include <sstream>
#include <set>
#include <utility>
#include <string>
namespace ATC {
class MeshReader {
public:
/** constructor, takes a filename */
MeshReader(std::string filename, Array<bool> periodicity, double tol=1.e-8);
/** destructor */
~MeshReader();
/** creates handle to new mesh object */
FE_Mesh* create_mesh();
private:
int number_of_vertices(std::string str);
/** reads .mesh format file */
void read_mesh_file();
/** reads .exo format file */
void read_exo_file();
/** Data members for storing necessary information */
std::string meshfile_;
ATC_matrix::Array<bool> periodicity_;
std::string elementType_;
int nNodes_;
int nElements_;
int nNodeSets_;
ATC_matrix::Array2D<int> * conn_;
DENS_MAT * nodeCoords_;
ATC_matrix::Array<std::pair<std::string,std::set<int> > > * nodeSets_;
};
} // end namespace ATC
#endif
Event Timeline
Log In to Comment