vibrationShellFvPatchScalarField.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2019-2020 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::compressible::vibrationShellFvPatchScalarField
28
29Group
30 grpVibrationBoundaryConditions
31
32Description
33
34Usage
35 Example of the boundary condition specification:
36 \verbatim
37 <masterPatchName>
38 {
39 // Mandatory entries (unmodifiable)
40 type vibrationShell;
41
42 // Mandatory/Optional (inherited) entries
43 ...
44 }
45 \endverbatim
46
47 where the entries mean:
48 \table
49 Property | Description | Type | Reqd | Dflt
50 type | Type name: vibrationShell | word | yes | -
51 \endtable
52
53 The inherited entries are elaborated in:
54 - \link mixedFvPatchField.H \endlink
55 - \link vibrationShellModel.H \endlink
56
57SourceFiles
58 vibrationShellFvPatchScalarField.C
59
60\*---------------------------------------------------------------------------*/
61
62#ifndef vibrationShellFvPatchScalarField_H
63#define vibrationShellFvPatchScalarField_H
64
65#include "autoPtr.H"
66#include "vibrationShellModel.H"
67#include "mixedFvPatchFields.H"
68
69// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
70
71namespace Foam
72{
73
74/*---------------------------------------------------------------------------*\
75 Class vibrationShellFvPatchScalarField Declaration
76\*---------------------------------------------------------------------------*/
77
79:
80 public mixedFvPatchField<scalar>
81{
82 // Private Data
83
84 //- Thermal baffle
85 autoPtr<regionModels::vibrationShellModel> baffle_;
86
87 //- Dictionary
88 dictionary dict_;
90
91public:
92
93 //- Runtime type information
94 TypeName("vibrationShell");
95
96
97 // Constructors
98
99 //- Construct from patch and internal field
101 (
102 const fvPatch&,
104 );
106 //- Construct from patch, internal field and dictionary
108 (
109 const fvPatch&,
111 const dictionary&
112 );
113
114 //- Construct by mapping given
115 //- vibrationShellFvPatchScalarField onto a new patch
117 (
119 const fvPatch&,
121 const fvPatchFieldMapper&
122 );
123
124 //- Construct and return a clone
125 virtual tmp<fvPatchScalarField> clone() const
126 {
128 (
130 );
131 }
132
133 //- Construct as copy setting internal field reference
135 (
138 );
139
140 //- Construct and return a clone setting internal field reference
142 (
144 ) const
145 {
147 (
149 );
150 }
151
153 // Member Functions
154
155 //- Update the coefficients associated with the patch field
156 virtual void updateCoeffs();
157
158 //- Write
159 virtual void write(Ostream&) const;
160};
161
162
163// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164
165} // End namespace Foam
166
167// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168
169
170#endif
171
172// ************************************************************************* //
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:62
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:71
This boundary condition provides a base class for 'mixed' type boundary conditions,...
A class for managing temporary objects.
Definition: tmp.H:65
virtual tmp< fvPatchScalarField > clone(const DimensionedField< scalar, volMesh > &iF) const
Construct and return a clone setting internal field reference.
TypeName("vibrationShell")
Runtime type information.
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Namespace for OpenFOAM.
runTime write()
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73