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