extrapolatedCalculatedFaPatchField.C
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 OpenFOAM Foundation
9  Copyright (C) 2023 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 \*---------------------------------------------------------------------------*/
28 
31 
32 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
33 
34 template<class Type>
37 (
38  const faPatch& p,
40 )
41 :
43 {}
44 
45 
46 template<class Type>
49 (
50  const faPatch& p,
52  const dictionary& dict
53 )
54 :
55  calculatedFaPatchField<Type>(p, iF, dict, IOobjectOption::NO_READ)
56 {
57  faPatchField<Type>::extrapolateInternal(); // Zero-gradient patch values
58 }
59 
60 
61 template<class Type>
64 (
66  const faPatch& p,
68  const faPatchFieldMapper& mapper
69 )
70 :
71  calculatedFaPatchField<Type>(ptf, p, iF, mapper)
72 {}
73 
74 
75 template<class Type>
78 (
80 )
81 :
83 {}
84 
85 
86 template<class Type>
89 (
92 )
93 :
94  calculatedFaPatchField<Type>(ptf, iF)
95 {}
96 
97 
98 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
99 
100 template<class Type>
102 (
103  const Pstream::commsTypes
104 )
105 {
106  if (!this->updated())
107  {
108  this->updateCoeffs();
109  }
110 
111  faPatchField<Type>::extrapolateInternal(); // Zero-gradient patch values
113 }
114 
115 
116 // ************************************************************************* //
dictionary dict
commsTypes
Communications types.
Definition: UPstream.H:72
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
extrapolatedCalculatedFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
void extrapolateInternal()
Assign the patch field from the internal field.
Definition: faPatchField.C:60
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition: faPatch.H:72
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field, sets updated() to false.
Definition: faPatchField.C:241
A simple container of IOobject preferences. Can also be used for general handling of read/no-read/rea...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: areaFieldsFwd.H:42
volScalarField & p
A FieldMapper for finite-area patch fields.