NoPair.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2022 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::NoPair
28 
29 Description
30  Placeholder for 'none' option
31 
32 SourceFiles
33  NoPair.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef NoPair_H
38 #define NoPair_H
39 
40 #include "PairModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 /*---------------------------------------------------------------------------*\
47  Class NoPair Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 template<class CloudType>
51 class NoPair
52 :
53  public PairModel<CloudType>
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("none");
59 
60 
61  // Constructors
62 
63  //- Construct from dictionary and cloud owner
65 
66 
67  //- Destructor
68  virtual ~NoPair() = default;
69 
70 
71  // Member Functions
72 
73  //- Whether the PairModel has a timestep limit that will
74  //- require subCycling
75  virtual bool controlsTimestep() const;
76 
77  //- For PairModels that control the timestep, calculate the
78  //- number of subCycles needed to satisfy the minimum
79  //- allowable timestep
80  virtual label nSubCycles() const;
81 
82  //- Calculate the pair interaction between parcels
83  virtual void evaluatePair
84  (
85  typename CloudType::parcelType& pA,
86  typename CloudType::parcelType& pB
87  ) const;
88 };
89 
90 
91 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
92 
93 } // End namespace Foam
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 #ifdef NoRepository
98  #include "NoPair.C"
99 #endif
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 #endif
104 
105 // ************************************************************************* //
virtual label nSubCycles() const
For PairModels that control the timestep, calculate the number of subCycles needed to satisfy the min...
Definition: NoPair.C:46
NoPair(const dictionary &dict, CloudType &cloud)
Construct from dictionary and cloud owner.
Definition: NoPair.C:27
const dictionary & dict() const
Return the dictionary.
Definition: PairModel.C:75
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:120
TypeName("none")
Runtime type information.
virtual void evaluatePair(typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const
Calculate the pair interaction between parcels.
Definition: NoPair.C:54
A cloud is a registry collection of lagrangian particles.
Definition: cloud.H:53
Templated pair interaction class.
Definition: PairCollision.H:49
Placeholder for &#39;none&#39; option.
Definition: NoPair.H:46
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:290
virtual bool controlsTimestep() const
Whether the PairModel has a timestep limit that will require subCycling.
Definition: NoPair.C:39
virtual ~NoPair()=default
Destructor.
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:67
Namespace for OpenFOAM.