unmappedPassiveParticleCloud.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 | Copyright (C) 2015 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::unmappedPassiveParticleCloud
26 
27 Description
28  passiveParticleCloud but with autoMap and writing disabled. Only used
29  for its objectRegistry to store lagrangian fields
30 
31 SourceFiles
32  unmappedPassiveParticleCloud.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef unmappedPassiveParticleCloud_H
37 #define unmappedPassiveParticleCloud_H
38 
39 #include "passiveParticleCloud.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class unmappedPassiveParticleCloud Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
53 {
54 
55 public:
56 
57  // Constructors
58 
59  //- Construct given mesh
61  (
62  const polyMesh& mesh,
63  const word& cloudName = "defaultCloud",
64  bool readFields = true
65  )
66  :
68  {}
69 
70  //- Construct from mesh, cloud name, and a list of particles
72  (
73  const polyMesh& mesh,
74  const word& cloudName,
75  const IDLList<passiveParticle>& particles
76  )
77  :
79  {}
80 
81  //- Destructor
83  {}
84 
85  //- Switch off remapping of cells of particles when
86  // mesh topology changes
87  virtual void autoMap(const mapPolyMesh&)
88  {}
89 
90  //- Switch off writing the objects
91  virtual bool writeObject
92  (
96  ) const
97  {
98  return true;
99  }
100 
101 };
102 
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 } // End namespace Foam
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #endif
111 
112 // ************************************************************************* //
Foam::unmappedPassiveParticleCloud
passiveParticleCloud but with autoMap and writing disabled. Only used for its objectRegistry to store...
Definition: unmappedPassiveParticleCloud.H:49
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::IOstream::compressionType
compressionType
Enumeration for the format of data in the stream.
Definition: IOstream.H:193
Foam::readFields
This function object reads fields from the time directories and adds them to the mesh database for fu...
Definition: readFields.H:104
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Foam::IOstream::versionNumber
Version number type.
Definition: IOstream.H:96
Foam::unmappedPassiveParticleCloud::unmappedPassiveParticleCloud
unmappedPassiveParticleCloud(const polyMesh &mesh, const word &cloudName="defaultCloud", bool readFields=true)
Construct given mesh.
Definition: unmappedPassiveParticleCloud.H:60
Foam::IDLList
Intrusive doubly-linked list.
Definition: IDLList.H:47
Foam::passiveParticleCloud::passiveParticleCloud
passiveParticleCloud(const passiveParticleCloud &)
Disallow default bitwise copy construct.
Foam::passiveParticleCloud
A Cloud of passive particles.
Definition: passiveParticleCloud.H:49
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::unmappedPassiveParticleCloud::~unmappedPassiveParticleCloud
virtual ~unmappedPassiveParticleCloud()
Destructor.
Definition: unmappedPassiveParticleCloud.H:81
passiveParticleCloud.H
Foam::unmappedPassiveParticleCloud::autoMap
virtual void autoMap(const mapPolyMesh &)
Switch off remapping of cells of particles when.
Definition: unmappedPassiveParticleCloud.H:86
cloudName
const word cloudName(propsDict.lookup("cloudName"))
Foam::mapPolyMesh
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:158
Foam::IOstream::streamFormat
streamFormat
Enumeration for the format of data in the stream.
Definition: IOstream.H:86
Foam::unmappedPassiveParticleCloud::writeObject
virtual bool writeObject(IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
Switch off writing the objects.
Definition: unmappedPassiveParticleCloud.H:91