DAFoam
v3.0.6
Discrete Adjoint with OpenFOAM
dafoam
src
adjoint
DACheckMesh
checkTools.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
3
DAFoam : Discrete Adjoint with OpenFOAM
4
Version : v3
5
6
This file is modified from OpenFOAM's source code
7
applications/utilities/mesh/manipulation/checkMesh/checkTools.H
8
9
OpenFOAM: The Open Source CFD Toolbox
10
11
Copyright (C): 2011-2016 OpenFOAM Foundation
12
13
OpenFOAM License:
14
15
OpenFOAM is free software: you can redistribute it and/or modify it
16
under the terms of the GNU General Public License as published by
17
the Free Software Foundation, either version 3 of the License, or
18
(at your option) any later version.
19
20
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
21
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23
for more details.
24
25
You should have received a copy of the GNU General Public License
26
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
27
28
\*---------------------------------------------------------------------------*/
29
30
#include "scalar.H"
31
#include "indirectPrimitivePatch.H"
32
#include "writer.H"
33
34
namespace
Foam
35
{
36
class
polyMesh;
37
class
surfaceWriter;
38
class
pointSet;
39
class
faceSet;
40
class
cellSet;
41
class
fileName;
42
class
polyMesh;
43
44
//- Generate merged surface on master and write. Needs input patch
45
// to be of mesh faces.
46
void
mergeAndWrite
(
47
const
polyMesh&
mesh
,
48
const
surfaceWriter& writer,
49
const
word& name,
50
const
indirectPrimitivePatch& setPatch,
51
const
fileName& outputDir);
52
53
//- Write vtk representation of (assembled) faceSet to surface file in
54
// postProcessing/ directory
55
void
mergeAndWrite
(
const
surfaceWriter&,
const
faceSet&);
56
57
//- Write vtk representation of (assembled) cellSet to surface file in
58
// postProcessing/ directory
59
void
mergeAndWrite
(
const
surfaceWriter&,
const
cellSet&);
60
61
//- Write vtk representation of (assembled) pointSet to 'set' file in
62
// postProcessing/ directory
63
void
mergeAndWrite
(
const
writer<scalar>&,
const
pointSet&);
64
}
65
66
// ************************************************************************* //
Foam::mergeAndWrite
void mergeAndWrite(const polyMesh &mesh, const surfaceWriter &writer, const word &name, const indirectPrimitivePatch &setPatch, const fileName &outputDir)
Definition:
checkTools.C:52
mesh
fvMesh & mesh
Definition:
createRefsHeatTransfer.H:4
Foam
Definition:
multiFreqScalarFvPatchField.C:144
Generated by
1.8.17