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 Foam_rawTopoChangerFvMesh_H
42 #define Foam_rawTopoChangerFvMesh_H
43 
44 #include "topoChangerFvMesh.H"
45 #include "bitSet.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class rawTopoChangerFvMesh Declaration
54 \*---------------------------------------------------------------------------*/
55 
57 :
58  public topoChangerFvMesh
59 {
60  // Private Member Functions
61 
62  //- Set unmapped values
63  template<class Type, template<class> class PatchField, class GeoMesh>
64  static void setUnmappedValues
65  (
67  const bitSet& mappedFace,
69  );
70 
71  template<class Type, template<class> class PatchField, class GeoMesh>
72  void zeroUnmappedValues(const bitSet& mappedFace) const;
73 
74  //- No copy construct
76 
77  //- No copy assignment
78  void operator=(const rawTopoChangerFvMesh&) = delete;
79 
80 public:
81 
82  //- Runtime type information
83  TypeName("rawTopoChangerFvMesh");
84 
85 
86  // Constructors
87 
88  //- Construct from database
89  explicit rawTopoChangerFvMesh
90  (
91  const IOobject& io,
92  const bool doInit=true
93  );
94 
95 
96  //- Destructor
97  virtual ~rawTopoChangerFvMesh() = default;
98 
99 
100  // Member Functions
101 
102  //- Update the mesh for both mesh motion and topology change
103  virtual bool update();
104 };
105 
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #ifdef NoRepository
115 #endif
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
Generic GeometricField class.
TypeName("rawTopoChangerFvMesh")
Runtime type information.
Abstract base class for a topology changing fvMesh.
virtual bool update()
Update the mesh for both mesh motion and topology change.
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))
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Definition: bitSet.H:59
virtual ~rawTopoChangerFvMesh()=default
Destructor.
topoChangerFvMesh without any added functionality.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Definition: GeoMesh.H:42
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition: IOobject.H:180
Namespace for OpenFOAM.