PBiCICG.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) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2019 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::PBiCICG
29 
30 Description
31  Preconditioned bi-conjugate gradient solver for asymmetric lduMatrices
32  using a run-time selectable preconditioner.
33 
34 SourceFiles
35  PBiCICG.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef PBiCICG_H
40 #define PBiCICG_H
41 
42 #include "LduMatrix.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class PBiCICG Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 template<class Type, class DType, class LUType>
54 class PBiCICG
55 :
56  public LduMatrix<Type, DType, LUType>::solver
57 {
58  // Private Member Functions
59 
60  //- No copy construct
61  PBiCICG(const PBiCICG&) = delete;
62 
63  //- No copy assignment
64  void operator=(const PBiCICG&) = delete;
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("PBiCICG");
71 
72 
73  // Constructors
74 
75  //- Construct from matrix components and solver data dictionary
76  PBiCICG
77  (
78  const word& fieldName,
80  const dictionary& solverDict
81  );
82 
83 
84  // Destructor
85 
86  virtual ~PBiCICG() = default;
87 
88 
89  // Member Functions
90 
91  //- Solve the matrix with this solver
93 };
94 
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 } // End namespace Foam
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 #ifdef NoRepository
103  #include "PBiCICG.C"
104 #endif
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 #endif
109 
110 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::PBiCICG::~PBiCICG
virtual ~PBiCICG()=default
Foam::LduMatrix
LduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
Definition: LduMatrix.H:72
LduMatrix.H
Foam::LduMatrix::solver::fieldName
const word & fieldName() const noexcept
Definition: LduMatrix.H:234
Foam::Field
Generic templated field type.
Definition: Field.H:63
Foam::solver
Base class for solution control classes.
Definition: solver.H:51
Foam::PBiCICG::solve
virtual SolverPerformance< Type > solve(Field< Type > &psi) const
Solve the matrix with this solver.
Definition: PBiCICG.C:54
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
PBiCICG.C
Foam::PBiCICG::TypeName
TypeName("PBiCICG")
Runtime type information.
psi
const volScalarField & psi
Definition: createFieldRefs.H:1
Foam::SolverPerformance
SolverPerformance is the class returned by the LduMatrix solver containing performance statistics.
Definition: SolverPerformance.H:52
Foam::LduMatrix::solver::matrix
const LduMatrix< Type, DType, LUType > & matrix() const noexcept
Definition: LduMatrix.H:239
Foam::PBiCICG
Preconditioned bi-conjugate gradient solver for asymmetric lduMatrices using a run-time selectable pr...
Definition: PBiCICG.H:53