convertAreaFields.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) 2021-2023 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 area fields
15  included by foamToEnsight.
16 
17  Possible objects to convert are given in faObjects
18 
19 \*---------------------------------------------------------------------------*/
20 
21 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
22 
23 // Area fields (finiteArea)
24 if (doFiniteArea && ensFaCasePtr && ensFaMeshPtr)
25 {
26  Info<< " area field (";
27 
28  writeAllAreaFields(*ensFaCasePtr, *ensFaMeshPtr, faObjects);
29 
30  Info<< " )" << nl;
31 }
32 
33 
34 // ************************************************************************* //
constexpr char nl
The newline &#39;\n&#39; character (0x0a)
Definition: Ostream.H:50
label writeAllAreaFields(ensightCase &ensCase, const ensightFaMesh &ensMesh, const IOobjectList &objects)
messageStream Info
Information stream (stdout output on master, null elsewhere)