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 -------------------------------------------------------------------------------
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 
29 #include "UIndirectList.H"
30 
31 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32 
33 template<class Type>
36 (
37  const fvPatch& p,
39 )
40 :
42 {}
43 
44 
45 template<class Type>
48 (
50  const fvPatch& p,
52  const fvPatchFieldMapper& mapper
53 )
54 :
55  mappedFixedValueFvPatchField<Type>(ptf, p, iF, mapper)
56 {}
57 
58 
59 template<class Type>
62 (
63  const fvPatch& p,
65  const dictionary& dict
66 )
67 :
69 {}
70 
71 
72 template<class Type>
75 (
77 )
78 :
80 {}
81 
82 
83 template<class Type>
86 (
89 )
90 :
92 {}
93 
94 
95 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
96 
97 template<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 
114 template<class Type>
116 (
117  Ostream& os
118 ) const
119 {
121 }
122 
123 
124 // ************************************************************************* //
Foam::mappedFixedPushedInternalValueFvPatchField
This boundary condition maps the boundary values of a neighbour patch field to the boundary and inter...
Definition: mappedFixedPushedInternalValueFvPatchField.H:107
p
volScalarField & p
Definition: createFieldRefs.H:8
UIndirectList.H
Foam::mappedFixedValueFvPatchField
This boundary condition maps the value at a set of cells or patch faces back to *this.
Definition: mappedFixedValueFvPatchField.H:125
mappedFixedPushedInternalValueFvPatchField.H
Foam::mappedFixedPushedInternalValueFvPatchField::mappedFixedPushedInternalValueFvPatchField
mappedFixedPushedInternalValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Definition: mappedFixedPushedInternalValueFvPatchField.C:36
Foam::Field
Generic templated field type.
Definition: Field.H:63
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:65
Foam::mappedFixedPushedInternalValueFvPatchField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: mappedFixedPushedInternalValueFvPatchField.C:98
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:123
os
OBJstream os(runTime.globalPath()/outputName)
Foam::mappedFixedPushedInternalValueFvPatchField::write
virtual void write(Ostream &) const
Write.
Definition: mappedFixedPushedInternalValueFvPatchField.C:116
Foam::foamVersion::patch
const std::string patch
OpenFOAM patch number as a std::string.
Foam::vtk::write
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Definition: foamVtkOutputTemplates.C:36
Foam::UIndirectList
A List with indirect addressing.
Definition: faMatrix.H:60
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:47
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::faceCells
Smooth ATC in cells next to a set of patches supplied by type.
Definition: faceCells.H:56
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:54