wallDampedLift.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2015-2023 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::liftModels::wallDamped
26 
27 Description
28 
29 SourceFiles
30  wallDamped.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef wallDampedLift_H
35 #define wallDampedLift_H
36 
37 #include "dispersedLiftModel.H"
38 #include "wallDampingModel.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace liftModels
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class wallDamped Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class wallDamped
52 :
53  public dispersedLiftModel
54 {
55  // Private Data
56 
57  //- The lift model to damp
58  autoPtr<liftModel> liftModel_;
59 
60  //- The wall-damping model
61  autoPtr<wallDampingModel> wallDampingModel_;
62 
63 
64 public:
65 
66  //- Runtime type information
67  TypeName("wallDamped");
68 
69 
70  // Constructors
71 
72  //- Construct from a dictionary and an interface
74  (
75  const dictionary& dict,
76  const phaseInterface& interface
77  );
78 
79 
80  //- Destructor
81  virtual ~wallDamped();
82 
83 
84  // Member Functions
85 
86  //- Lift coefficient
87  virtual tmp<volScalarField> Cl() const;
88 
89  //- Return phase-intensive lift force
90  virtual tmp<volVectorField> Fi() const;
91 
92  //- Return lift force
93  virtual tmp<volVectorField> F() const;
94 
95  //- Return face lift force
96  virtual tmp<surfaceScalarField> Ff() const;
97 };
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 } // End namespace liftModels
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
wallDamped(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
virtual tmp< surfaceScalarField > Ff() const
Return face lift force.
virtual tmp< volVectorField > F() const
Return lift force.
virtual ~wallDamped()
Destructor.
virtual tmp< volScalarField > Cl() const
Lift coefficient.
TypeName("wallDamped")
Runtime type information.
virtual tmp< volVectorField > Fi() const
Return phase-intensive lift force.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
dictionary dict