FreeFOAM The Cross-Platform CFD Toolkit
reflectParcel.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::reflectParcel
26 
27 Description
28  The parcels are reflected back from the wall in an inelastic collision.
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #ifndef reflectParcel_H
33 #define reflectParcel_H
34 
35 #include <dieselSpray/wallModel.H>
36 
37 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 
39 namespace Foam
40 {
41 
42 /*---------------------------------------------------------------------------*\
43  Class reflectParcel Declaration
44 \*---------------------------------------------------------------------------*/
45 
47 :
48  public wallModel
49 {
50 
51 private:
52  // Private data
53 
54  const volVectorField& U_;
55 
56  dictionary coeffsDict_;
57 
58  // model constants
59 
60  //- Elasticity constant v^2_out = elasticity * v^2_in
61  scalar elasticity_;
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("reflect");
67 
68 
69  // Constructors
70 
71  //- Construct from components
73  (
74  const dictionary& dict,
75  const volVectorField& U,
76  spray& sm
77  );
78 
79 
80  // Destructor
81 
82  virtual ~reflectParcel();
83 
84 
85  // Member Functions
86 
87  //- Return true if parcel is to be kept, and false if it is to be
88  // removed
89  bool wallTreatment
90  (
91  parcel& parcel,
92  const label facei
93  ) const;
94 
95 
96 };
97 
98 
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 
101 } // End namespace Foam
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 #endif
106 
107 // ************************ vim: set sw=4 sts=4 et: ************************ //