ensightField.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) 2011-2015 OpenFOAM Foundation
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 InApplication
25  foamToEnsight
26 
27 Description
28 
29 SourceFiles
30  ensightField.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef ensightField_H
35 #define ensightField_H
36 
37 #include "ensightMesh.H"
38 #include "fvMeshSubset.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 //- Wrapper to get hold of the field or the subsetted field
43 template<class Type>
46 (
47  const Foam::fvMeshSubset&,
49 );
50 
51 
52 //- Wrapper to convert dimensionedInternalField to volField
53 template<class Type>
56 (
57  const Foam::fvMeshSubset&,
58  const typename Foam::GeometricField
59  <
60  Type,
63  >::DimensionedInternalField& df
64 );
65 
66 
67 template<class Type>
68 void ensightField
69 (
71  const Foam::ensightMesh& eMesh,
72  const Foam::fileName& postProcPath,
73  const Foam::word& prepend,
74  const Foam::label timeIndex,
75  const bool binary,
76  const bool nodeValues,
77  Foam::Ostream& ensightCaseFile
78 );
79 
80 
81 template<class Type>
82 void writePatchField
83 (
84  const Foam::word& fieldName,
85  const Foam::Field<Type>& pf,
86  const Foam::word& patchName,
87  const Foam::ensightMesh& eMesh,
88  const Foam::fileName& postProcPath,
89  const Foam::word& prepend,
90  const Foam::label timeIndex,
91  Foam::Ostream& ensightCaseFile
92 );
93 
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 #ifdef NoRepository
98  #include "ensightField.C"
99 #endif
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #endif
104 
105 // ************************************************************************* //
Foam::fvPatchField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:65
Foam::ensightMesh
Definition: ensightMesh.H:62
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::fileName
A class for handling file names.
Definition: fileName.H:69
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::fvMeshSubset
Post-processing mesh subset tool. Given the original mesh and the list of selected cells,...
Definition: fvMeshSubset.H:73
fvMeshSubset.H
Foam::volMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: volMesh.H:47
ensightField.C
ensightMesh.H
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Foam::Field< Type >
writePatchField
void writePatchField(const Foam::word &fieldName, const Foam::Field< Type > &pf, const Foam::word &patchName, const Foam::ensightMesh &eMesh, const Foam::fileName &postProcPath, const Foam::word &prepend, const Foam::label timeIndex, Foam::Ostream &ensightCaseFile)
timeIndex
label timeIndex
Definition: getTimeIndex.H:4
ensightField
void ensightField(const Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > &vf, const Foam::ensightMesh &eMesh, const Foam::fileName &postProcPath, const Foam::word &prepend, const Foam::label timeIndex, const bool binary, const bool nodeValues, Foam::Ostream &ensightCaseFile)
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh >
volField
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > volField(const Foam::fvMeshSubset &, const Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > &vf)
Wrapper to get hold of the field or the subsetted field.