Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::unmappedPassivePositionParticleCloud
29
30Description
31 passivePositionParticleCloud but with autoMap and writing disabled.
32 Only used for its objectRegistry to store lagrangian fields
33
34\*---------------------------------------------------------------------------*/
35
36#ifndef Foam_unmappedPassivePositionParticleCloud_H
37#define Foam_unmappedPassivePositionParticleCloud_H
38
40
41// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42
43namespace Foam
44{
45
46/*---------------------------------------------------------------------------*\
47 Class unmappedPassiveParticleCloud Declaration
48\*---------------------------------------------------------------------------*/
49
51:
53{
54public:
55
56 // Constructors
57
58 //- Read construct
60 (
61 const polyMesh& mesh,
63 bool readFields = true
64 )
65 :
67 {}
68
69 //- Construct without particles
71 (
72 const polyMesh& mesh,
75 )
76 :
78 {}
79
80
81 //- Destructor
82 virtual ~unmappedPassivePositionParticleCloud() = default;
83
84
85 // Member Functions
86
87 //- Switch off remapping of cells of particles when
88 //- mesh topology changes
89 virtual void autoMap(const mapPolyMesh&)
90 {}
91
92 //- Disable writing objects
93 virtual bool writeObject(IOstreamOption, const bool writeOnProc) const
94 {
95 return true;
96 }
97};
98
99
100// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101
102} // End namespace Foam
103
104// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105
106#endif
107
108// ************************************************************************* //
const word cloudName(propsDict.get< word >("cloud"))
A simple container for options an IOstream can normally have.
static word defaultName
The default cloud name: defaultCloud.
Definition cloud.H:84
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
passivePositionParticleCloud(const passivePositionParticleCloud &)=delete
No copy construct.
Mesh consisting of general polyhedral cells.
Definition polyMesh.H:79
virtual bool writeObject(IOstreamOption, const bool writeOnProc) const
Disable writing objects.
virtual void autoMap(const mapPolyMesh &)
Switch off remapping of cells of particles when mesh topology changes.
virtual ~unmappedPassivePositionParticleCloud()=default
Destructor.
unmappedPassivePositionParticleCloud(const polyMesh &mesh, const word &cloudName=cloud::defaultName, bool readFields=true)
Read construct.
unmappedPassivePositionParticleCloud(const polyMesh &mesh, Foam::zero, const word &cloudName=cloud::defaultName)
Construct without particles.
A class for handling words, derived from Foam::string.
Definition word.H:66
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
Definition zero.H:58
dynamicFvMesh & mesh
Namespace for OpenFOAM.
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.