immersedBoundaryForces.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | foam-extend: Open Source CFD
4  \\ / O peration | Version: 3.2
5  \\ / A nd | Web: http://www.foam-extend.org
6  \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9  This file is part of foam-extend.
10 
11  foam-extend is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by the
13  Free Software Foundation, either version 3 of the License, or (at your
14  option) any later version.
15 
16  foam-extend is distributed in the hope that it will be useful, but
17  WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::immersedBoundaryForces
26 
27 Description
28  Calculates the forces and moments by integrating the pressure and
29  skin-friction forces over a given list of immersed boundary patches.
30 
31  Member function calcForcesMoment() calculates and returns the forces and
32  moments on immersed boundary patches.
33 
34 Author
35  Hrvoje Jasak. All rights reserved.
36 
37 SourceFiles
38  immersedBoundaryForces.C
39  IOimmersedBoundaryForces.H
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef immersedBoundaryForces_H
44 #define immersedBoundaryForces_H
45 
46 #include "forces.H"
47 #include "fvPatchFields.H"
48 #include "volFieldsFwd.H"
49 #include "HashSet.H"
50 #include "Tuple2.H"
51 #include "OFstream.H"
52 #include "Switch.H"
53 #include "pointFieldFwd.H"
54 
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 
57 namespace Foam
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class immersedBoundaryForces Declaration
62 \*---------------------------------------------------------------------------*/
63 
65 :
66  public forces
67 {
68 public:
69 
70  //- Runtime type information
71  TypeName("immersedBoundaryForces");
72 
73 
74  // Constructors
75 
76  //- Construct for given objectRegistry and dictionary.
77  // Allow the possibility to load fields from files
79  (
80  const word& name,
81  const objectRegistry&,
82  const dictionary&,
83  const bool loadFromFiles = false
84  );
85 
86 
87  //- Destructor
88  virtual ~immersedBoundaryForces();
89 
90 
91  // Member Functions
92 
93  //- Calculate and return forces and moment
94  virtual forcesMoments calcForcesMoment() const;
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
volFieldsFwd.H
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::immersedBoundaryForces::~immersedBoundaryForces
virtual ~immersedBoundaryForces()
Destructor.
Definition: immersedBoundaryForces.C:66
Tuple2.H
Foam::immersedBoundaryForces::calcForcesMoment
virtual forcesMoments calcForcesMoment() const
Calculate and return forces and moment.
Definition: immersedBoundaryForces.C:73
Foam::immersedBoundaryForces::TypeName
TypeName("immersedBoundaryForces")
Runtime type information.
OFstream.H
Foam::objectRegistry
Registry of regIOobjects.
Definition: objectRegistry.H:50
pointFieldFwd.H
Switch.H
HashSet.H
Foam::forces::name
virtual const word & name() const
Return name of the set of forces.
Definition: forces.H:484
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::immersedBoundaryForces::immersedBoundaryForces
immersedBoundaryForces(const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false)
Construct for given objectRegistry and dictionary.
Definition: immersedBoundaryForces.C:47
Foam::forces
This function object calculates the forces and moments by integrating the pressure and skin-friction ...
Definition: forces.H:234
forces.H
fvPatchFields.H
Foam::immersedBoundaryForces
Calculates the forces and moments by integrating the pressure and skin-friction forces over a given l...
Definition: immersedBoundaryForces.H:63