OpenFOAM: API Guide
v2012
The open source CFD toolbox
processorFaMeshes.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 | www.openfoam.com
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
Copyright (C) 2016-2017 Wikki Ltd
9
-------------------------------------------------------------------------------
10
License
11
This file is part of OpenFOAM.
12
13
OpenFOAM is free software: you can redistribute it and/or modify it
14
under the terms of the GNU General Public License as published by
15
the Free Software Foundation, either version 3 of the License, or
16
(at your option) any later version.
17
18
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
for more details.
22
23
You should have received a copy of the GNU General Public License
24
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26
Class
27
Foam::processorFaMeshes
28
29
Description
30
Container for processor mesh addressing.
31
32
Author
33
Zeljko Tukovic, FSB Zagreb
34
35
SourceFiles
36
processorFaMeshes.C
37
38
\*---------------------------------------------------------------------------*/
39
40
#ifndef processorFaMeshes_H
41
#define processorFaMeshes_H
42
43
#include "
PtrList.H
"
44
#include "
fvMesh.H
"
45
#include "
faMesh.H
"
46
#include "
IOobjectList.H
"
47
#include "
labelIOList.H
"
48
49
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50
51
namespace
Foam
52
{
53
54
/*---------------------------------------------------------------------------*\
55
Class processorFaMeshes Declaration
56
\*---------------------------------------------------------------------------*/
57
58
class
processorFaMeshes
59
{
60
// Private data
61
62
//- List of processor finite volume meshes
63
const
PtrList<fvMesh>
& fvMeshes_;
64
65
//- List of processor finite area meshes
66
PtrList<faMesh>
meshes_;
67
68
//- List of processor point addressing lists
69
PtrList<labelIOList>
pointProcAddressing_;
70
71
//- List of processor face addressing lists
72
PtrList<labelIOList>
edgeProcAddressing_;
73
74
//- List of processor cell addressing lists
75
PtrList<labelIOList>
faceProcAddressing_;
76
77
//- List of processor boundary addressing lists
78
PtrList<labelIOList>
boundaryProcAddressing_;
79
80
81
// Private Member Functions
82
83
//- Read all meshes
84
void
read();
85
86
//- No copy construct
87
processorFaMeshes
(
const
processorFaMeshes
&) =
delete
;
88
89
//- No copy assignment
90
void
operator=(
const
processorFaMeshes
&) =
delete
;
91
92
93
public
:
94
95
// Constructors
96
97
//- Construct from components
98
processorFaMeshes
(
const
PtrList<fvMesh>
& processorFvMeshes);
99
100
101
// Member Functions
102
103
//- Update the meshes based on the mesh files saved in
104
// time directories
105
// fvMesh::readUpdateState readUpdate();
106
107
//- Reconstruct point position after motion in parallel
108
// void reconstructPoints(faMesh& mesh);
109
110
PtrList<faMesh>
&
meshes
()
111
{
112
return
meshes_;
113
}
114
const
PtrList<labelIOList>
&
pointProcAddressing
()
const
115
{
116
return
pointProcAddressing_;
117
}
118
PtrList<labelIOList>
&
edgeProcAddressing
()
119
{
120
return
edgeProcAddressing_;
121
}
122
const
PtrList<labelIOList>
&
faceProcAddressing
()
const
123
{
124
return
faceProcAddressing_;
125
}
126
const
PtrList<labelIOList>
&
boundaryProcAddressing
()
const
127
{
128
return
boundaryProcAddressing_;
129
}
130
};
131
132
133
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134
135
}
// End namespace Foam
136
137
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138
139
#endif
140
141
// ************************************************************************* //
Foam::processorFaMeshes::meshes
PtrList< faMesh > & meshes()
Update the meshes based on the mesh files saved in.
Definition:
processorFaMeshes.H:109
Foam::processorFaMeshes::pointProcAddressing
const PtrList< labelIOList > & pointProcAddressing() const
Definition:
processorFaMeshes.H:113
IOobjectList.H
faMesh.H
Foam::PtrList
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Definition:
List.H:62
Foam::processorFaMeshes
Container for processor mesh addressing.
Definition:
processorFaMeshes.H:57
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
labelIOList.H
Foam::processorFaMeshes::boundaryProcAddressing
const PtrList< labelIOList > & boundaryProcAddressing() const
Definition:
processorFaMeshes.H:125
PtrList.H
Foam::processorFaMeshes::faceProcAddressing
const PtrList< labelIOList > & faceProcAddressing() const
Definition:
processorFaMeshes.H:121
Foam::processorFaMeshes::edgeProcAddressing
PtrList< labelIOList > & edgeProcAddressing()
Definition:
processorFaMeshes.H:117
applications
utilities
parallelProcessing
reconstructPar
processorFaMeshes.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.