/*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License This file is part of OpenFOAM. OpenFOAM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenFOAM. If not, see . \*---------------------------------------------------------------------------*/ #include "CloudFunctionObjectList.H" #include "entry.H" // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template Foam::CloudFunctionObjectList::CloudFunctionObjectList ( CloudType& owner ) : PtrList >(), owner_(owner), dict_(dictionary::null) {} template Foam::CloudFunctionObjectList::CloudFunctionObjectList ( CloudType& owner, const dictionary& dict, const bool readFields ) : PtrList >(), owner_(owner), dict_(dict) { if (readFields) { wordList modelNames(dict.toc()); Info<< "Constructing cloud functions" << endl; if (modelNames.size() > 0) { this->setSize(modelNames.size()); forAll(modelNames, i) { const word& modelName = modelNames[i]; this->set ( i, CloudFunctionObject::New ( dict, owner, modelName ) ); } } else { Info<< " none" << endl; } } } template Foam::CloudFunctionObjectList::CloudFunctionObjectList ( const CloudFunctionObjectList& cfol ) : PtrList >(cfol), owner_(cfol.owner_), dict_(cfol.dict_) {} // * * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * // template Foam::CloudFunctionObjectList::~CloudFunctionObjectList() {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // template void Foam::CloudFunctionObjectList::preEvolve() { forAll(*this, i) { this->operator[](i).preEvolve(); } } template void Foam::CloudFunctionObjectList::postEvolve() { forAll(*this, i) { this->operator[](i).postEvolve(); } } template void Foam::CloudFunctionObjectList::postMove ( const typename CloudType::parcelType& p, const label cellI, const scalar dt ) { forAll(*this, i) { this->operator[](i).postMove(p, cellI, dt); } } template void Foam::CloudFunctionObjectList::postPatch ( const typename CloudType::parcelType& p, const label patchI ) { forAll(*this, i) { this->operator[](i).postPatch(p, patchI); } } template void Foam::CloudFunctionObjectList::postFace ( const typename CloudType::parcelType& p ) { forAll(*this, i) { this->operator[](i).postFace(p); } } // ************************************************************************* //