Loading...
Searching...
No Matches
linearEdgeInterpolation.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::linearEdgeInterpolation
28
29Description
30 Central-differencing interpolation scheme class
31
32SourceFiles
33 linearEdgeInterpolation.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef linearEdgeInterpolation_H
38#define linearEdgeInterpolation_H
39
41#include "areaFields.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48/*---------------------------------------------------------------------------*\
49 Class linear Declaration
50\*---------------------------------------------------------------------------*/
51
52template<class Type>
54:
55 virtual public edgeInterpolationScheme<Type>
56{
57public:
58
59 //- Runtime type information
60 TypeName("linear");
61
62
63 // Generated Methods
64
65 //- No copy construct
67
68 //- No copy assignment
69 void operator=(const linearEdgeInterpolation&) = delete;
71
72 // Constructors
73
74 //- Construct from mesh
76 :
78 {}
79
80 //- Construct from Istream
82 :
84 {}
85
86 //- Construct from faceFlux and Istream
88 (
89 const faMesh& mesh,
90 const edgeScalarField&,
91 Istream&
92 )
93 :
95 {}
96
97
98 // Member Functions
99
100 //- Return the interpolation weighting factors
102 (
104 ) const
105 {
106 return this->mesh().edgeInterpolation::weights();
107 }
108};
109
117 vf,
118 vf.mesh().edgeInterpolation::weights()
119 );
120}
121
132 tvf.clear();
133 return tinterp;
135
136
137// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138
139} // End namespace Foam
140
141// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142
143#endif
144
145// ************************************************************************* //
const Mesh & mesh() const noexcept
Return const reference to mesh.
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.
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &, const tmp< edgeScalarField > &, const tmp< edgeScalarField > &)
Return the face-interpolate of the given cell field.
edgeInterpolationScheme(const edgeInterpolationScheme &)=delete
No copy construct.
const faMesh & mesh() const
Return mesh reference.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
Definition faMesh.H:140
linearEdgeInterpolation(const faMesh &mesh, const edgeScalarField &, Istream &)
Construct from faceFlux and Istream.
void operator=(const linearEdgeInterpolation &)=delete
No copy assignment.
linearEdgeInterpolation(const linearEdgeInterpolation &)=delete
No copy construct.
tmp< edgeScalarField > weights(const GeometricField< Type, faPatchField, areaMesh > &) const
Return the interpolation weighting factors.
linearEdgeInterpolation(const faMesh &mesh, Istream &)
Construct from Istream.
TypeName("linear")
Runtime type information.
linearEdgeInterpolation(const faMesh &mesh)
Construct from mesh.
A class for managing temporary objects.
Definition tmp.H:75
dynamicFvMesh & mesh
Namespace for OpenFOAM.
tmp< GeometricField< Type, faePatchField, edgeMesh > > linearEdgeInterpolate(const GeometricField< Type, faPatchField, areaMesh > &vf)
GeometricField< scalar, faePatchField, edgeMesh > edgeScalarField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68