mappedFilmPressureFvPatchScalarField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2023 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::mappedFilmPressureFvPatchScalarField
26 
27 Description
28  Film pressure boundary condition which maps the neighbouring fluid patch
29  pressure to both the surface patch and internal film pressure field.
30 
31 SourceFiles
32  mappedFilmPressureFvPatchScalarField.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef mappedFilmPressureFvPatchScalarField_H
37 #define mappedFilmPressureFvPatchScalarField_H
38 
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class mappedFilmPressureFvPatchScalarField Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
52  public zeroGradientFvPatchField<scalar>
53 {
54 
55 public:
56 
57  //- Runtime type information
58  TypeName("mappedFilmPressure");
59 
60 
61  // Constructors
62 
63  //- Construct from patch, internal field and dictionary
65  (
66  const fvPatch&,
68  const dictionary&
69  );
70 
71  //- Construct by mapping given mappedFilmPressureFvPatchScalarField
72  // onto a new patch
74  (
76  const fvPatch&,
78  const fieldMapper&
79  );
80 
81  //- Disallow copy without setting internal field reference
83  (
85  ) = delete;
86 
87  //- Copy constructor setting internal field reference
89  (
92  );
93 
94  //- Construct and return a clone setting internal field reference
96  (
98  ) const
99  {
101  (
103  );
104  }
105 
106 
107  // Member Functions
108 
109  // Evaluation functions
110 
111  //- Update the coefficients associated with the patch field
112  virtual void updateCoeffs();
113 
114 
115  //- Write
116  virtual void write(Ostream&) const;
117 };
118 
119 
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Abstract base class for field mapping.
Definition: fieldMapper.H:48
tmp< fvPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
Definition: fvPatchField.H:204
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
Film pressure boundary condition which maps the neighbouring fluid patch pressure to both the surface...
TypeName("mappedFilmPressure")
Runtime type information.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
mappedFilmPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
A class for managing temporary objects.
Definition: tmp.H:55
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
Namespace for OpenFOAM.