twoPhaseEulerFoam:frictionalStressModel/Schaeffer: Correct mut on processor boundaries
[OpenFOAM-1.7.x.git] / src / OpenFOAM / matrices / tolerances / tolerances.H
blobea77481b06e11c61c24a2ca529f58262440eb524
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
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.
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.
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/>.
24 Class
25     Foam::tolerances
27 Description
28     Selector class for solution tolerances.
30 SourceFiles
31     tolerances.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef tolerances_H
36 #define tolerances_H
38 #include "IOdictionary.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46                            Class tolerances Declaration
47 \*---------------------------------------------------------------------------*/
49 class tolerances
51     public IOdictionary
53     // Private data
55         dictionary relaxationFactors_;
56         dictionary solverTolerances_;
57         dictionary solverRelativeTolerances_;
60     // Private Member Functions
62         //- Disallow default bitwise copy construct and assignment
63         tolerances(const tolerances&);
64         void operator=(const tolerances&);
67 public:
69     // Constructors
71         //- Construct from time
72         tolerances(const Time& t, const fileName& dictName);
75     // Member Functions
77         // Access
79             bool relax(const word& name) const;
80             scalar relaxationFactor(const word& name) const;
82             scalar solverTolerance(const word& name) const;
84             bool solverRelativeTolerances() const;
85             scalar solverRelativeTolerance(const word& name) const;
88         // Read
90             //- Read the tolerances
91             bool read();
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 } // End namespace Foam
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 #endif
103 // ************************************************************************* //