patchRefinement.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | cfMesh: A library for mesh generation
4  \\ / O peration |
5  \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6  \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9  This file is part of cfMesh.
10 
11  cfMesh 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  cfMesh 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 cfMesh. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  patchRefinement
26 
27 Description
28  A class used for octree refinement. Refinement of boxes intersected
29  by a given patch to the prescribed size.
30 
31 SourceFiles
32  patchRefinement.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef patchRefinement_H
37 #define patchRefinement_H
38 
39 #include "scalar.H"
40 #include "word.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 // Forward declarations
48 class triSurf;
49 class Istream;
50 class Ostream;
51 
52 /*---------------------------------------------------------------------------*\
53  Class patchRefinement Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class patchRefinement
57 {
58  // Private members
59 
61 
62  scalar cellSize_;
63 
64 public:
65 
66  // Constructors
67  //- Null contructor
69 
70  //- Construct from word and desired cell size
71  patchRefinement(const word&, const scalar&);
72 
73  //- contruct from stream
75 
76  // Destructor
77 
79 
80 
81  // Member Functions
82  word patchName() const;
83 
84  label patchInSurface(const triSurf&) const;
85 
86  scalar cellSize() const;
87 
88  // Operators
89 
90  void operator=(const patchRefinement&);
92  friend Ostream& operator<<(Ostream&, const patchRefinement&);
93  friend bool operator==(const patchRefinement&, const patchRefinement&);
94  friend bool operator!=(const patchRefinement&, const patchRefinement&);
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
Foam::word
A class for handling words, derived from string.
Definition: word.H:59
Foam::patchRefinement::~patchRefinement
~patchRefinement()
Definition: patchRefinement.C:64
Foam::patchRefinement
Definition: patchRefinement.H:55
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Foam::patchRefinement::operator<<
friend Ostream & operator<<(Ostream &, const patchRefinement &)
Definition: patchRefinement.C:111
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:57
Foam::patchRefinement::patchInSurface
label patchInSurface(const triSurf &) const
Definition: patchRefinement.C:75
Foam::patchRefinement::operator=
void operator=(const patchRefinement &)
Definition: patchRefinement.C:98
Foam::patchRefinement::patchName_
word patchName_
Definition: patchRefinement.H:59
scalar.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::patchRefinement::patchName
word patchName() const
Definition: patchRefinement.C:70
Foam::patchRefinement::operator==
friend bool operator==(const patchRefinement &, const patchRefinement &)
Definition: patchRefinement.C:117
triSurf
A class for triangulated surface used in the meshing process. It is derived from points and facets wi...
Foam::patchRefinement::operator!=
friend bool operator!=(const patchRefinement &, const patchRefinement &)
Definition: patchRefinement.C:125
Foam::patchRefinement::patchRefinement
patchRefinement()
Null contructor.
Definition: patchRefinement.C:41
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
word.H
Foam::patchRefinement::operator>>
friend Istream & operator>>(Istream &, patchRefinement &)
Definition: patchRefinement.C:104
Foam::triSurf
Definition: triSurf.H:59
Foam::patchRefinement::cellSize
scalar cellSize() const
Definition: patchRefinement.C:91
Foam::patchRefinement::cellSize_
scalar cellSize_
Definition: patchRefinement.H:61