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-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::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 unmappedPassivePositionParticleCloud_H
40 #define unmappedPassivePositionParticleCloud_H
41 
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class unmappedPassiveParticleCloud Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
56 {
57 
58 public:
59 
60  // Constructors
61 
62  //- Construct given mesh
64  (
65  const polyMesh& mesh,
67  bool readFields = true
68  )
69  :
71  {}
72 
73  //- Construct from mesh, cloud name, and a list of particles
75  (
76  const polyMesh& mesh,
77  const word& cloudName,
78  const IDLList<passivePositionParticle>& particles
79  )
80  :
82  {}
83 
84 
85  //- Destructor
86  virtual ~unmappedPassivePositionParticleCloud() = default;
87 
88 
89  // Member Functions
90 
91  //- Switch off remapping of cells of particles when
92  // mesh topology changes
93  virtual void autoMap(const mapPolyMesh&)
94  {}
95 
96  //- Disable writing objects
97  virtual bool writeObject(IOstreamOption, const bool valid) const
98  {
99  return true;
100  }
101 };
102 
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 } // End namespace Foam
107 
108 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
109 
110 #endif
111 
112 // ************************************************************************* //
cloudName
const word cloudName(propsDict.get< word >("cloud"))
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::unmappedPassivePositionParticleCloud
passivePositionParticleCloud but with autoMap and writing disabled. Only used for its objectRegistry ...
Definition: unmappedPassivePositionParticleCloud.H:52
Foam::unmappedPassivePositionParticleCloud::writeObject
virtual bool writeObject(IOstreamOption, const bool valid) const
Disable writing objects.
Definition: unmappedPassivePositionParticleCloud.H:96
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::IOstreamOption
The IOstreamOption is a simple container for options an IOstream can normally have.
Definition: IOstreamOption.H:63
passivePositionParticleCloud.H
Foam::ILList
Template class for intrusive linked lists.
Definition: ILList.H:52
Foam::unmappedPassivePositionParticleCloud::~unmappedPassivePositionParticleCloud
virtual ~unmappedPassivePositionParticleCloud()=default
Destructor.
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::cloud::defaultName
static word defaultName
The default cloud name: defaultCloud.
Definition: cloud.H:90
Foam::readFields
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
Definition: ReadFieldsTemplates.C:312
Foam::passivePositionParticleCloud
A Cloud of passive position particles.
Definition: passivePositionParticleCloud.H:51
Foam::mapPolyMesh
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Definition: mapPolyMesh.H:161
Foam::unmappedPassivePositionParticleCloud::unmappedPassivePositionParticleCloud
unmappedPassivePositionParticleCloud(const polyMesh &mesh, const word &cloudName=cloud::defaultName, bool readFields=true)
Construct given mesh.
Definition: unmappedPassivePositionParticleCloud.H:63
Foam::unmappedPassivePositionParticleCloud::autoMap
virtual void autoMap(const mapPolyMesh &)
Switch off remapping of cells of particles when.
Definition: unmappedPassivePositionParticleCloud.H:92