fixedValueFvsPatchField.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 "fixedValueFvsPatchField.H"
00028
00029
00030
00031 namespace Foam
00032 {
00033
00034
00035
00036 template<class Type>
00037 fixedValueFvsPatchField<Type>::fixedValueFvsPatchField
00038 (
00039 const fvPatch& p,
00040 const DimensionedField<Type, surfaceMesh>& iF
00041 )
00042 :
00043 fvsPatchField<Type>(p, iF)
00044 {}
00045
00046
00047 template<class Type>
00048 fixedValueFvsPatchField<Type>::fixedValueFvsPatchField
00049 (
00050 const fixedValueFvsPatchField<Type>& ptf,
00051 const fvPatch& p,
00052 const DimensionedField<Type, surfaceMesh>& iF,
00053 const fvPatchFieldMapper& mapper
00054 )
00055 :
00056 fvsPatchField<Type>(ptf, p, iF, mapper)
00057 {}
00058
00059
00060 template<class Type>
00061 fixedValueFvsPatchField<Type>::fixedValueFvsPatchField
00062 (
00063 const fvPatch& p,
00064 const DimensionedField<Type, surfaceMesh>& iF,
00065 const dictionary& dict
00066 )
00067 :
00068 fvsPatchField<Type>(p, iF, Field<Type>("value", dict, p.size()))
00069 {}
00070
00071
00072 template<class Type>
00073 fixedValueFvsPatchField<Type>::fixedValueFvsPatchField
00074 (
00075 const fixedValueFvsPatchField<Type>& ptf
00076 )
00077 :
00078 fvsPatchField<Type>(ptf)
00079 {}
00080
00081
00082 template<class Type>
00083 fixedValueFvsPatchField<Type>::fixedValueFvsPatchField
00084 (
00085 const fixedValueFvsPatchField<Type>& ptf,
00086 const DimensionedField<Type, surfaceMesh>& iF
00087 )
00088 :
00089 fvsPatchField<Type>(ptf, iF)
00090 {}
00091
00092
00093
00094
00095 template<class Type>
00096 tmp<Field<Type> > fixedValueFvsPatchField<Type>::valueInternalCoeffs
00097 (
00098 const tmp<scalarField>&
00099 ) const
00100 {
00101 return tmp<Field<Type> >
00102 (
00103 new Field<Type>(this->size(), pTraits<Type>::zero)
00104 );
00105 }
00106
00107
00108 template<class Type>
00109 tmp<Field<Type> > fixedValueFvsPatchField<Type>::valueBoundaryCoeffs
00110 (
00111 const tmp<scalarField>&
00112 ) const
00113 {
00114 return *this;
00115 }
00116
00117
00118 template<class Type>
00119 tmp<Field<Type> > fixedValueFvsPatchField<Type>::gradientInternalCoeffs() const
00120 {
00121 return -pTraits<Type>::one*this->patch().deltaCoeffs();
00122 }
00123
00124
00125 template<class Type>
00126 tmp<Field<Type> > fixedValueFvsPatchField<Type>::gradientBoundaryCoeffs() const
00127 {
00128 return this->patch().deltaCoeffs()*(*this);
00129 }
00130
00131
00132 template<class Type>
00133 void fixedValueFvsPatchField<Type>::write(Ostream& os) const
00134 {
00135 fvsPatchField<Type>::write(os);
00136 this->writeEntry("value", os);
00137 }
00138
00139
00140
00141
00142 }
00143
00144
Copyright © 2000-2009 OpenCFD Ltd