ensightOutputVolField.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-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 InNamespace
27  Foam::ensightOutput
28 
29 Description
30  A collection of functions for writing volField content in ensight format.
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef ensightOutputVolField_H
35 #define ensightOutputVolField_H
36 
37 #include "ensightOutput.H"
38 #include "ensightFaces.H"
39 #include "ensightCells.H"
40 #include "volFields.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 // Forward Declarations
48 class ensightMesh;
49 
50 namespace ensightOutput
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Namespace ensightOutput
55 \*---------------------------------------------------------------------------*/
56 
57 //- Write volume field component-wise
58 template<class Type>
59 bool writeVolField
60 (
61  ensightFile& os,
63  const ensightMesh& ensMesh
64 );
65 
66 
67 //- Write volume field component-wise, optionally forcing interpolation
68 template<class Type>
69 bool writeVolField
70 (
71  ensightFile& os,
73  const ensightMesh& ensMesh,
74  const bool nodeValues
75 );
76 
77 //- Write point field component-wise
78 template<class Type>
79 bool writePointField
80 (
81  ensightFile& os,
83  const ensightMesh& ensMesh
84 );
85 
86 
87 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88 
89 } // End namespace ensightOutput
90 } // End namespace Foam
91 
92 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93 
94 #ifdef NoRepository
96 #endif
97 
98 #endif
99 
100 // ************************************************************************* //
volFields.H
Foam::ensightMesh
Encapsulation of volume meshes for writing in ensight format. It manages cellZones,...
Definition: ensightMesh.H:82
ensightFaces.H
ensightOutputVolFieldTemplates.C
ensightOutput.H
Foam::ensightFile
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
Definition: ensightFile.H:52
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::ensightOutput::writePointField
bool writePointField(ensightFile &os, const GeometricField< Type, pointPatchField, pointMesh > &pf, const ensightMesh &ensMesh)
Write point field component-wise.
Definition: ensightOutputVolFieldTemplates.C:201
Foam::GeometricField< Type, fvPatchField, volMesh >
Foam::ensightOutput::writeVolField
bool writeVolField(ensightFile &os, const GeometricField< Type, fvPatchField, volMesh > &vf, const ensightMesh &ensMesh)
Write volume field component-wise.
Definition: ensightOutputVolFieldTemplates.C:42
ensightCells.H