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-2023 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 
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace regionModels
35 {
36 
37 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
38 
41 
42 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
43 
45 (
46  const word& modelType,
47  const fvMesh& mesh,
48  const dictionary& dict
49 )
50 :
51  regionFaModel(mesh, "vibratingShell", modelType, dict, true),
52  w_
53  (
54  IOobject
55  (
56  "ws_" + regionName_,
57  regionMesh().time().timeName(),
58  regionMesh().thisDb(),
59  IOobject::MUST_READ,
60  IOobject::AUTO_WRITE
61  ),
62  regionMesh()
63  ),
64  a_
65  (
66  IOobject
67  (
68  "as_" + regionName_,
69  regionMesh().time().timeName(),
70  regionMesh().thisDb(),
71  IOobject::NO_READ,
72  IOobject::AUTO_WRITE
73  ),
74  regionMesh(),
76  ),
77  solid_(dict.subDict("solid")),
78  pName_(dict.get<word>("p")),
79  pa_(mesh.lookupObject<volScalarField>(pName_)),
80  faOptions_(Foam::fa::options::New(mesh))
81 {
82  if (faOptions_.optionList::empty())
83  {
84  Info << "No finite area options present" << endl;
85  }
86 }
87 
88 
89 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
90 
92 {}
93 
94 
95 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96 
97 } // End namespace regionModels
98 } // End namespace Foam
99 
100 // ************************************************************************* //
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
dictionary dict
vibrationShellModel(const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from type name and mesh and dict.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
Foam::fa::options & faOptions_
Reference to faOptions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
word timeName
Definition: getTimeIndex.H:3
const dimensionSet dimAcceleration
dynamicFvMesh & mesh
A class for handling words, derived from Foam::string.
Definition: word.H:63
Base class for area region models.
defineRunTimeSelectionTable(thermalShellModel, dictionary)
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
messageStream Info
Information stream (stdout output on master, null elsewhere)
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition: IOobject.H:180
defineTypeNameAndDebug(KirchhoffShell, 0)
virtual void preEvolveRegion()
Pre-evolve region.
Namespace for OpenFOAM.
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:127