fvMeshStitchersStationary.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) 2021-2022 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::fvMeshStitchers::stationary
26 
27 Description
28  Mesh stitcher for stationary meshes
29 
30 SourceFiles
31  fvMeshStitchersStationary.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef fvMeshStitchersStationary_H
36 #define fvMeshStitchersStationary_H
37 
38 #include "fvMeshStitcher.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace fvMeshStitchers
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class fvMeshStitchers::stationary Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class stationary
52 :
53  public fvMeshStitcher
54 {
55  // Private Member Functions
56 
57  //- Return whether or not this stitcher supports a changing mesh
58  virtual bool changing() const
59  {
60  return false;
61  }
62 
63  //- Correct the mesh fluxes following a conform operation
64  virtual void conformCorrectMeshPhi(surfaceScalarField& phi);
65 
66  //- Initialise correction of the mesh fluxes
67  virtual void createNonConformalCorrectMeshPhiGeometry
68  (
69  SurfaceFieldBoundary<label>& polyFacesBf,
70  surfaceVectorField& SfSf,
71  surfaceVectorField& CfSf
72  );
73 
74  //- Correct the mesh fluxes following an unconform operation
75  virtual void unconformCorrectMeshPhi
76  (
77  const SurfaceFieldBoundary<label>& polyFacesBf,
78  surfaceVectorField& SfSf,
79  surfaceVectorField& CfSf,
81  );
82 
83 
84 public:
85 
86  //- Runtime type information
87  TypeName("stationary");
88 
89 
90  // Constructors
91 
92  //- Construct from fvMesh
93  explicit stationary(fvMesh&);
94 
95 
96  //- Destructor
97  virtual ~stationary();
98 };
99 
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 } // End namespace fvMeshStitchers
104 } // End namespace Foam
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 #endif
109 
110 // ************************************************************************* //
Generic GeometricBoundaryField class.
Generic GeometricField class.
Mesh manipulator that uses the intersection provided by the cyclic non-conformal poly patches to crea...
Mesh stitcher for stationary meshes.
stationary(fvMesh &)
Construct from fvMesh.
TypeName("stationary")
Runtime type information.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:101
Namespace for OpenFOAM.