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