|
|
|
timeVaryingUniformFixedValueFvPatchField.HGo to the documentation of this file.00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 Foam::timeVaryingUniformFixedValueFvPatchField 00027 00028 Description 00029 A time-varying form of a uniform fixed value boundary condition. 00030 00031 Example of the boundary condition specification: 00032 @verbatim 00033 inlet 00034 { 00035 type timeVaryingUniformFixedValue; 00036 fileName "$FOAM_CASE/time-series"; 00037 outOfBounds clamp; // (error|warn|clamp|repeat) 00038 } 00039 @endverbatim 00040 00041 Note 00042 This class is derived directly from a fixedValue patch rather than from 00043 a uniformFixedValue patch. 00044 00045 See Also 00046 Foam::interpolationTable and Foam::fixedValueFvPatchField 00047 00048 SourceFiles 00049 timeVaryingUniformFixedValueFvPatchField.C 00050 00051 \*---------------------------------------------------------------------------*/ 00052 00053 #ifndef timeVaryingUniformFixedValueFvPatchField_H 00054 #define timeVaryingUniformFixedValueFvPatchField_H 00055 00056 #include "fixedValueFvPatchField.H" 00057 #include "interpolationTable.H" 00058 00059 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00060 00061 namespace Foam 00062 { 00063 00064 /*---------------------------------------------------------------------------*\ 00065 Class timeVaryingUniformFixedValueFvPatch Declaration 00066 \*---------------------------------------------------------------------------*/ 00067 00068 template<class Type> 00069 class timeVaryingUniformFixedValueFvPatchField 00070 : 00071 public fixedValueFvPatchField<Type> 00072 { 00073 // Private data 00074 00075 //- The time series being used, including the bounding treatment 00076 interpolationTable<Type> timeSeries_; 00077 00078 00079 public: 00080 00081 //- Runtime type information 00082 TypeName("timeVaryingUniformFixedValue"); 00083 00084 00085 // Constructors 00086 00087 //- Construct from patch and internal field 00088 timeVaryingUniformFixedValueFvPatchField 00089 ( 00090 const fvPatch&, 00091 const DimensionedField<Type, volMesh>& 00092 ); 00093 00094 //- Construct from patch, internal field and dictionary 00095 timeVaryingUniformFixedValueFvPatchField 00096 ( 00097 const fvPatch&, 00098 const DimensionedField<Type, volMesh>&, 00099 const dictionary& 00100 ); 00101 00102 //- Construct by mapping given patch field onto a new patch 00103 timeVaryingUniformFixedValueFvPatchField 00104 ( 00105 const timeVaryingUniformFixedValueFvPatchField<Type>&, 00106 const fvPatch&, 00107 const DimensionedField<Type, volMesh>&, 00108 const fvPatchFieldMapper& 00109 ); 00110 00111 //- Construct as copy 00112 timeVaryingUniformFixedValueFvPatchField 00113 ( 00114 const timeVaryingUniformFixedValueFvPatchField<Type>& 00115 ); 00116 00117 //- Construct and return a clone 00118 virtual tmp<fvPatchField<Type> > clone() const 00119 { 00120 return tmp<fvPatchField<Type> > 00121 ( 00122 new timeVaryingUniformFixedValueFvPatchField<Type>(*this) 00123 ); 00124 } 00125 00126 //- Construct as copy setting internal field reference 00127 timeVaryingUniformFixedValueFvPatchField 00128 ( 00129 const timeVaryingUniformFixedValueFvPatchField<Type>&, 00130 const DimensionedField<Type, volMesh>& 00131 ); 00132 00133 //- Construct and return a clone setting internal field reference 00134 virtual tmp<fvPatchField<Type> > clone 00135 ( 00136 const DimensionedField<Type, volMesh>& iF 00137 ) const 00138 { 00139 return tmp<fvPatchField<Type> > 00140 ( 00141 new timeVaryingUniformFixedValueFvPatchField<Type>(*this, iF) 00142 ); 00143 } 00144 00145 00146 // Member functions 00147 00148 // Access 00149 00150 //- Return the time series used 00151 const interpolationTable<Type>& timeSeries() const 00152 { 00153 return timeSeries_; 00154 } 00155 00156 00157 // Evaluation functions 00158 00159 //- Update the coefficients associated with the patch field 00160 virtual void updateCoeffs(); 00161 00162 00163 //- Write 00164 virtual void write(Ostream&) const; 00165 }; 00166 00167 00168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00169 00170 } // End namespace Foam 00171 00172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00173 00174 #ifdef NoRepository 00175 # include "timeVaryingUniformFixedValueFvPatchField.C" 00176 #endif 00177 00178 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00179 00180 #endif 00181 00182 // ************************************************************************* // |