force.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) 2011-2014 OpenFOAM Foundation
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::regionModels::surfaceFilmModels::force
26 
27 Description
28  Base class for film (stress-based) force models
29 
30 SourceFiles
31  force.C
32  forceNew.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef force_H
37 #define force_H
38 
39 #include "filmSubModelBase.H"
40 #include "runTimeSelectionTables.H"
41 #include "fvMatrices.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace regionModels
48 {
49 namespace surfaceFilmModels
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class force Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class force
57 :
58  public filmSubModelBase
59 {
60 private:
61 
62  // Private Member Functions
63 
64  //- Disallow default bitwise copy construct
65  force(const force&);
66 
67  //- Disallow default bitwise assignment
68  void operator=(const force&);
69 
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("force");
75 
76 
77  // Declare runtime constructor selection table
78 
80  (
81  autoPtr,
82  force,
83  dictionary,
84  (
86  const dictionary& dict
87  ),
88  (owner, dict)
89  );
90 
91  // Constructors
92 
93  //- Construct null
94  force(surfaceFilmModel& owner);
95 
96  //- Construct from type name, dictionary and surface film model
97  force
98  (
99  const word& modelType,
100  surfaceFilmModel& owner,
101  const dictionary& dict
102  );
103 
104 
105  // Selectors
106 
107  //- Return a reference to the selected force model
108  static autoPtr<force> New
109  (
110  surfaceFilmModel& owner,
111  const dictionary& dict,
112  const word& modelType
113  );
114 
115 
116  //- Destructor
117  virtual ~force();
118 
119 
120  // Member Functions
121 
122  // Evolution
123 
124  //- Correct
126 };
127 
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 } // End namespace surfaceFilmModels
132 } // End namespace regionModels
133 } // End namespace Foam
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #endif
138 
139 // ************************************************************************* //
U
Definition: pEqn.H:83
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:110
Base class for film (stress-based) force models.
Definition: force.H:55
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
const word & modelType() const
Return const access to the sub-model type.
Definition: subModelBase.C:122
A class for handling words, derived from string.
Definition: word.H:59
TypeName("force")
Runtime type information.
static autoPtr< force > New(surfaceFilmModel &owner, const dictionary &dict, const word &modelType)
Return a reference to the selected force model.
Definition: forceNew.C:40
declareRunTimeSelectionTable(autoPtr, force, dictionary,(surfaceFilmModel &owner, const dictionary &dict),(owner, dict))
virtual tmp< fvVectorMatrix > correct(volVectorField &U)=0
Correct.
const surfaceFilmModel & owner() const
Return const access to the owner surface film model.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:53
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.