OpenFOAM: API Guide
v2006
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
-------------------------------------------------------------------------------
10
License
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
26
\*---------------------------------------------------------------------------*/
27
28
#include "
extrapolatedCalculatedFvPatchField.H
"
29
#include "
fvPatchFieldMapper.H
"
30
31
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32
33
template
<
class
Type>
34
Foam::extrapolatedCalculatedFvPatchField<Type>::
35
extrapolatedCalculatedFvPatchField
36
(
37
const
fvPatch
&
p
,
38
const
DimensionedField<Type, volMesh>
& iF
39
)
40
:
41
calculatedFvPatchField<Type>
(
p
, iF)
42
{}
43
44
45
template
<
class
Type>
46
Foam::extrapolatedCalculatedFvPatchField<Type>::
47
extrapolatedCalculatedFvPatchField
48
(
49
const
fvPatch
&
p
,
50
const
DimensionedField<Type, volMesh>
& iF,
51
const
dictionary
&
dict
52
)
53
:
54
calculatedFvPatchField<Type>
(
p
, iF,
dict
,
false
)
55
{
56
evaluate
();
57
}
58
59
60
template
<
class
Type>
61
Foam::extrapolatedCalculatedFvPatchField<Type>::
62
extrapolatedCalculatedFvPatchField
63
(
64
const
extrapolatedCalculatedFvPatchField<Type>
& ptf,
65
const
fvPatch
&
p
,
66
const
DimensionedField<Type, volMesh>
& iF,
67
const
fvPatchFieldMapper
& mapper
68
)
69
:
70
calculatedFvPatchField<Type>
(ptf,
p
, iF, mapper)
71
{}
72
73
74
template
<
class
Type>
75
Foam::extrapolatedCalculatedFvPatchField<Type>::
76
extrapolatedCalculatedFvPatchField
77
(
78
const
extrapolatedCalculatedFvPatchField<Type>
& ptf
79
)
80
:
81
calculatedFvPatchField<Type>
(ptf)
82
{}
83
84
85
template
<
class
Type>
86
Foam::extrapolatedCalculatedFvPatchField<Type>::
87
extrapolatedCalculatedFvPatchField
88
(
89
const
extrapolatedCalculatedFvPatchField<Type>
& ptf,
90
const
DimensionedField<Type, volMesh>
& iF
91
)
92
:
93
calculatedFvPatchField<Type>
(ptf, iF)
94
{}
95
96
97
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
98
99
template
<
class
Type>
100
void
Foam::extrapolatedCalculatedFvPatchField<Type>::evaluate
101
(
102
const
Pstream::commsTypes
103
)
104
{
105
if
(!this->updated())
106
{
107
this->updateCoeffs();
108
}
109
110
calculatedFvPatchField<Type>::operator==
(this->patchInternalField());
111
calculatedFvPatchField<Type>::evaluate
();
112
}
113
114
115
// ************************************************************************* //
Foam::extrapolatedCalculatedFvPatchField
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
Definition:
extrapolatedCalculatedFvPatchField.H:66
p
volScalarField & p
Definition:
createFieldRefs.H:8
Foam::extrapolatedCalculatedFvPatchField::evaluate
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
Definition:
extrapolatedCalculatedFvPatchField.C:101
extrapolatedCalculatedFvPatchField.H
fvPatchFieldMapper.H
Foam::operator==
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition:
fvPatch.H:65
dict
dictionary dict
Definition:
searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition:
dictionary.H:121
Foam::calculatedFvPatchField
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
Definition:
calculatedFvPatchField.H:66
Foam::extrapolatedCalculatedFvPatchField::extrapolatedCalculatedFvPatchField
extrapolatedCalculatedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Definition:
extrapolatedCalculatedFvPatchField.C:36
Foam::UPstream::commsTypes
commsTypes
Types of communications.
Definition:
UPstream.H:66
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition:
fvPatchFieldMapper.H:47
Foam::stringOps::evaluate
string evaluate(const std::string &s, size_t pos=0, size_t len=std::string::npos)
Definition:
stringOpsEvaluate.C:37
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition:
DimensionedField.H:54
src
finiteVolume
fields
fvPatchFields
basic
extrapolatedCalculated
extrapolatedCalculatedFvPatchField.C
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.