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::numericalBeachFvPatchField
29 Foam::numericalBeachFvPatchField
32 Henrik Rusche, Wikki GmbH. All rights reserved.
35 numericalBeachFvPatchField.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef numericalBeachFvPatchField_H
40 #define numericalBeachFvPatchField_H
42 #include "fvPatchFields.H"
43 #include "inletOutletFvPatchFields.H"
44 #include "volFieldsFwd.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class numericalBeachFvPatchField Declaration
53 \*---------------------------------------------------------------------------*/
55 class numericalBeachFvPatchField
57 public inletOutletFvPatchField<vector>
61 //- Thickness measured from the patch
64 //- Offset to allow some constant damping towards the walls
73 //- Runtime type information
74 TypeName("numericalBeach");
79 //- Construct from patch and internal field
80 numericalBeachFvPatchField
83 const DimensionedField<vector, volMesh>&
86 //- Construct from patch, internal field and dictionary
87 numericalBeachFvPatchField
90 const DimensionedField<vector, volMesh>&,
94 //- Construct by mapping given
95 // numericalBeachFvPatchField
97 numericalBeachFvPatchField
99 const numericalBeachFvPatchField&,
101 const DimensionedField<vector, volMesh>&,
102 const fvPatchFieldMapper&
105 //- Construct as copy
106 numericalBeachFvPatchField
108 const numericalBeachFvPatchField&
111 //- Construct and return a clone
112 virtual tmp<fvPatchVectorField> clone() const
114 return tmp<fvPatchVectorField>
116 new numericalBeachFvPatchField
123 //- Construct as copy setting internal field reference
124 numericalBeachFvPatchField
126 const numericalBeachFvPatchField&,
127 const DimensionedField<vector, volMesh>&
130 //- Construct and return a clone setting internal field reference
131 virtual tmp<fvPatchVectorField> clone
133 const DimensionedField<vector, volMesh>& iF
136 return tmp<fvPatchVectorField>
138 new numericalBeachFvPatchField
151 //- Return the damping in the internal field
152 tmp<volScalarField> internalDamping() const;
154 //- Update the coefficients associated with the patch field
155 virtual void updateCoeffs();
158 virtual void write(Ostream&) const;
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 } // End namespace Foam
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 // ************************************************************************* //