/[escript]/trunk/tools/libescriptreader/src/escriptreader/MeshWithElements.h
ViewVC logotype

Contents of /trunk/tools/libescriptreader/src/escriptreader/MeshWithElements.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2183 - (show annotations)
Fri Dec 19 03:52:50 2008 UTC (11 years, 11 months ago) by caltinay
File MIME type: text/plain
File size: 1709 byte(s)
Added escriptreader library with tools. For more information refer to README
file or wait for user documentation.

1
2 /*******************************************************
3 *
4 * Copyright (c) 2003-2008 by University of Queensland
5 * Earth Systems Science Computational Center (ESSCC)
6 * http://www.uq.edu.au/esscc
7 *
8 * Primary Business: Queensland, Australia
9 * Licensed under the Open Software License version 3.0
10 * http://www.opensource.org/licenses/osl-3.0.php
11 *
12 *******************************************************/
13
14 //
15 // MeshWithElements.h
16 //
17 #ifndef __MESHWITHELEMENTS_H__
18 #define __MESHWITHELEMENTS_H__
19
20 #include <escriptreader/Mesh.h>
21
22 class DBfile;
23 class ElementData;
24
25 //
26 //
27 //
28 class MeshWithElements : public Mesh
29 {
30 public:
31 /// Default constructor
32 MeshWithElements();
33
34 /// Copy constructor
35 MeshWithElements(const MeshWithElements& m);
36
37 /// Virtual destructor
38 virtual ~MeshWithElements();
39
40 virtual bool readFromNc(const std::string& filename);
41 virtual void handleGhostZones(int ownIndex);
42 virtual void removeGhostZones();
43 virtual bool writeToSilo(DBfile* dbfile, const std::string& pathInSilo);
44 StringVec getMeshNames() const;
45 StringVec getVarNames() const;
46
47 ElementData* getElementsByName(const std::string name) const;
48 Mesh* getMeshByName(const std::string name) const;
49 const IntVec& getVarDataByName(const std::string name) const;
50
51 ElementData* getElements() { return cells; }
52 ElementData* getFaceElements() { return faces; }
53 ElementData* getContactElements() { return contacts; }
54 ElementData* getPoints() { return points; }
55
56 private:
57 IntVec nodeTag, nodeGDOF, nodeGNI, nodeGRDFI, nodeGRNI;
58 ElementData* cells;
59 ElementData* faces;
60 ElementData* contacts;
61 ElementData* points;
62 };
63
64 #endif // __MESHWITHELEMENTS_H__
65

  ViewVC Help
Powered by ViewVC 1.1.26