IFEM  90A354
ASMutils.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _ASM_UTILS_H
15 #define _ASM_UTILS_H
16 
17 #include <iostream>
18 #include <vector>
19 #include <string>
20 
21 class Vec3;
22 
23 typedef std::vector<int> IntVec;
24 typedef std::vector<IntVec> IntMat;
25 
26 
27 namespace ASM
28 {
29  typedef std::pair<std::string,IntVec> NodeSet;
30 
32  bool readMatlab(std::istream& is, IntMat& MNPC, std::vector<Vec3>& nodes,
33  std::vector<NodeSet>& nodeSets);
34 
36  bool readXML(std::istream& is, IntMat& MNPC, std::vector<Vec3>& nodes,
37  std::vector<NodeSet>& nodeSets,
38  std::vector<NodeSet>* elemSets = nullptr);
39 };
40 
41 #endif
std::vector< IntVec > IntMat
General 2D integer matrix.
Definition: ASMbase.h:26
std::vector< IntVec > IntMat
General 2D integer matrix.
Definition: ASMutils.h:24
std::vector< int > IntVec
General integer vector.
Definition: ASMutils.h:21
Simple class for representing a point in 3D space.
Definition: Vec3.h:27
Assembly scope.
Definition: SIMdummy.h:24
bool readMatlab(std::istream &is, IntMat &MNPC, std::vector< Vec3 > &nodes, std::vector< NodeSet > &nodeSets)
Creates a mesh by reading Matlab commands from an input stream.
Definition: ASMutils.C:29
std::pair< std::string, IntVec > NodeSet
Named node set container.
Definition: ASMutils.h:29
bool readXML(std::istream &is, IntMat &MNPC, std::vector< Vec3 > &nodes, std::vector< NodeSet > &nodeSets, std::vector< NodeSet > *elemSets=nullptr)
Creates a mesh by reading XML tags from an input stream.
Definition: ASMutils.C:143