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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2205 by caltinay, Tue Dec 23 04:13:15 2008 UTC revision 2206 by caltinay, Fri Jan 9 03:50:29 2009 UTC
# Line 25  namespace EscriptReader { Line 25  namespace EscriptReader {
25    
26  class ElementData;  class ElementData;
27    
28  //  /// \brief A full escript domain including elements.
29  //  ///
30  //  /// This class represents a mesh including cells, faces, contact elements and
31    /// points if applicable.
32  class MeshWithElements : public Mesh  class MeshWithElements : public Mesh
33  {  {
34  public:  public:
35      /// Default constructor      /// \brief Default constructor.
36      MeshWithElements();      MeshWithElements();
37    
38      /// Copy constructor      /// \brief Copy constructor.
39      MeshWithElements(const MeshWithElements& m);      MeshWithElements(const MeshWithElements& m);
40            
41      /// Virtual destructor      /// \brief Virtual destructor.
42      virtual ~MeshWithElements();      virtual ~MeshWithElements();
43    
44      virtual bool readFromNc(const std::string& filename);      virtual bool readFromNc(const std::string& filename);
45      virtual void handleGhostZones(int ownIndex);      virtual void handleGhostZones(int ownIndex);
46      virtual void removeGhostZones();      virtual void removeGhostZones();
47      virtual bool writeToSilo(DBfile* dbfile, const std::string& pathInSilo);      virtual bool writeToSilo(DBfile* dbfile, const std::string& pathInSilo);
48    
49        /// \brief
50      StringVec getMeshNames() const;      StringVec getMeshNames() const;
51    
52        /// \brief
53      StringVec getVarNames() const;      StringVec getVarNames() const;
54    
55        /// \brief
56      ElementData* getElementsByName(const std::string name) const;      ElementData* getElementsByName(const std::string name) const;
57    
58        /// \brief
59      Mesh* getMeshByName(const std::string name) const;      Mesh* getMeshByName(const std::string name) const;
60    
61        /// \brief
62      const IntVec& getVarDataByName(const std::string name) const;      const IntVec& getVarDataByName(const std::string name) const;
63    
64        /// \brief Returns a pointer to the elements.
65      ElementData* getElements() { return cells; }      ElementData* getElements() { return cells; }
66    
67        /// \brief Returns a pointer to the face elements.
68      ElementData* getFaceElements() { return faces; }      ElementData* getFaceElements() { return faces; }
69    
70        /// \brief Returns a pointer to the contact elements.
71      ElementData* getContactElements() { return contacts; }      ElementData* getContactElements() { return contacts; }
72    
73        /// \brief Returns a pointer to the point "elements".
74      ElementData* getPoints() { return points; }      ElementData* getPoints() { return points; }
75    
76  private:  private:

Legend:
Removed from v.2205  
changed lines
  Added in v.2206

  ViewVC Help
Powered by ViewVC 1.1.26