rawTopoChangerFvMesh.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) 2011-2016 OpenFOAM Foundation
9 Copyright (C) 2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::rawTopoChangerFvMesh
29
30Description
31 topoChangerFvMesh without any added functionality.
32
33 Note: run without FOAM_SETNAN. Temporary has unitialised patch
34 data when faces get created out of nothing.
35
36SourceFiles
37 rawTopoChangerFvMesh.C
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef rawTopoChangerFvMesh_H
42#define rawTopoChangerFvMesh_H
43
44#include "topoChangerFvMesh.H"
45#include "bitSet.H"
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49namespace Foam
50{
51
52// Forward declaration of classes
53
54/*---------------------------------------------------------------------------*\
55 Class rawTopoChangerFvMesh Declaration
56\*---------------------------------------------------------------------------*/
59:
61{
62 // Private Member Functions
63
64 //- Set unmapped values
65 template<class Type, template<class> class PatchField, class GeoMesh>
66 static void setUnmappedValues
67 (
69 const bitSet& mappedFace,
71 );
72
73 template<class Type, template<class> class PatchField, class GeoMesh>
74 void zeroUnmappedValues(const bitSet& mappedFace) const;
75
76 //- No copy construct
78
79 //- No copy assignment
80 void operator=(const rawTopoChangerFvMesh&) = delete;
81
82public:
83
84 //- Runtime type information
85 TypeName("rawTopoChangerFvMesh");
86
87
88 // Constructors
89
90 //- Construct from database
92 (
93 const IOobject& io,
94 const bool doInit=true
95 );
96
97 //- Destructor
98 virtual ~rawTopoChangerFvMesh();
99
100
101 // Member Functions
102
103 //- Update the mesh for both mesh motion and topology change
104 virtual bool update();
105};
106
107
108// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109
110} // End namespace Foam
111
112// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113
114#ifdef NoRepository
116#endif
117
118// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119
120#endif
121
122// ************************************************************************* //
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Definition: GeoMesh.H:49
Generic GeometricField class.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Definition: bitSet.H:66
topoChangerFvMesh without any added functionality.
virtual ~rawTopoChangerFvMesh()
Destructor.
virtual bool update()
Update the mesh for both mesh motion and topology change.
TypeName("rawTopoChangerFvMesh")
Runtime type information.
Abstract base class for a topology changing fvMesh.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73