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/>.
24 \*---------------------------------------------------------------------------*/
26 #include "CloudFunctionObjectList.H"
29 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31 template<class CloudType>
32 Foam::CloudFunctionObjectList<CloudType>::CloudFunctionObjectList
37 PtrList<CloudFunctionObject<CloudType> >(),
39 dict_(dictionary::null)
43 template<class CloudType>
44 Foam::CloudFunctionObjectList<CloudType>::CloudFunctionObjectList
47 const dictionary& dict,
51 PtrList<CloudFunctionObject<CloudType> >(),
57 wordList modelNames(dict.toc());
59 Info<< "Constructing cloud functions" << endl;
61 if (modelNames.size() > 0)
63 this->setSize(modelNames.size());
67 const word& modelName = modelNames[i];
72 CloudFunctionObject<CloudType>::New
83 Info<< " none" << endl;
89 template<class CloudType>
90 Foam::CloudFunctionObjectList<CloudType>::CloudFunctionObjectList
92 const CloudFunctionObjectList& cfol
95 PtrList<CloudFunctionObject<CloudType> >(cfol),
101 // * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
103 template<class CloudType>
104 Foam::CloudFunctionObjectList<CloudType>::~CloudFunctionObjectList()
108 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
110 template<class CloudType>
111 void Foam::CloudFunctionObjectList<CloudType>::preEvolve()
115 this->operator[](i).preEvolve();
120 template<class CloudType>
121 void Foam::CloudFunctionObjectList<CloudType>::postEvolve()
125 this->operator[](i).postEvolve();
130 template<class CloudType>
131 void Foam::CloudFunctionObjectList<CloudType>::postMove
133 const typename CloudType::parcelType& p,
140 this->operator[](i).postMove(p, cellI, dt);
145 template<class CloudType>
146 void Foam::CloudFunctionObjectList<CloudType>::postPatch
148 const typename CloudType::parcelType& p,
150 const label patchFaceI
155 this->operator[](i).postPatch(p, patchI, patchFaceI);
160 template<class CloudType>
161 void Foam::CloudFunctionObjectList<CloudType>::postFace
163 const typename CloudType::parcelType& p,
169 this->operator[](i).postFace(p, faceI);
174 // ************************************************************************* //