1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
25 Foam::CloudFunctionObjectList
28 List of cloud function objects
31 CloudFunctionObjectListI.H
32 CloudFunctionObjectList.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef CloudFunctionObjectList_H
37 #define CloudFunctionObjectList_H
40 #include "CloudFunctionObject.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class CloudFunctionObjectList Declaration
49 \*---------------------------------------------------------------------------*/
51 template<class CloudType>
52 class CloudFunctionObjectList
54 public PtrList<CloudFunctionObject<CloudType> >
60 //- Reference to the owner cloud
61 const CloudType& owner_;
64 const dictionary dict_;
72 CloudFunctionObjectList(CloudType& owner);
74 //- Construct from mesh
75 CloudFunctionObjectList
78 const dictionary& dict,
83 CloudFunctionObjectList(const CloudFunctionObjectList& ppml);
87 virtual ~CloudFunctionObjectList();
94 //- Return const access to the cloud owner
95 inline const CloudType& owner() const;
97 //- Return refernce to the cloud owner
98 inline CloudType& owner();
100 //- Return the forces dictionary
101 inline const dictionary& dict() const;
107 virtual void preEvolve();
110 virtual void postEvolve();
113 virtual void postMove
115 const typename CloudType::parcelType& p,
121 virtual void postPatch
123 const typename CloudType::parcelType& p,
125 const label patchFaceI
129 virtual void postFace
131 const typename CloudType::parcelType& p,
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 } // End namespace Foam
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 #include "CloudFunctionObjectListI.H"
146 #include "CloudFunctionObjectList.C"
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 // ************************************************************************* //