domainDecompositionDryRun.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) 2018 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 Class
27  Foam::domainDecompositionDryRun
28 
29 Description
30  Testing of domain decomposition for finite-volume meshes
31 
32 SourceFiles
33  domainDecompositionDryRun.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef domainDecompositionDryRun_H
38 #define domainDecompositionDryRun_H
39 
40 #include "fvMesh.H"
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class domainDecompositionDryRun Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 {
51  // Private Data
52 
53  //- The mesh
54  fvMesh mesh_;
55 
56  //- Optional non-standard file for decomposeParDict
57  const fileName decompDictFile_;
58 
59  //- Optional override for numberOfSubdomains in decomposeParDict
60  const label nDomainsOverride_;
61 
62  //- Optional override for method in decomposeParDict
63  const word methodNameOverride_;
64 
65 
66 public:
67 
68  // Constructors
69 
70  //- Construct from components.
71  // \param io the IOobject for mesh
72  // \param decompDictFile optional non-standard location for the
73  // decomposeParDict file
74  // \param nDomains optional override value for numberOfSubdomains
75  // \param methodName optional override value for decomposition method
77  (
78  const IOobject& io,
79  const fileName& decompDictFile = "",
80  const label nDomains = 0,
81  const word& methodName = ""
82  );
83 
84 
85  //- Destructor
86  ~domainDecompositionDryRun() = default;
87 
88 
89  // Member Functions
90 
91  //- Perform dry-run
92  void execute(const bool writeCellDist, const bool verbose = false);
93 };
94 
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 } // End namespace Foam
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 #endif
103 
104 // ************************************************************************* //
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:104
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::fileName
A class for handling file names.
Definition: fileName.H:69
Foam::domainDecompositionDryRun::~domainDecompositionDryRun
~domainDecompositionDryRun()=default
Destructor.
Foam::domainDecompositionDryRun::domainDecompositionDryRun
domainDecompositionDryRun(const IOobject &io, const fileName &decompDictFile="", const label nDomains=0, const word &methodName="")
Construct from components.
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:83
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::domainDecompositionDryRun::execute
void execute(const bool writeCellDist, const bool verbose=false)
Perform dry-run.
Foam::domainDecompositionDryRun
Testing of domain decomposition for finite-volume meshes.
Definition: domainDecompositionDryRun.H:48