Loading...
Searching...
No Matches
diagonalSolver.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-2012 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::diagonalSolver
28
29Group
30 grpLduMatrixSolvers
31
32Description
33 Foam::diagonalSolver
34
35SourceFiles
36 diagonalSolver.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef Foam_diagonalSolver_H
41#define Foam_diagonalSolver_H
42
43#include "lduMatrix.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
50/*---------------------------------------------------------------------------*\
51 Class diagonalSolver Declaration
52\*---------------------------------------------------------------------------*/
53
55:
57{
58public:
59
60 // Generated Methods
61
62 //- No copy construct
63 diagonalSolver(const diagonalSolver&) = delete;
64
65 //- No copy assignment
66 void operator=(const diagonalSolver&) = delete;
67
68
69 //- Runtime type information
70 TypeName("diagonal");
72
73 // Constructors
74
75 //- Construct from matrix and solver controls
77 (
78 const word& fieldName,
79 const lduMatrix& matrix,
83 const dictionary& solverControls
84 );
85
86
87 // Member Functions
88
89 //- Read and reset the solver parameters from the given stream
90 void read(const dictionary&)
91 {}
92
93 //- Solve the matrix with this solver
97 const scalarField& source,
98 const direction cmpt=0
99 ) const;
100};
101
102
103// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104
105} // End namespace Foam
106
107// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108
109#endif
110
111// ************************************************************************* //
A field of fields is a PtrList of fields with reference counting.
Definition FieldField.H:77
TypeName("diagonal")
Runtime type information.
void operator=(const diagonalSolver &)=delete
No copy assignment.
void read(const dictionary &)
Read and reset the solver parameters from the given stream.
diagonalSolver(const diagonalSolver &)=delete
No copy construct.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Abstract base-class for lduMatrix solvers.
Definition lduMatrix.H:152
const FieldField< Field, scalar > & interfaceIntCoeffs() const noexcept
Definition lduMatrix.H:338
const lduInterfaceFieldPtrsList & interfaces() const noexcept
Definition lduMatrix.H:343
const lduMatrix & matrix() const noexcept
Definition lduMatrix.H:328
const FieldField< Field, scalar > & interfaceBouCoeffs() const noexcept
Definition lduMatrix.H:333
const word & fieldName() const noexcept
Definition lduMatrix.H:323
lduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
Definition lduMatrix.H:81
A class for handling words, derived from Foam::string.
Definition word.H:66
const volScalarField & psi
Namespace for OpenFOAM.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
uint8_t direction
Definition direction.H:49
UPtrList< const lduInterfaceField > lduInterfaceFieldPtrsList
List of coupled interface fields to be used in coupling.
SolverPerformance< scalar > solverPerformance
SolverPerformance instantiated for a scalar.
CEqn solve()
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68