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 "cyclicFvsPatchField.H"
29 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
37 cyclicFvsPatchField<Type>::cyclicFvsPatchField
40 const DimensionedField<Type, surfaceMesh>& iF
43 coupledFvsPatchField<Type>(p, iF),
44 cyclicPatch_(refCast<const cyclicFvPatch>(p))
49 cyclicFvsPatchField<Type>::cyclicFvsPatchField
51 const cyclicFvsPatchField<Type>& ptf,
53 const DimensionedField<Type, surfaceMesh>& iF,
54 const fvPatchFieldMapper& mapper
57 coupledFvsPatchField<Type>(ptf, p, iF, mapper),
58 cyclicPatch_(refCast<const cyclicFvPatch>(p))
60 if (!isType<cyclicFvPatch>(this->patch()))
64 "cyclicFvsPatchField<Type>::cyclicFvsPatchField\n"
66 " const cyclicFvsPatchField<Type>& ptf,\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 cyclicFvsPatchField<Type>::cyclicFvsPatchField
84 const DimensionedField<Type, surfaceMesh>& iF,
85 const dictionary& dict
88 coupledFvsPatchField<Type>(p, iF, dict),
89 cyclicPatch_(refCast<const cyclicFvPatch>(p))
91 if (!isType<cyclicFvPatch>(p))
95 "cyclicFvsPatchField<Type>::cyclicFvsPatchField\n"
97 " const fvPatch& p,\n"
98 " const Field<Type>& field,\n"
99 " const dictionary& dict\n"
102 ) << "patch " << this->patch().index() << " not cyclic type. "
103 << "Patch type = " << p.type()
104 << exit(FatalIOError);
110 cyclicFvsPatchField<Type>::cyclicFvsPatchField
112 const cyclicFvsPatchField<Type>& ptf
115 coupledFvsPatchField<Type>(ptf),
116 cyclicPatch_(ptf.cyclicPatch_)
121 cyclicFvsPatchField<Type>::cyclicFvsPatchField
123 const cyclicFvsPatchField<Type>& ptf,
124 const DimensionedField<Type, surfaceMesh>& iF
127 coupledFvsPatchField<Type>(ptf, iF),
128 cyclicPatch_(ptf.cyclicPatch_)
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace Foam
136 // ************************************************************************* //