Loading...
Searching...
No Matches
gaussFaConvectionScheme.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) 2016-2017 Wikki Ltd
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::fa::gaussConvectionScheme
28
29Description
30 Basic second-order convection using face-gradients and Gauss' theorem.
31
32SourceFiles
33 gaussFaConvectionScheme.C
34 gaussFaConvectionSchemes.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef gaussFaConvectionScheme_H
39#define gaussFaConvectionScheme_H
40
41#include "faConvectionScheme.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48
49// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50
51namespace fa
52{
53
54/*---------------------------------------------------------------------------*\
55 Class gaussConvectionScheme Declaration
56\*---------------------------------------------------------------------------*/
57
58template<class Type>
60:
61 public fa::convectionScheme<Type>
62{
63 // Private Data
64
65 //- Edge-interpolation scheme
67
68
69public:
70
71 //- Runtime type information
72 TypeName("Gauss");
73
74
75 // Generated Methods
76
77 //- No copy construct
80 //- No copy assignment
81 void operator=(const gaussConvectionScheme&) = delete;
82
83
84 // Constructors
85
86 //- Construct from flux and interpolation scheme
88 (
89 const faMesh& mesh,
90 const edgeScalarField& faceFlux,
92 )
93 :
94 convectionScheme<Type>(mesh, faceFlux),
95 tinterpScheme_(scheme)
96 {}
97
98 //- Construct from flux and Istream
100 (
101 const faMesh& mesh,
102 const edgeScalarField& faceFlux,
103 Istream& is
104 )
105 :
106 convectionScheme<Type>(mesh, faceFlux),
107 tinterpScheme_
108 (
109 edgeInterpolationScheme<Type>::New(mesh, faceFlux, is)
110 )
111 {}
112
113
114 // Member Functions
115
117 (
118 const edgeScalarField&,
120 ) const;
121
123 (
124 const edgeScalarField&,
126 ) const;
127
129 (
130 const edgeScalarField&,
132 ) const;
133};
134
135
136// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137
138} // End namespace fa
139
140// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141
142} // End namespace Foam
143
144// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145
146#ifdef NoRepository
148#endif
149
150// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151
152#endif
153
154// ************************************************************************* //
Generic GeometricField class.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition Istream.H:60
Abstract base class for edge interpolation schemes.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
Definition faMesh.H:140
Abstract base class for finite area calculus convection schemes.
const faMesh & mesh() const noexcept
Return mesh reference.
convectionScheme(const convectionScheme &)=delete
No copy construct.
static tmp< convectionScheme< Type > > New(const faMesh &mesh, const edgeScalarField &faceFlux, Istream &schemeData)
Return a pointer to a new convectionScheme created on freestore.
tmp< GeometricField< Type, faePatchField, edgeMesh > > flux(const edgeScalarField &, const GeometricField< Type, faPatchField, areaMesh > &) const
void operator=(const gaussConvectionScheme &)=delete
No copy assignment.
tmp< faMatrix< Type > > famDiv(const edgeScalarField &, const GeometricField< Type, faPatchField, areaMesh > &) const
gaussConvectionScheme(const faMesh &mesh, const edgeScalarField &faceFlux, Istream &is)
Construct from flux and Istream.
gaussConvectionScheme(const faMesh &mesh, const edgeScalarField &faceFlux, const tmp< edgeInterpolationScheme< Type > > &scheme)
Construct from flux and interpolation scheme.
tmp< GeometricField< Type, faPatchField, areaMesh > > facDiv(const edgeScalarField &, const GeometricField< Type, faPatchField, areaMesh > &) const
gaussConvectionScheme(const gaussConvectionScheme &)=delete
No copy construct.
TypeName("Gauss")
Runtime type information.
A class for managing temporary objects.
Definition tmp.H:75
dynamicFvMesh & mesh
Namespace for finite-area.
Definition limitHeight.C:30
Namespace for OpenFOAM.
GeometricField< scalar, faePatchField, edgeMesh > edgeScalarField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68