1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 \*---------------------------------------------------------------------------*/
27 #include "emptyFvsPatchField.H"
28 #include "fvPatchFieldMapper.H"
29 #include "surfaceMesh.H"
31 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
39 emptyFvsPatchField<Type>::emptyFvsPatchField
42 const DimensionedField<Type, surfaceMesh>& iF
45 fvsPatchField<Type>(p, iF, Field<Type>(0))
50 emptyFvsPatchField<Type>::emptyFvsPatchField
52 const emptyFvsPatchField<Type>&,
54 const DimensionedField<Type, surfaceMesh>& iF,
55 const fvPatchFieldMapper&
58 fvsPatchField<Type>(p, iF, Field<Type>(0))
60 if (!isType<emptyFvPatch>(this->patch()))
64 "emptyFvsPatchField<Type>::emptyFvsPatchField\n"
66 " const emptyFvsPatchField<Type>&,\n"
67 " const fvPatch& p,\n"
68 " const DimensionedField<Type, surfaceMesh>& iF,\n"
69 " const fvPatchFieldMapper& mapper\n"
71 ) << "Field type does not correspond to patch type for patch "
72 << this->patch().index() << "." << endl
73 << "Field type: " << typeName << endl
74 << "Patch type: " << this->patch().type()
81 emptyFvsPatchField<Type>::emptyFvsPatchField
84 const DimensionedField<Type, surfaceMesh>& iF,
85 const dictionary& dict
88 fvsPatchField<Type>(p, iF, Field<Type>(0))
90 if (!isType<emptyFvPatch>(p))
94 "emptyFvsPatchField<Type>::emptyFvsPatchField\n"
96 " const fvPatch& p,\n"
97 " const Field<Type>& field,\n"
98 " const dictionary& dict\n"
101 ) << "patch " << this->patch().index() << " not empty type. "
102 << "Patch type = " << p.type()
103 << exit(FatalIOError);
109 emptyFvsPatchField<Type>::emptyFvsPatchField
111 const emptyFvsPatchField<Type>& ptf
117 ptf.dimensionedInternalField(),
124 emptyFvsPatchField<Type>::emptyFvsPatchField
126 const emptyFvsPatchField<Type>& ptf,
127 const DimensionedField<Type, surfaceMesh>& iF
130 fvsPatchField<Type>(ptf.patch(), iF, Field<Type>(0))
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 } // End namespace Foam
138 // ************************************************************************* //