OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

timeVaryingUniformFixedValuePointPatchField.H

Go 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::timeVaryingUniformFixedValuePointPatchField
00027 
00028 Description
00029     A time-varying form of a uniform fixed value boundary condition.
00030 
00031 See Also
00032     Foam::timeVaryingUniformFixedValueFvField
00033 
00034 SourceFiles
00035     timeVaryingUniformFixedValuePointPatchField.C
00036 
00037 \*---------------------------------------------------------------------------*/
00038 
00039 #ifndef timeVaryingUniformFixedValuePointPatchField_H
00040 #define timeVaryingUniformFixedValuePointPatchField_H
00041 
00042 #include "fixedValuePointPatchField.H"
00043 #include "interpolationTable.H"
00044 
00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00046 
00047 namespace Foam
00048 {
00049 
00050 /*---------------------------------------------------------------------------*\
00051         Class timeVaryingUniformFixedValuePointPatchField Declaration
00052 \*---------------------------------------------------------------------------*/
00053 
00054 template<class Type>
00055 class timeVaryingUniformFixedValuePointPatchField
00056 :
00057     public fixedValuePointPatchField<Type>
00058 {
00059     // Private data
00060 
00061         //- the time series being used, including the bounding treatment
00062         interpolationTable<Type> timeSeries_;
00063 
00064 
00065 public:
00066 
00067     //- Runtime type information
00068     TypeName("timeVaryingUniformFixedValue");
00069 
00070 
00071     // Constructors
00072 
00073         //- Construct from patch and internal field
00074         timeVaryingUniformFixedValuePointPatchField
00075         (
00076             const pointPatch&,
00077             const DimensionedField<Type, pointMesh>&
00078         );
00079 
00080         //- Construct from patch, internal field and dictionary
00081         timeVaryingUniformFixedValuePointPatchField
00082         (
00083             const pointPatch&,
00084             const DimensionedField<Type, pointMesh>&,
00085             const dictionary&
00086         );
00087 
00088         //- Construct by mapping given patch field onto a new patch
00089         timeVaryingUniformFixedValuePointPatchField
00090         (
00091             const timeVaryingUniformFixedValuePointPatchField<Type>&,
00092             const pointPatch&,
00093             const DimensionedField<Type, pointMesh>&,
00094             const pointPatchFieldMapper&
00095         );
00096 
00097         //- Construct as copy
00098         timeVaryingUniformFixedValuePointPatchField
00099         (
00100             const timeVaryingUniformFixedValuePointPatchField<Type>&
00101         );
00102 
00103         //- Construct and return a clone
00104         virtual autoPtr<pointPatchField<Type> > clone() const
00105         {
00106             return autoPtr<pointPatchField<Type> >
00107             (
00108                 new timeVaryingUniformFixedValuePointPatchField<Type>(*this)
00109             );
00110         }
00111 
00112         //- Construct as copy setting internal field reference
00113         timeVaryingUniformFixedValuePointPatchField
00114         (
00115             const timeVaryingUniformFixedValuePointPatchField<Type>&,
00116             const DimensionedField<Type, pointMesh>&
00117         );
00118 
00119         //- Construct and return a clone setting internal field reference
00120         virtual autoPtr<pointPatchField<Type> > clone
00121         (
00122             const DimensionedField<Type, pointMesh>& iF
00123         ) const
00124         {
00125             return autoPtr<pointPatchField<Type> >
00126             (
00127                 new timeVaryingUniformFixedValuePointPatchField<Type>(*this, iF)
00128             );
00129         }
00130 
00131 
00132     // Member functions
00133 
00134         // Access
00135 
00136             //- Return the time series used
00137             const interpolationTable<Type>& timeSeries() const
00138             {
00139                 return timeSeries_;
00140             }
00141 
00142 
00143         // Evaluation functions
00144 
00145             //- Update the coefficients associated with the patch field
00146             virtual void updateCoeffs();
00147 
00148 
00149         //- Write
00150         virtual void write(Ostream&) const;
00151 };
00152 
00153 
00154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00155 
00156 } // End namespace Foam
00157 
00158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00159 
00160 #ifdef NoRepository
00161 #   include "timeVaryingUniformFixedValuePointPatchField.C"
00162 #endif
00163 
00164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00165 
00166 #endif
00167 
00168 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd