wedgeFvsPatchField.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 "wedgeFvsPatchField.H"
00028
00029
00030
00031 namespace Foam
00032 {
00033
00034
00035
00036 template<class Type>
00037 wedgeFvsPatchField<Type>::wedgeFvsPatchField
00038 (
00039 const fvPatch& p,
00040 const DimensionedField<Type, surfaceMesh>& iF
00041 )
00042 :
00043 fvsPatchField<Type>(p, iF)
00044 {}
00045
00046
00047 template<class Type>
00048 wedgeFvsPatchField<Type>::wedgeFvsPatchField
00049 (
00050 const wedgeFvsPatchField<Type>& ptf,
00051 const fvPatch& p,
00052 const DimensionedField<Type, surfaceMesh>& iF,
00053 const fvPatchFieldMapper& mapper
00054 )
00055 :
00056 fvsPatchField<Type>(ptf, p, iF, mapper)
00057 {
00058 if (!isType<wedgeFvPatch>(this->patch()))
00059 {
00060 FatalErrorIn
00061 (
00062 "wedgeFvsPatchField<Type>::wedgeFvsPatchField\n"
00063 "(\n"
00064 " const wedgeFvsPatchField<Type>& ptf,\n"
00065 " const fvPatch& p,\n"
00066 " const DimensionedField<Type, surfaceMesh>& iF,\n"
00067 " const fvPatchFieldMapper& mapper\n"
00068 ")\n"
00069 ) << "Field type does not correspond to patch type for patch "
00070 << this->patch().index() << "." << endl
00071 << "Field type: " << typeName << endl
00072 << "Patch type: " << this->patch().type()
00073 << exit(FatalError);
00074 }
00075 }
00076
00077
00078 template<class Type>
00079 wedgeFvsPatchField<Type>::wedgeFvsPatchField
00080 (
00081 const fvPatch& p,
00082 const DimensionedField<Type, surfaceMesh>& iF,
00083 const dictionary& dict
00084 )
00085 :
00086 fvsPatchField<Type>(p, iF, dict)
00087 {
00088 if (!isType<wedgeFvPatch>(p))
00089 {
00090 FatalIOErrorIn
00091 (
00092 "wedgeFvsPatchField<Type>::wedgeFvsPatchField\n"
00093 "(\n"
00094 " const fvPatch& p,\n"
00095 " const Field<Type>& field,\n"
00096 " dictionary& dict\n"
00097 ")\n",
00098 dict
00099 ) << "patch " << this->patch().index() << " not wedge type. "
00100 << "Patch type = " << p.type()
00101 << exit(FatalIOError);
00102 }
00103 }
00104
00105
00106 template<class Type>
00107 wedgeFvsPatchField<Type>::wedgeFvsPatchField
00108 (
00109 const wedgeFvsPatchField<Type>& ptf
00110 )
00111 :
00112 fvsPatchField<Type>(ptf)
00113 {}
00114
00115
00116 template<class Type>
00117 wedgeFvsPatchField<Type>::wedgeFvsPatchField
00118 (
00119 const wedgeFvsPatchField<Type>& ptf,
00120 const DimensionedField<Type, surfaceMesh>& iF
00121 )
00122 :
00123 fvsPatchField<Type>(ptf, iF)
00124 {}
00125
00126
00127
00128
00129 }
00130
00131
Copyright © 2000-2009 OpenCFD Ltd