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/>.
28 Dummy class for 'none' option - will raise an error if any functions are
29 called that require return values.
31 \*---------------------------------------------------------------------------*/
33 #ifndef NoInteraction_H
34 #define NoInteraction_H
36 #include "PatchInteractionModel.H"
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 /*---------------------------------------------------------------------------*\
43 Class NoInteraction Declaration
44 \*---------------------------------------------------------------------------*/
46 template<class CloudType>
49 public PatchInteractionModel<CloudType>
53 //- Runtime type information
59 //- Construct from dictionary
60 NoInteraction(const dictionary& dict, CloudType& cloud);
63 NoInteraction(const NoInteraction<CloudType>& pim);
65 //- Construct and return a clone
66 virtual autoPtr<PatchInteractionModel<CloudType> > clone() const
68 return autoPtr<PatchInteractionModel<CloudType> >
70 new NoInteraction<CloudType>(*this)
76 virtual ~NoInteraction();
81 //- Flag to indicate whether model activates patch interaction model
82 virtual bool active() const;
84 //- Apply velocity correction
85 // Returns true if particle remains in same cell
88 typename CloudType::parcelType& p,
91 const scalar trackFraction,
92 const tetIndices& tetIs
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 } // End namespace Foam
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 # include "NoInteraction.C"
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 // ************************************************************************* //