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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::compressible::vibrationShellFvPatchScalarField
28 
29 Group
30  grpVibrationBoundaryConditions
31 
32 Description
33 
34 Usage
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 
57 SourceFiles
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 
71 namespace 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_;
89 
90 
91 public:
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  );
105 
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  (
148  new vibrationShellFvPatchScalarField(*this, iF)
149  );
150  }
151 
152 
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 // ************************************************************************* //
vibrationShellFvPatchScalarField
Foam::vibrationShellFvPatchScalarField::TypeName
TypeName("vibrationShell")
Runtime type information.
vibrationShellModel.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:65
Foam::vibrationShellFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Definition: vibrationShellFvPatchScalarField.C:162
Foam::vibrationShellFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: vibrationShellFvPatchScalarField.H:136
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::mixedFvPatchField
This boundary condition provides a base class for 'mixed' type boundary conditions,...
Definition: mixedFvPatchField.H:123
mixedFvPatchFields.H
Foam::vibrationShellFvPatchScalarField::vibrationShellFvPatchScalarField
vibrationShellFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: vibrationShellFvPatchScalarField.C:40
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::vibrationShellFvPatchScalarField
Definition: vibrationShellFvPatchScalarField.H:89
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:47
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::vibrationShellFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: vibrationShellFvPatchScalarField.C:137
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:54
autoPtr.H