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 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
12
13Description
14 Code chunk for converting area fields
15 included by foamToEnsight.
16
17\*---------------------------------------------------------------------------*/
18
19// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
20
21// Area fields (finiteArea)
22if (doFiniteArea && ensFaCasePtr && ensFaMeshPtr)
23{
24 Info<< " area field (";
25
26 writeAllAreaFields(*ensFaCasePtr, *ensFaMeshPtr, objects);
27
28 Info<< " )" << nl;
29}
31
32// ************************************************************************* //
messageStream Info
Information stream (stdout output on master, null elsewhere)
label writeAllAreaFields(ensightCase &ensCase, const ensightFaMesh &ensMesh, const IOobjectList &objects)
constexpr char nl
The newline '\n' character (0x0a)
Definition: Ostream.H:53