OpenFOAM: API Guide
v2006
The open source CFD toolbox
convertVolumeFields.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) 2018-2020 OpenCFD 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
Description
27
Code chunk for converting volume and dimensioned fields
28
included by foamToEnsight.
29
30
\*---------------------------------------------------------------------------*/
31
32
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
33
34
// Cell field data output
35
{
36
Info
<<
"Write volume field ("
;
37
38
writeAllVolFields
(ensCase, ensMesh, objects, nearCellValue);
39
writeAllDimFields
(ensCase, ensMesh, objects);
40
41
Info
<<
" )"
<<
nl
;
42
43
// PointData
44
// - only construct pointMesh on request (it constructs edge addressing)
45
if
(doPointValues)
46
{
47
Info
<<
"Write point field ("
;
48
writeAllPointFields
(ensCase, ensMesh, objects);
49
Info
<<
" )"
<<
nl
;
50
}
51
}
52
53
54
// ************************************************************************* //
writeAllDimFields
writeAllDimFields(ensCase, ensMesh, objects)
writeAllVolFields
writeAllVolFields(ensCase, ensMesh, objects, nearCellValue)
Foam::Info
messageStream Info
Information stream (uses stdout - output is on the master only)
Foam::nl
constexpr char nl
Definition:
Ostream.H:385
Foam::writeAllPointFields
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
Definition:
writePointFields.H:115
applications
utilities
postProcessing
dataConversion
foamToEnsight
convertVolumeFields.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.