1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Abstract base class for tetrahedral mesh patch fields. Note the special
30 mechanism at work here: the field itself holds no values, as the point
31 values belong to the internal field. However, the field will create a
32 list of values if required.
37 \*---------------------------------------------------------------------------*/
39 #ifndef tetPolyPatchField_H
40 #define tetPolyPatchField_H
42 #include "PointPatchField.H"
43 #include "tetPolyPatch.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 // Class forward declarations
51 template<class> class tetFemMatrix;
54 /*---------------------------------------------------------------------------*\
55 Class tetPolyPatchField Declaration
56 \*---------------------------------------------------------------------------*/
59 class tetPolyPatchField
61 public PointPatchField
75 //- Construct from patch and internal field
79 const DimensionedField<Type, tetPointMesh>&
83 tetPolyPatchField(const tetPolyPatchField<Type>&);
85 //- Construct and return a clone
86 virtual autoPtr<tetPolyPatchField<Type> > clone() const
88 return autoPtr<tetPolyPatchField<Type> >
90 new tetPolyPatchField<Type>(*this)
94 //- Construct as copy setting internal field reference
97 const tetPolyPatchField<Type>&,
98 const DimensionedField<Type, tetPointMesh>&
101 //- Construct and return a clone setting internal field reference
102 virtual autoPtr<tetPolyPatchField<Type> > clone
104 const DimensionedField<Type, tetPointMesh>& iF
107 return autoPtr<tetPolyPatchField<Type> >
109 new tetPolyPatchField<Type>(*this, iF)
116 virtual ~tetPolyPatchField()
122 virtual void operator=(const Type& t)
126 Foam::tetPolyPatchField,
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 } // End namespace Foam
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 # include "tetPolyPatchField.C"
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 // ************************************************************************* //