unmappedPassivePositionParticleCloud.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) 2015 OpenFOAM Foundation
9  Copyright (C) 2019-2023 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::unmappedPassivePositionParticleCloud
29 
30 Description
31  passivePositionParticleCloud but with autoMap and writing disabled.
32  Only used for its objectRegistry to store lagrangian fields
33 
34 SourceFiles
35  unmappedPassivePositionParticleCloud.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef Foam_unmappedPassivePositionParticleCloud_H
40 #define Foam_unmappedPassivePositionParticleCloud_H
41 
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class unmappedPassiveParticleCloud Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
56 {
57 public:
58 
59  // Constructors
60 
61  //- Read construct
63  (
64  const polyMesh& mesh,
66  bool readFields = true
67  )
68  :
70  {}
71 
72  //- Construct without particles
74  (
75  const polyMesh& mesh,
76  const Foam::zero,
78  )
79  :
81  {}
82 
83 
84  //- Destructor
85  virtual ~unmappedPassivePositionParticleCloud() = default;
86 
87 
88  // Member Functions
89 
90  //- Switch off remapping of cells of particles when
91  //- mesh topology changes
92  virtual void autoMap(const mapPolyMesh&)
93  {}
94 
95  //- Disable writing objects
96  virtual bool writeObject(IOstreamOption, const bool writeOnProc) const
97  {
98  return true;
99  }
100 };
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #endif
110 
111 // ************************************************************************* //
static word defaultName
The default cloud name: defaultCloud.
Definition: cloud.H:84
virtual void autoMap(const mapPolyMesh &)
Switch off remapping of cells of particles when mesh topology changes.
A simple container for options an IOstream can normally have.
passivePositionParticleCloud but with autoMap and writing disabled. Only used for its objectRegistry ...
dynamicFvMesh & mesh
unmappedPassivePositionParticleCloud(const polyMesh &mesh, const word &cloudName=cloud::defaultName, bool readFields=true)
Read construct.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const NameMatchPredicate &selectedFields, DynamicList< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type and store on the objectRegistry.
const word cloudName(propsDict.get< word >("cloud"))
A class for handling words, derived from Foam::string.
Definition: word.H:63
virtual bool writeObject(IOstreamOption, const bool writeOnProc) const
Disable writing objects.
virtual ~unmappedPassivePositionParticleCloud()=default
Destructor.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Definition: zero.H:57
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Namespace for OpenFOAM.