vibrationShellModel.C
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-2021 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 \*---------------------------------------------------------------------------*/
27 
28 #include "vibrationShellModel.H"
29 #include "faMesh.H"
30 #include "fvMesh.H"
31 #include "fvPatchFields.H"
32 
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 
35 namespace Foam
36 {
37 namespace regionModels
38 {
39 
40 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
41 
43 
45 
46 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
47 
49 (
50  const word& modelType,
51  const fvPatch& p,
52  const dictionary& dict
53 )
54 :
55  regionFaModel(p, "vibratingShell", modelType, dict, true),
56  pName_(dict.get<word>("p")),
57  pa_(p.boundaryMesh().mesh().lookupObject<volScalarField>(pName_)),
58  w_
59  (
60  IOobject
61  (
62  "ws_" + regionName_,
63  p.boundaryMesh().mesh().time().timeName(),
64  p.boundaryMesh().mesh(),
67  ),
68  regionMesh()
69  ),
70  a_
71  (
72  IOobject
73  (
74  "as_" + regionName_,
75  p.boundaryMesh().mesh().time().timeName(),
76  p.boundaryMesh().mesh(),
79  ),
80  regionMesh(),
82  ),
83  faOptions_(Foam::fa::options::New(p)),
84  solid_(dict.subDict("solid"))
85 {
86  if (!faOptions_.optionList::size())
87  {
88  Info << "No finite area options present" << endl;
89  }
90 }
91 
92 
93 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
94 
96 {}
97 
98 
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 
101 } // End namespace regionModels
102 } // End namespace Foam
103 
104 // ************************************************************************* //
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:169
vibrationShellModel
Intermediate class for vibration-shell finite-area models.
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::IOobject::AUTO_WRITE
Definition: IOobject.H:194
vibrationShellModel.H
Foam::fa::options::New
static options & New(const fvPatch &p)
Definition: faOptions.C:102
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::regionModels::defineTypeNameAndDebug
defineTypeNameAndDebug(KirchhoffShell, 0)
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:369
faMesh.H
Foam::regionModels::vibrationShellModel::vibrationShellModel
vibrationShellModel(const word &modelType, const fvPatch &patch, const dictionary &dict)
Construct from type name and mesh and dict.
Definition: vibrationShellModel.C:49
Foam::Info
messageStream Info
Information stream (stdout output on master, null elsewhere)
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:65
Foam::regionModels::defineRunTimeSelectionTable
defineRunTimeSelectionTable(thermalShellModel, dictionary)
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:42
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::dimAcceleration
const dimensionSet dimAcceleration
fvPatchFields.H
Foam::regionModels::regionFaModel
Base class for area region models.
Definition: regionFaModel.H:113
Foam::regionModels::vibrationShellModel::preEvolveRegion
virtual void preEvolveRegion()
Pre-evolve region.
Definition: vibrationShellModel.C:95
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::IOobject::NO_READ
Definition: IOobject.H:188
Foam::IOobject::MUST_READ
Definition: IOobject.H:185