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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::NoPair
28
29Description
30 Placeholder for 'none' option
31
32SourceFiles
33 NoPair.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef NoPair_H
38#define NoPair_H
39
40#include "PairModel.H"
41
42// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44namespace Foam
45{
46/*---------------------------------------------------------------------------*\
47 Class NoPair Declaration
48\*---------------------------------------------------------------------------*/
49
50template<class CloudType>
51class NoPair
52:
53 public PairModel<CloudType>
54{
55public:
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// ************************************************************************* //
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:75
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:220
Placeholder for 'none' option.
Definition: NoPair.H:53
virtual label nSubCycles() const
Definition: NoPair.C:53
TypeName("none")
Runtime type information.
virtual ~NoPair()=default
Destructor.
virtual void evaluatePair(typename CloudType::parcelType &pA, typename CloudType::parcelType &pB) const
Calculate the pair interaction between parcels.
Definition: NoPair.C:61
virtual bool controlsTimestep() const
Definition: NoPair.C:46
Templated pair interaction class.
Definition: PairModel.H:56
const dictionary & dict() const
Return the dictionary.
Definition: PairModel.C:82
A cloud is a registry collection of lagrangian particles.
Definition: cloud.H:60
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73