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 #include "mappedFvPatchField.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class mappedFilmPressureFvPatchScalarField Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public zeroGradientFvPatchField<scalar>,
54  public mappedFvPatchField<scalar>
55 {
56 
57 public:
58 
59  //- Runtime type information
60  TypeName("mappedFilmPressure");
61 
62 
63  // Constructors
64 
65  //- Construct from patch, internal field and dictionary
67  (
68  const fvPatch&,
70  const dictionary&
71  );
72 
73  //- Construct by mapping given mappedFilmPressureFvPatchScalarField
74  // onto a new patch
76  (
78  const fvPatch&,
80  const fvPatchFieldMapper&
81  );
82 
83  //- Disallow copy without setting internal field reference
85  (
87  ) = delete;
88 
89  //- Copy constructor setting internal field reference
91  (
94  );
95 
96  //- Construct and return a clone setting internal field reference
98  (
100  ) const
101  {
103  (
105  );
106  }
107 
108 
109  // Member Functions
110 
111  // Mapping functions
112 
113  //- Map the given fvPatchField onto this fvPatchField
114  virtual void map
115  (
116  const fvPatchField<scalar>&,
117  const fvPatchFieldMapper&
118  );
119 
120  //- Reset the fvPatchField to the given fvPatchField
121  // Used for mesh to mesh mapping
122  virtual void reset(const fvPatchField<scalar>&);
123 
124 
125  // Evaluation functions
126 
127  //- Update the coefficients associated with the patch field
128  virtual void updateCoeffs();
129 
130 
131  //- Write
132  virtual void write(Ostream&) const;
133 };
134 
135 
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 
138 } // End namespace Foam
139 
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 
142 #endif
143 
144 // ************************************************************************* //
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:160
Foam::fvPatchFieldMapper.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:87
tmp< fvPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
Definition: fvPatchField.H:203
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 reset(const fvPatchField< scalar > &)
Reset the fvPatchField to the given fvPatchField.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void map(const fvPatchField< scalar > &, const fvPatchFieldMapper &)
Map the given fvPatchField onto this fvPatchField.
mappedFilmPressureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &, const dictionary &)
Construct from patch, internal field and dictionary.
Base class for mapped patch fields.
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.