Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
applications
utilities
parallelProcessing
decomposePar
pointFieldDecomposer.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
Class
25
Foam::pointFieldDecomposer
26
27
Description
28
Point field decomposer.
29
30
SourceFiles
31
pointFieldDecomposer.C
32
pointFieldDecomposerDecomposeFields.C
33
34
\*---------------------------------------------------------------------------*/
35
36
#ifndef pointFieldDecomposer_H
37
#define pointFieldDecomposer_H
38
39
#include <
OpenFOAM/pointMesh.H
>
40
#include <
OpenFOAM/pointPatchFieldMapperPatchRef.H
>
41
#include <
OpenFOAM/pointFields.H
>
42
43
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45
namespace
Foam
46
{
47
48
/*---------------------------------------------------------------------------*\
49
Class pointFieldDecomposer Declaration
50
\*---------------------------------------------------------------------------*/
51
52
class
pointFieldDecomposer
53
{
54
55
public
:
56
57
//- Point patch field decomposer class
58
class
patchFieldDecomposer
59
:
60
public
pointPatchFieldMapperPatchRef
61
{
62
// Private data
63
64
labelList
directAddressing_;
65
66
public
:
67
68
// Constructors
69
70
//- Construct given addressing
71
patchFieldDecomposer
72
(
73
const
pointPatch
& completeMeshPatch,
74
const
pointPatch
& procMeshPatch,
75
const
labelList
& directAddr
76
);
77
78
79
// Member functions
80
81
label
size
()
const
82
{
83
return
directAddressing_.
size
();
84
}
85
86
bool
direct
()
const
87
{
88
return
true
;
89
}
90
91
const
unallocLabelList
&
directAddressing
()
const
92
{
93
return
directAddressing_;
94
}
95
};
96
97
98
private
:
99
100
// Private data
101
102
//- Reference to complete mesh
103
const
pointMesh
& completeMesh_;
104
105
//- Reference to processor mesh
106
const
pointMesh
& procMesh_;
107
108
//- Reference to point addressing
109
const
labelList
& pointAddressing_;
110
111
//- Reference to boundary addressing
112
const
labelList
& boundaryAddressing_;
113
114
//- List of patch field decomposers
115
List<patchFieldDecomposer*>
patchFieldDecomposerPtrs_;
116
117
118
// Private Member Functions
119
120
//- Disallow default bitwise copy construct
121
pointFieldDecomposer
(
const
pointFieldDecomposer
&);
122
123
//- Disallow default bitwise assignment
124
void
operator=(
const
pointFieldDecomposer
&);
125
126
127
public
:
128
129
// Constructors
130
131
//- Construct from components
132
pointFieldDecomposer
133
(
134
const
pointMesh
& completeMesh,
135
const
pointMesh
& procMesh,
136
const
labelList
& pointAddressing,
137
const
labelList
& boundaryAddressing
138
);
139
140
141
// Destructor
142
143
~pointFieldDecomposer
();
144
145
146
// Member Functions
147
148
//- Decompose point field
149
template
<
class
Type>
150
tmp<GeometricField<Type, pointPatchField, pointMesh>
>
151
decomposeField
152
(
153
const
GeometricField<Type, pointPatchField, pointMesh>
&
154
)
const
;
155
156
template
<
class
GeoField>
157
void
decomposeFields
(
const
PtrList<GeoField>
&
fields
)
const
;
158
};
159
160
161
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162
163
}
// End namespace Foam
164
165
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166
167
#ifdef NoRepository
168
# include "
pointFieldDecomposerDecomposeFields.C
"
169
#endif
170
171
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
172
173
#endif
174
175
// ************************ vim: set sw=4 sts=4 et: ************************ //