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