Overture  Version 25
GridCollectionOperators.h
Go to the documentation of this file.
1 /* -*-Mode: c++; -*- */
2 
3 #ifndef GRID_COLLECTION_OPERATORS_H
4 #define GRID_COLLECTION_OPERATORS_H
5 
7 #include "MappedGridOperators.h"
8 // include "ListOfMappedGridOperators.h"
9 
10 //-----------------------------------------------------------------------------------
11 //
12 // Define differential and Boundary operators associated with GridCollections,
13 // GridCollectionFunctions (and CompositeGrid/CompositeGridFunctions)
14 //
15 //-----------------------------------------------------------------------------------
16 
18 {
19 
20  public:
21 
23  GridCollectionOperators( GridCollection & gc ); // use this GridCollection
24  GridCollectionOperators( MappedGridOperators & op ); // use these operators
26 
27  GridCollectionOperators( const GridCollectionOperators & mgfd ); // copy constructor
28  virtual GenericGridCollectionOperators* virtualConstructor(); // create a new object of this class
29 
31 
34 
35  MappedGridOperators & operator[]( const int grid ) const; // here is the operators for a MappedGrid
36 
37  // return size of this object
38  virtual real sizeOf(FILE *file = NULL ) const;
39 
40  void updateToMatchGrid( GridCollection & gc ); // here is a (new) GridCollection to use
41  // void updateToMatchOperators(MappedGridOperators & op); // Use these operators
42 
43  // get from a database file
44  virtual int get( const GenericDataBase & dir, const aString & name);
45  // put to a database file
46  virtual int put( GenericDataBase & dir, const aString & name) const;
47 
48  // ------------- Here we define the Boundary Condition Routines ---------------
49 
50  public:
51 
52 // void setNumberOfBoundaryConditions(const int & number,
53 // const int & side=forAll,
54 // const int & axis=forAll,
55 // const int & grid=forAll);
56 
57 // void setBoundaryCondition(const MappedGridOperators::boundaryConditionTypes & boundaryConditionType );
58 
59 // void setBoundaryConditionValue(const real & value,
60 // const int & component=forAll,
61 // const int & index=forAll,
62 // const int & side=forAll,
63 // const int & axis=forAll,
64 // const int & grid=forAll);
65 
66  private:
67 
68  bool mappedGridOperatorWasNewed; // TRUE if we have newed a MappedGridOperators
69 
70 
71 
72 };
73 
74 
75 
76 
77 
78 
79 #endif