mappedFixedPushedInternalValueFvPatchField.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) 2011-2016 OpenFOAM Foundation
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
26\*---------------------------------------------------------------------------*/
27
29#include "IndirectList.H"
30
31// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32
33template<class Type>
36(
37 const fvPatch& p,
39)
40:
42{}
43
44
45template<class Type>
48(
50 const fvPatch& p,
52 const fvPatchFieldMapper& mapper
53)
54:
55 mappedFixedValueFvPatchField<Type>(ptf, p, iF, mapper)
56{}
57
58
59template<class Type>
62(
63 const fvPatch& p,
65 const dictionary& dict
66)
67:
69{}
70
71
72template<class Type>
75(
77)
78:
80{}
81
82
83template<class Type>
86(
89)
90:
91 mappedFixedValueFvPatchField<Type>(ptf, iF)
92{}
93
94
95// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
96
97template<class Type>
99{
100 if (this->updated())
101 {
102 return;
103 }
104
105 // Retrieve the neighbour values and assign to this patch boundary field
107
108 // Assign the patch internal field to its boundary value
109 Field<Type>& intFld = const_cast<Field<Type>&>(this->primitiveField());
110 UIndirectList<Type>(intFld, this->patch().faceCells()) = *this;
111}
112
113
114template<class Type>
116(
117 Ostream& os
118) const
119{
121}
122
123
124// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
Definition: Field.H:82
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
A List with indirect addressing. Like IndirectList but does not store addressing.
Definition: IndirectList.H:79
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Smooth ATC in cells next to a set of patches supplied by type.
Definition: faceCells.H:59
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:71
This boundary condition maps the boundary values of a neighbour patch field to the boundary and inter...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
This boundary condition maps the value at a set of cells or patch faces back to *this.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
volScalarField & p
OBJstream os(runTime.globalPath()/outputName)
dictionary dict