fixedValueFaePatchField.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-2017 Wikki Ltd
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 
30 
31 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
32 
33 template<class Type>
35 (
36  const faPatch& p,
38 )
39 :
40  faePatchField<Type>(p, iF)
41 {}
42 
43 
44 template<class Type>
46 (
47  const faPatch& p,
49  const Type& value
50 )
51 :
52  faePatchField<Type>(p, iF, value)
53 {}
54 
55 
56 template<class Type>
58 (
59  const faPatch& p,
61  const dictionary& dict,
62  IOobjectOption::readOption requireValue
63 )
64 :
65  faePatchField<Type>(p, iF, dict, requireValue)
66 {}
67 
68 
69 template<class Type>
71 (
74 )
75 :
76  faePatchField<Type>(ptf, iF)
77 {}
78 
79 
80 template<class Type>
82 (
84  const faPatch& p,
86  const faPatchFieldMapper& mapper
87 )
88 :
89  faePatchField<Type>(ptf, p, iF, mapper)
90 {}
91 
92 
93 template<class Type>
95 (
97 )
98 :
99  faePatchField<Type>(ptf)
100 {}
101 
102 
103 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
104 
105 template<class Type>
107 {
110 }
111 
112 
113 // ************************************************************************* //
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
virtual void write(Ostream &) const
Write.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
fixedValueFaePatchField(const faPatch &, const DimensionedField< Type, edgeMesh > &)
Construct from patch and internal field.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:56
OBJstream os(runTime.globalPath()/outputName)
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition: faPatch.H:72
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: areaFieldsFwd.H:42
faePatchField<Type> abstract base class. This class gives a fat-interface to all derived classes cove...
Definition: edgeFieldsFwd.H:46
volScalarField & p
A FieldMapper for finite-area patch fields.
readOption
Enumeration defining read preferences.