Fix tutorials: typo in tutorials/viscoelastic/viscoelasticFluidFoam/S-MDCPP/constant...
[OpenFOAM-1.6-ext.git] / src / finiteVolume / fields / fvPatchFields / derived / directMappedVelocityFluxFixedValue / directMappedVelocityFluxFixedValueFvPatchField.H
blob78c0f463bb3ae2753ee2ce681e8f9ecf302b3482
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::directMappedVelocityFluxFixedValueFvPatchField
28 Description
29     Recycles the velocity and flux at a patch to this patch
31 SourceFiles
32     directMappedVelocityFluxFixedValueFvPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef directMappedVelocityFluxFixedValueFvPatchField_H
37 #define directMappedVelocityFluxFixedValueFvPatchField_H
39 #include "fixedValueFvPatchFields.H"
40 #include "directMappedFvPatch.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 /*---------------------------------------------------------------------------*\
48           Class directMappedVelocityFluxFixedValueFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 class directMappedVelocityFluxFixedValueFvPatchField
53     public fixedValueFvPatchVectorField
55     // Private data
57         //- Name of flux field
58         word phiName_;
60 public:
62     //- Runtime type information
63     TypeName("directMappedVelocityFlux");
66     // Constructors
68         //- Construct from patch and internal field
69         directMappedVelocityFluxFixedValueFvPatchField
70         (
71             const fvPatch&,
72             const DimensionedField<vector, volMesh>&
73         );
75         //- Construct from patch, internal field and dictionary
76         directMappedVelocityFluxFixedValueFvPatchField
77         (
78             const fvPatch&,
79             const DimensionedField<vector, volMesh>&,
80             const dictionary&
81         );
83         //- Construct by mapping given
84         //  directMappedVelocityFluxFixedValueFvPatchField
85         //  onto a new patch
86         directMappedVelocityFluxFixedValueFvPatchField
87         (
88             const directMappedVelocityFluxFixedValueFvPatchField&,
89             const fvPatch&,
90             const DimensionedField<vector, volMesh>&,
91             const fvPatchFieldMapper&
92         );
94         //- Construct as copy
95         directMappedVelocityFluxFixedValueFvPatchField
96         (
97             const directMappedVelocityFluxFixedValueFvPatchField&
98         );
100         //- Construct and return a clone
101         virtual tmp<fvPatchVectorField> clone() const
102         {
103             return tmp<fvPatchVectorField>
104             (
105                 new directMappedVelocityFluxFixedValueFvPatchField(*this)
106             );
107         }
109         //- Construct as copy setting internal field reference
110         directMappedVelocityFluxFixedValueFvPatchField
111         (
112             const directMappedVelocityFluxFixedValueFvPatchField&,
113             const DimensionedField<vector, volMesh>&
114         );
116         //- Construct and return a clone setting internal field reference
117         virtual tmp<fvPatchVectorField> clone
118         (
119             const DimensionedField<vector, volMesh>& iF
120         ) const
121         {
122             return tmp<fvPatchVectorField>
123             (
124                 new directMappedVelocityFluxFixedValueFvPatchField(*this, iF)
125             );
126         }
129     // Member functions
131         // Evaluation functions
133             //- Update the coefficients associated with the patch field
134             virtual void updateCoeffs();
136         //- Write
137         virtual void write(Ostream&) const;
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace Foam
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 #endif
149 // ************************************************************************* //