ensightMeshI.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) 2016 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
28 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29 
31 {
32  return mesh_;
33 }
34 
35 
37 {
38  return *options_;
39 }
40 
41 
43 {
44  return options_->format();
45 }
46 
47 
49 {
50  return options_->useInternalMesh();
51 }
52 
53 
55 {
56  return options_->useBoundaryMesh();
57 }
58 
59 
61 {
62  return meshCells_;
63 }
64 
65 
67 {
68  return patchLookup_;
69 }
70 
71 
74 {
75  return boundaryPatchFaces_;
76 }
77 
78 
81 {
82  return faceZoneFaces_;
83 }
84 
85 
87 {
88  write(os.ref());
89 }
90 
91 
92 // ************************************************************************* //
Foam::ensightMesh::useInternalMesh
bool useInternalMesh() const
Using internal?
Definition: ensightMeshI.H:48
Foam::ensightMesh::faceZoneFaces
const HashTable< ensightFaces > & faceZoneFaces() const
Face elements per selected faceZone.
Definition: ensightMeshI.H:80
Foam::ensightMesh::mesh
const fvMesh & mesh() const
Reference to the underlying fvMesh.
Definition: ensightMeshI.H:30
Foam::ensightMesh::useBoundaryMesh
bool useBoundaryMesh() const
Using boundary?
Definition: ensightMeshI.H:54
Foam::ensightMesh::format
IOstream::streamFormat format() const
Ascii/Binary file output.
Definition: ensightMeshI.H:42
Foam::Map< Foam::word >
Foam::ensightCells
Sorting/classification of cells (3D) into corresponding ensight element types.
Definition: ensightCells.H:53
Foam::IOstreamOption::streamFormat
streamFormat
Data format (ascii | binary)
Definition: IOstreamOption.H:64
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:84
Foam::ensightMesh::boundaryPatchFaces
const HashTable< ensightFaces > & boundaryPatchFaces() const
Face elements per selected patch.
Definition: ensightMeshI.H:73
Foam::HashTable< Foam::ensightFaces >
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::ensightMesh::patches
const Map< word > & patches() const
The list of patches to be output.
Definition: ensightMeshI.H:66
Foam::ensightMesh::options
Configuration options for the ensightMesh.
Definition: ensightMesh.H:394
Foam::vtk::write
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Definition: foamVtkOutputTemplates.C:35
Foam::ensightMesh::write
void write(autoPtr< ensightGeoFile > &os) const
Write to file.
Definition: ensightMeshI.H:86
Foam::ensightMesh::option
const ensightMesh::options & option() const
Reference to the writer/mesh options.
Definition: ensightMeshI.H:36
Foam::ensightMesh::meshCells
const ensightCells & meshCells() const
The volume cells (internalMesh)
Definition: ensightMeshI.H:60
Foam::autoPtr::ref
T & ref()
Return reference to the managed object without nullptr checking.
Definition: autoPtrI.H:128