symmetryPointPatchField.C
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "symmetryPointPatchField.H"
00028
00029
00030
00031 namespace Foam
00032 {
00033
00034
00035
00036 template<class Type>
00037 symmetryPointPatchField<Type>::symmetryPointPatchField
00038 (
00039 const pointPatch& p,
00040 const DimensionedField<Type, pointMesh>& iF
00041 )
00042 :
00043 basicSymmetryPointPatchField<Type>(p, iF)
00044 {}
00045
00046
00047 template<class Type>
00048 symmetryPointPatchField<Type>::symmetryPointPatchField
00049 (
00050 const pointPatch& p,
00051 const DimensionedField<Type, pointMesh>& iF,
00052 const dictionary& dict
00053 )
00054 :
00055 basicSymmetryPointPatchField<Type>(p, iF, dict)
00056 {
00057 if (!isType<symmetryPointPatch>(p))
00058 {
00059 FatalIOErrorIn
00060 (
00061 "symmetryPointPatchField<Type>::symmetryPointPatchField\n"
00062 "(\n"
00063 " const pointPatch& p,\n"
00064 " const Field<Type>& field,\n"
00065 " const dictionary& dict\n"
00066 ")\n",
00067 dict
00068 ) << "patch " << this->patch().index() << " not symmetry type. "
00069 << "Patch type = " << p.type()
00070 << exit(FatalIOError);
00071 }
00072 }
00073
00074
00075 template<class Type>
00076 symmetryPointPatchField<Type>::symmetryPointPatchField
00077 (
00078 const symmetryPointPatchField<Type>& ptf,
00079 const pointPatch& p,
00080 const DimensionedField<Type, pointMesh>& iF,
00081 const pointPatchFieldMapper& mapper
00082 )
00083 :
00084 basicSymmetryPointPatchField<Type>(ptf, p, iF, mapper)
00085 {
00086 if (!isType<symmetryPointPatch>(this->patch()))
00087 {
00088 FatalErrorIn
00089 (
00090 "symmetryPointPatchField<Type>::symmetryPointPatchField\n"
00091 "(\n"
00092 " const symmetryPointPatchField<Type>& ptf,\n"
00093 " const pointPatch& p,\n"
00094 " const DimensionedField<Type, pointMesh>& iF,\n"
00095 " const pointPatchFieldMapper& mapper\n"
00096 ")\n"
00097 ) << "Field type does not correspond to patch type for patch "
00098 << this->patch().index() << "." << endl
00099 << "Field type: " << typeName << endl
00100 << "Patch type: " << this->patch().type()
00101 << exit(FatalError);
00102 }
00103 }
00104
00105
00106 template<class Type>
00107 symmetryPointPatchField<Type>::symmetryPointPatchField
00108 (
00109 const symmetryPointPatchField<Type>& ptf,
00110 const DimensionedField<Type, pointMesh>& iF
00111 )
00112 :
00113 basicSymmetryPointPatchField<Type>(ptf, iF)
00114 {}
00115
00116
00117
00118
00119 }
00120
00121
Copyright © 2000-2009 OpenCFD Ltd