Newer
Older
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2019-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::regionFaModels::KirchhoffShell
Description
Vibration-shell finite-area model.
Usage
Example of the boundary condition specification:
\verbatim
<patchName>
{
f0 <scalar>;
f1 <scalar>;
f2 <scalar>;
// Inherited entries
...
nNonOrthCorr <int>; // read from another dict
nSubCycles <int>;
}
\endverbatim
where the entries mean:
\table
Property | Description | Type | Reqd | Deflt
vibrationShellModel | Type name: KirchhoffShell | word | yes | -
f0 | Damping coefficient [1/s] | scalar | yes | -
f1 | Damping coefficient [1/s] | scalar | yes | -
f2 | Damping coefficient [1/s] | scalar | yes | -
\endtable
The inherited entries are elaborated in:
- \link vibrationShellModel.H \endlink
SourceFiles
KirchhoffShell.C
\*---------------------------------------------------------------------------*/
#ifndef Foam_regionModels_KirchhoffShell_H
#define Foam_regionModels_KirchhoffShell_H
#include "volFieldsFwd.H"
#include "vibrationShellModel.H"
#include "faCFD.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
namespace regionModels
{
/*---------------------------------------------------------------------------*\
Class KirchhoffShell Declaration
\*---------------------------------------------------------------------------*/
class KirchhoffShell
:
public vibrationShellModel
{
// Private Data
//- External surface source [Pa]
const areaScalarField ps_;
//- Thickness [m]
areaScalarField h_;
//- Laplace of the displacement
areaScalarField laplaceW_;
//- Laplace of the Laplace for the displacement
areaScalarField laplace2W_;
//- Cache w.oldTime() in sub-cycling
areaScalarField w0_;
//- Cache w.oldTime.oldTime() in sub-cycling
areaScalarField w00_;
//- Cache laplaceW.oldTime() in sub-cycling
areaScalarField laplaceW0_;
//- Cache laplace2.oldTime() in sub-cycling
areaScalarField laplace2W0_;
//- Damping coefficients [1/s]
const dimensionedScalar f0_;
const dimensionedScalar f1_;
const dimensionedScalar f2_;
//- Number of non orthogonal correctors
label nNonOrthCorr_;
//- Sub cycles
label nSubCycles_;
// Private Member Functions
//- Initialise Kirchhoff shell model
bool init(const dictionary& dict);
//- Solve energy equation
void solveDisplacement();
public:
//- Runtime type information
TypeName("KirchhoffShell");
// Constructors
//- Construct from components and dict
KirchhoffShell
(
const word& modelType,
const fvMesh& mesh,
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
const dictionary& dict
);
//- No copy construct
KirchhoffShell(const KirchhoffShell&) = delete;
//- No copy assignment
void operator=(const KirchhoffShell&) = delete;
//- Destructor
virtual ~KirchhoffShell() = default;
// Member Functions
// Fields
//- Return stiffness
const tmp<areaScalarField> D() const;
//- Return density [Kg/m3]
const tmp<areaScalarField> rho() const;
// Evolution
//- Pre-evolve thermal baffle
virtual void preEvolveRegion();
//- Evolve the thermal baffle
virtual void evolveRegion();
// IO
//- Provide some feedback
virtual void info();
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace regionModels
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //