The open source CFD toolbox
extrapolatedCalculatedFvPatchField.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-------------------------------------------------------------------------------
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
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
26\*---------------------------------------------------------------------------*/
27
29#include "fvPatchFieldMapper.H"
30
31// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32
33template<class Type>
36(
37 const fvPatch& p,
39)
40:
41 calculatedFvPatchField<Type>(p, iF)
42{}
43
44
45template<class Type>
48(
49 const fvPatch& p,
51 const dictionary& dict
52)
53:
54 calculatedFvPatchField<Type>(p, iF, dict, false)
55{
56 evaluate();
57}
58
59
60template<class Type>
63(
65 const fvPatch& p,
67 const fvPatchFieldMapper& mapper
68)
69:
70 calculatedFvPatchField<Type>(ptf, p, iF, mapper)
71{}
72
73
74template<class Type>
77(
79)
80:
81 calculatedFvPatchField<Type>(ptf)
82{}
83
84
85template<class Type>
88(
91)
92:
93 calculatedFvPatchField<Type>(ptf, iF)
94{}
95
96
97// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
98
99template<class Type>
101(
103)
104{
105 if (!this->updated())
106 {
107 this->updateCoeffs();
108 }
109
110 calculatedFvPatchField<Type>::operator==(this->patchInternalField());
112}
113
114
115// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void evaluate()
Evaluate boundary conditions.
commsTypes
Types of communications.
Definition: UPstream.H:67
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
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.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:71
friend bool operator==(const refineCell &rc1, const refineCell &rc2)
Definition: refineCell.H:97
volScalarField & p
dictionary dict