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 -------------------------------------------------------------------------------
11 License
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 
27 Class
28  Foam::rawTopoChangerFvMesh
29 
30 Description
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 
36 SourceFiles
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 
49 namespace Foam
50 {
51 
52 // Forward declaration of classes
53 
54 /*---------------------------------------------------------------------------*\
55  Class rawTopoChangerFvMesh Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 :
60  public topoChangerFvMesh
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 
82 public:
83 
84  //- Runtime type information
85  TypeName("rawTopoChangerFvMesh");
86 
87 
88  // Constructors
89 
90  //- Construct from database
91  explicit rawTopoChangerFvMesh
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 // ************************************************************************* //
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:169
Foam::rawTopoChangerFvMesh::update
virtual bool update()
Update the mesh for both mesh motion and topology change.
Definition: rawTopoChangerFvMesh.C:76
Foam::bitSet
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Definition: bitSet.H:63
topoChangerFvMesh.H
rawTopoChangerFvMeshTemplates.C
bitSet.H
Foam::rawTopoChangerFvMesh
topoChangerFvMesh without any added functionality.
Definition: rawTopoChangerFvMesh.H:57
Foam::rawTopoChangerFvMesh::TypeName
TypeName("rawTopoChangerFvMesh")
Runtime type information.
fld
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Definition: gmvOutputLagrangian.H:23
Foam::GeoMesh
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Definition: GeoMesh.H:48
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::rawTopoChangerFvMesh::~rawTopoChangerFvMesh
virtual ~rawTopoChangerFvMesh()
Destructor.
Definition: rawTopoChangerFvMesh.C:70
Foam::topoChangerFvMesh
Abstract base class for a topology changing fvMesh.
Definition: topoChangerFvMesh.H:53
Foam::GeometricField
Generic GeometricField class.
Definition: areaFieldsFwd.H:53