Loading...
Searching...
No Matches
calculatedFaPatchField.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 Copyright (C) 2023 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::calculatedFaPatchField
29
30Description
31
32Author
33 Zeljko Tukovic, FMENA
34 Hrvoje Jasak, Wikki Ltd.
35
36SourceFiles
37 calculatedFaPatchField.C
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef Foam_calculatedFaPatchField_H
42#define Foam_calculatedFaPatchField_H
43
44#include "faPatchField.H"
45
46// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48namespace Foam
49{
50
51/*---------------------------------------------------------------------------*\
52 Class calculatedFaPatch Declaration
53\*---------------------------------------------------------------------------*/
54
55template<class Type>
57:
58 public faPatchField<Type>
59{
60public:
61
62 //- Runtime type information
63 TypeName("calculated"); // fieldTypes::calculatedTypeName_()
64
65
66 // Constructors
67
68 //- Construct from patch and internal field
70 (
71 const faPatch&,
73 );
74
75 //- Construct from patch, internal field and dictionary
77 (
78 const faPatch&,
80 const dictionary& dict,
83 );
84
85 //- Construct by mapping given patch field onto a new patch
87 (
89 const faPatch&,
92 );
93
94 //- Construct as copy
96 (
98 );
99
100 //- Construct as copy setting internal field reference
102 (
105 );
106
107 //- Return clone
108 virtual tmp<faPatchField<Type>> clone() const
109 {
110 return faPatchField<Type>::Clone(*this);
111 }
112
113 //- Clone with an internal field reference
115 (
117 ) const
118 {
119 return faPatchField<Type>::Clone(*this, iF);
120 }
121
122
123 // Member Functions
124
125 //- True: this patch field fixes a value.
126 virtual bool fixesValue() const { return true; }
127
128
129 // Evaluation functions
130
131 //- Return the matrix diagonal coefficients corresponding to the
132 // evaluation of the value of this patchField with given weights
134 (
135 const tmp<scalarField>&
136 ) const;
137
138 //- Return the matrix source coefficients corresponding to the
139 // evaluation of the value of this patchField with given weights
141 (
142 const tmp<scalarField>&
143 ) const;
144
145 //- Return the matrix diagonal coefficients corresponding to the
146 // evaluation of the gradient of this patchField
148
149 //- Return the matrix source coefficients corresponding to the
150 // evaluation of the gradient of this patchField
152
153
154 //- Write
155 virtual void write(Ostream&) const;
156};
157
158
159// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160
161} // End namespace Foam
162
163// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164
165#ifdef NoRepository
166 #include "calculatedFaPatchField.C"
167#endif
168
169// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170
171#endif
172
173// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
readOption
Enumeration defining read preferences.
@ LAZY_READ
Reading is optional [identical to READ_IF_PRESENT].
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition Ostream.H:59
virtual tmp< faPatchField< Type > > clone() const
Return clone.
virtual bool fixesValue() const
True: this patch field fixes a value.
tmp< Field< Type > > gradientInternalCoeffs() const
Return the matrix diagonal coefficients corresponding to the.
virtual tmp< Field< Type > > valueInternalCoeffs(const tmp< scalarField > &) const
Return the matrix diagonal coefficients corresponding to the.
tmp< Field< Type > > gradientBoundaryCoeffs() const
Return the matrix source coefficients corresponding to the.
calculatedFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
virtual tmp< Field< Type > > valueBoundaryCoeffs(const tmp< scalarField > &) const
Return the matrix source coefficients corresponding to the.
virtual tmp< faPatchField< Type > > clone(const DimensionedField< Type, areaMesh > &iF) const
Clone with an internal field reference.
TypeName("calculated")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A FieldMapper for finite-area patch fields.
faPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
static tmp< faPatchField< Type > > Clone(const DerivedPatchField &pf)
Clone a patch field with its own internal field reference.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition faPatch.H:76
A class for managing temporary objects.
Definition tmp.H:75
Namespace for OpenFOAM.
runTime write()
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68