1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::StandardWallInteraction
29 Wall interaction model. Three choices:
30 - rebound - optionally specify elasticity and resitution coefficients
31 - stick - particles assigined zero velocity
32 - escape - remove particle from the domain
36 StandardWallInteractionCoeffs
38 type rebound; // stick, escape
39 e 1; // optional - elasticity coeff
40 mu 0; // optional - restitution coeff
43 \*---------------------------------------------------------------------------*/
45 #ifndef StandardWallInteraction_H
46 #define StandardWallInteraction_H
48 #include "PatchInteractionModel.H"
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 /*---------------------------------------------------------------------------*\
55 Class StandardWallInteraction Declaration
56 \*---------------------------------------------------------------------------*/
58 template<class CloudType>
59 class StandardWallInteraction
61 public PatchInteractionModel<CloudType>
68 typename PatchInteractionModel<CloudType>::interactionType
71 //- Elasticity coefficient
74 //- Restitution coefficient
80 //- Runtime type information
81 TypeName("StandardWallInteraction");
86 //- Construct from dictionary
87 StandardWallInteraction(const dictionary& dict, CloudType& cloud);
91 virtual ~StandardWallInteraction();
96 //- Flag to indicate whether model activates patch interaction model
97 virtual bool active() const;
99 //- Apply velocity correction
100 // Returns true if particle remains in same cell
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 # include "StandardWallInteraction.C"
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 // ************************************************************************* //