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