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