Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
12
13Description
14 Code chunk for converting volume and dimensioned fields
15 included by foamToEnsight.
16
17\*---------------------------------------------------------------------------*/
18
19// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
20
21// Volume field data output
22if (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// ************************************************************************* //
writeAllDimFields(internalWriter, meshProxy, objects, true, cacheFieldsPtr.get())