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

symmetryFvPatchField.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 <finiteVolume/symmetryFvPatchField.H>
00027 
00028 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00029 
00030 namespace Foam
00031 {
00032 
00033 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00034 
00035 template<class Type>
00036 symmetryFvPatchField<Type>::symmetryFvPatchField
00037 (
00038     const fvPatch& p,
00039     const DimensionedField<Type, volMesh>& iF
00040 )
00041 :
00042     basicSymmetryFvPatchField<Type>(p, iF)
00043 {}
00044 
00045 
00046 template<class Type>
00047 symmetryFvPatchField<Type>::symmetryFvPatchField
00048 (
00049     const symmetryFvPatchField<Type>& ptf,
00050     const fvPatch& p,
00051     const DimensionedField<Type, volMesh>& iF,
00052     const fvPatchFieldMapper& mapper
00053 )
00054 :
00055     basicSymmetryFvPatchField<Type>(ptf, p, iF, mapper)
00056 {
00057     if (!isType<symmetryFvPatch>(this->patch()))
00058     {
00059         FatalErrorIn
00060         (
00061             "symmetryFvPatchField<Type>::symmetryFvPatchField\n"
00062             "(\n"
00063             "    const symmetryFvPatchField<Type>& ptf,\n"
00064             "    const fvPatch& p,\n"
00065             "    const DimensionedField<Type, volMesh>& iF,\n"
00066             "    const fvPatchFieldMapper& mapper\n"
00067             ")\n"
00068         )   << "\n    patch type '" << p.type()
00069             << "' not constraint type '" << typeName << "'"
00070             << "\n    for patch " << p.name()
00071             << " of field " << this->dimensionedInternalField().name()
00072             << " in file " << this->dimensionedInternalField().objectPath()
00073             << exit(FatalIOError);
00074     }
00075 }
00076 
00077 
00078 template<class Type>
00079 symmetryFvPatchField<Type>::symmetryFvPatchField
00080 (
00081     const fvPatch& p,
00082     const DimensionedField<Type, volMesh>& iF,
00083     const dictionary& dict
00084 )
00085 :
00086     basicSymmetryFvPatchField<Type>(p, iF, dict)
00087 {
00088     if (!isType<symmetryFvPatch>(p))
00089     {
00090         FatalIOErrorIn
00091         (
00092             "symmetryFvPatchField<Type>::symmetryFvPatchField\n"
00093             "(\n"
00094             "    const fvPatch& p,\n"
00095             "    const Field<Type>& field,\n"
00096             "    const dictionary& dict\n"
00097             ")\n",
00098             dict
00099         )   << "\n    patch type '" << p.type()
00100             << "' not constraint type '" << typeName << "'"
00101             << "\n    for patch " << p.name()
00102             << " of field " << this->dimensionedInternalField().name()
00103             << " in file " << this->dimensionedInternalField().objectPath()
00104             << exit(FatalIOError);
00105     }
00106 }
00107 
00108 
00109 template<class Type>
00110 symmetryFvPatchField<Type>::symmetryFvPatchField
00111 (
00112     const symmetryFvPatchField<Type>& ptf
00113 )
00114 :
00115     basicSymmetryFvPatchField<Type>(ptf)
00116 {}
00117 
00118 
00119 template<class Type>
00120 symmetryFvPatchField<Type>::symmetryFvPatchField
00121 (
00122     const symmetryFvPatchField<Type>& ptf,
00123     const DimensionedField<Type, volMesh>& iF
00124 )
00125 :
00126     basicSymmetryFvPatchField<Type>(ptf, iF)
00127 {}
00128 
00129 
00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00131 
00132 } // End namespace Foam
00133 
00134 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines