lumpedPointTools.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) 2016 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 Namespace
27  Foam::lumpedPointTools
28 
29 Description
30  A collection of utility functions for handling IO related to the
31  lumped-mass movement.
32 
33 SourceFiles
34  lumpedPointTools.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef lumpedPointTools_H
39 #define lumpedPointTools_H
40 
41 #include "labelList.H"
42 #include "polyMesh.H"
43 #include "pointMesh.H"
44 #include "pointFields.H"
45 #include "Tuple2.H"
46 
47 #include "lumpedPointState.H"
48 
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 
51 namespace Foam
52 {
53 
55 
56 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 
58 namespace lumpedPointTools
59 {
60 
61 //- Load a list of states from an Istream
63 
64 //- Load a list of states from a file
66 
67 
68 //- Return the 0 or constant points field
70 
71 //- Return the patch-ids associated a "lumpedPointDisplacement" type
73 
74 //- Get the "pointDisplacement" at time 0 and use that to determine which
75 // patches have a "lumpedPointDisplacement" type
77 
78 } // End namespace lumpedPointTools
79 
80 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
81 
82 } // End namespace Foam
83 
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85 
86 #endif
87 
88 // ************************************************************************* //
Foam::fileName
A class for handling file names.
Definition: fileName.H:69
Foam::IOField
A primitive field of type <T> with automated input and output.
Definition: foamVtkLagrangianWriter.H:61
Tuple2.H
polyMesh.H
lumpedPointState.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::lumpedPointTools::lumpedPointStates
List< lumpedPointStateTuple > lumpedPointStates(Istream &is)
Load a list of states from an Istream.
Definition: lumpedPointTools.C:75
labelList.H
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::lumpedPointStateTuple
Tuple2< scalar, lumpedPointState > lumpedPointStateTuple
Definition: lumpedPointTools.H:54
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:102
Foam::lumpedPointTools::points0Field
pointIOField points0Field(const polyMesh &mesh)
Return the 0 or constant points field.
Definition: lumpedPointTools.C:107
Foam::Tuple2
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...
Definition: Tuple2.H:57
Foam::GeometricField< vector, pointPatchField, pointMesh >
Foam::lumpedPointTools::lumpedPointPatchList
labelList lumpedPointPatchList(const pointVectorField &pvf)
Return the patch-ids associated a "lumpedPointDisplacement" type.
Definition: lumpedPointTools.C:129
pointFields.H
pointMesh.H