Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
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
6
#include "
GenericGridCollectionOperators.h
"
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
17
class
GridCollectionOperators
:
public
GenericGridCollectionOperators
18
{
19
20
public
:
21
22
GridCollectionOperators
();
23
GridCollectionOperators
(
GridCollection
& gc );
// use this GridCollection
24
GridCollectionOperators
(
MappedGridOperators
& op );
// use these operators
25
GridCollectionOperators
(
GridCollection
& gc,
MappedGridOperators
& op );
// use both
26
27
GridCollectionOperators
(
const
GridCollectionOperators
& mgfd );
// copy constructor
28
virtual
GenericGridCollectionOperators
*
virtualConstructor
();
// create a new object of this class
29
30
~GridCollectionOperators
();
31
32
GridCollectionOperators
&
operator=
(
const
GridCollectionOperators
& dmgf );
33
GenericGridCollectionOperators
&
operator=
(
const
GenericGridCollectionOperators
& mgo );
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
Generated on Fri Jan 4 2013 10:17:53 for Overture by
1.8.3