BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / lagrangian / intermediate / submodels / Kinematic / CollisionModel / NoCollision / NoCollision.H
blobb31c4b9f6065df5fc58279e870afb36f260a3162
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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 Class
25     Foam::NoCollision
27 Description
28     Place holder for 'none' option
30 SourceFiles
31     NoCollision.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef NoCollision_H
36 #define NoCollision_H
38 #include "CollisionModel.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46                         Class NoCollision Declaration
47 \*---------------------------------------------------------------------------*/
49 template<class CloudType>
50 class NoCollision
52     public CollisionModel<CloudType>
55 public:
57     //- Runtime type information
58     TypeName("none");
61     // Constructors
63         //- Construct from components
64         NoCollision(const dictionary& dict, CloudType& owner);
66         //- Construct copy
67         NoCollision(NoCollision<CloudType>& cm);
69         //- Construct and return a clone
70         virtual autoPtr<CollisionModel<CloudType> > clone()
71         {
72             return autoPtr<CollisionModel<CloudType> >
73             (
74                 new NoCollision<CloudType>(*this)
75             );
76         }
79     //- Destructor
80     virtual ~NoCollision();
83     // Member Functions
85         //- Return the number of times to subcycle the current
86         //  timestep to meet the criteria of the collision model.  For
87         //  this model this will always be 1.
88         virtual label nSubCycles() const;
90         //- Flag to indicate whether model activates collision model
91         virtual bool active() const;
93         //- Indicates whether model determines wall collisions or not,
94         //  used to determine what value to use for wallImpactDistance
95         virtual bool controlsWallInteraction() const;
97         // Collision function
98         virtual void collide();
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 } // End namespace Foam
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 #ifdef NoRepository
109 #   include "NoCollision.C"
110 #endif
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 #endif
116 // ************************************************************************* //