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-2021 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
12 
13 Description
14  Code chunk for converting volume and dimensioned fields
15  included by foamToEnsight.
16 
17 \*---------------------------------------------------------------------------*/
18 
19 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
20 
21 // Volume field data output
22 if (doBoundary || doInternal)
23 {
24  Info<< " volume field (";
25 
26  writeAllVolFields(ensCase, ensMesh, objects, nearCellValue);
27  writeAllDimFields(ensCase, ensMesh, objects);
28 
29  Info<< " )" << nl;
30 
31  // PointData
32  // - only construct pointMesh on request (it constructs edge addressing)
33  if (doPointValues)
34  {
35  Info<< " point field (";
36  writeAllPointFields(ensCase, ensMesh, objects);
37  Info<< " )" << nl;
38  }
39 }
40 
41 
42 // ************************************************************************* //
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::writeAllVolFields
label writeAllVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
Definition: writeVolFields.H:126
writeAllDimFields
writeAllDimFields(internalWriter, meshProxy, objects, true)
Foam::nl
constexpr char nl
Definition: Ostream.H:404
Foam::writeAllPointFields
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
Definition: writePointFields.H:107