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
26 Foam::directMappedVelocityFluxFixedValueFvPatchField
29 Recycles the velocity and flux at a patch to this patch
32 directMappedVelocityFluxFixedValueFvPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef directMappedVelocityFluxFixedValueFvPatchField_H
37 #define directMappedVelocityFluxFixedValueFvPatchField_H
39 #include "fixedValueFvPatchFields.H"
40 #include "directMappedFvPatch.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class directMappedVelocityFluxFixedValueFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 class directMappedVelocityFluxFixedValueFvPatchField
53 public fixedValueFvPatchVectorField
57 //- Name of flux field
62 //- Runtime type information
63 TypeName("directMappedVelocityFlux");
68 //- Construct from patch and internal field
69 directMappedVelocityFluxFixedValueFvPatchField
72 const DimensionedField<vector, volMesh>&
75 //- Construct from patch, internal field and dictionary
76 directMappedVelocityFluxFixedValueFvPatchField
79 const DimensionedField<vector, volMesh>&,
83 //- Construct by mapping given
84 // directMappedVelocityFluxFixedValueFvPatchField
86 directMappedVelocityFluxFixedValueFvPatchField
88 const directMappedVelocityFluxFixedValueFvPatchField&,
90 const DimensionedField<vector, volMesh>&,
91 const fvPatchFieldMapper&
95 directMappedVelocityFluxFixedValueFvPatchField
97 const directMappedVelocityFluxFixedValueFvPatchField&
100 //- Construct and return a clone
101 virtual tmp<fvPatchVectorField> clone() const
103 return tmp<fvPatchVectorField>
105 new directMappedVelocityFluxFixedValueFvPatchField(*this)
109 //- Construct as copy setting internal field reference
110 directMappedVelocityFluxFixedValueFvPatchField
112 const directMappedVelocityFluxFixedValueFvPatchField&,
113 const DimensionedField<vector, volMesh>&
116 //- Construct and return a clone setting internal field reference
117 virtual tmp<fvPatchVectorField> clone
119 const DimensionedField<vector, volMesh>& iF
122 return tmp<fvPatchVectorField>
124 new directMappedVelocityFluxFixedValueFvPatchField(*this, iF)
131 // Evaluation functions
133 //- Update the coefficients associated with the patch field
134 virtual void updateCoeffs();
137 virtual void write(Ostream&) const;
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace Foam
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 // ************************************************************************* //