FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

emptyPointPatchField.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 \*---------------------------------------------------------------------------*/
00025 
00026 #include <OpenFOAM/emptyPointPatchField.H>
00027 
00028 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00029 
00030 namespace Foam
00031 {
00032 
00033 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00034 
00035 template<class Type>
00036 emptyPointPatchField<Type>::emptyPointPatchField
00037 (
00038     const pointPatch& p,
00039     const DimensionedField<Type, pointMesh>& iF
00040 )
00041 :
00042     pointPatchField<Type>(p, iF)
00043 {}
00044 
00045 
00046 template<class Type>
00047 emptyPointPatchField<Type>::emptyPointPatchField
00048 (
00049     const pointPatch& p,
00050     const DimensionedField<Type, pointMesh>& iF,
00051     const dictionary& dict
00052 )
00053 :
00054     pointPatchField<Type>(p, iF, dict)
00055 {
00056     if (!isType<emptyPointPatch>(p))
00057     {
00058         FatalIOErrorIn
00059         (
00060             "emptyPointPatchField<Type>::emptyPointPatchField\n"
00061             "(\n"
00062             "    const pointPatch& p,\n"
00063             "    const Field<Type>& field,\n"
00064             "    const dictionary& dict\n"
00065             ")\n",
00066             dict
00067         )   << "patch " << this->patch().index() << " not empty type. "
00068             << "Patch type = " << p.type()
00069             << exit(FatalIOError);
00070     }
00071 }
00072 
00073 
00074 template<class Type>
00075 emptyPointPatchField<Type>::emptyPointPatchField
00076 (
00077     const emptyPointPatchField<Type>& ptf,
00078     const pointPatch& p,
00079     const DimensionedField<Type, pointMesh>& iF,
00080     const pointPatchFieldMapper&
00081 )
00082 :
00083     pointPatchField<Type>(p, iF)
00084 {
00085     if (!isType<emptyPointPatch>(this->patch()))
00086     {
00087         FatalErrorIn
00088         (
00089             "emptyPointPatchField<Type>::emptyPointPatchField\n"
00090             "(\n"
00091             "    const emptyPointPatchField<Type>& ptf,\n"
00092             "    const pointPatch& p,\n"
00093             "    const DimensionedField<Type, pointMesh>& iF,\n"
00094             "    const pointPatchFieldMapper& mapper\n"
00095             ")\n"
00096         )   << "Field type does not correspond to patch type for patch "
00097             << this->patch().index() << "." << endl
00098             << "Field type: " << typeName << endl
00099             << "Patch type: " << this->patch().type()
00100             << exit(FatalError);
00101     }
00102 }
00103 
00104 
00105 template<class Type>
00106 emptyPointPatchField<Type>::emptyPointPatchField
00107 (
00108     const emptyPointPatchField<Type>& ptf,
00109     const DimensionedField<Type, pointMesh>& iF
00110 )
00111 :
00112     pointPatchField<Type>(ptf, iF)
00113 {}
00114 
00115 
00116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00117 
00118 } // End namespace Foam
00119 
00120 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines