FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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