barotropicCompressibilityModel.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) 2011 OpenFOAM Foundation
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 InClass
27  barotropicCompressibilityModel
28 
29 \*---------------------------------------------------------------------------*/
30 
32 
33 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 
35 namespace Foam
36 {
37  defineTypeNameAndDebug(barotropicCompressibilityModel, 0);
38  defineRunTimeSelectionTable(barotropicCompressibilityModel, dictionary);
39 }
40 
41 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
42 
44 (
45  const dictionary& compressibilityProperties,
46  const volScalarField& gamma,
47  const word& psiName
48 )
49 :
50  compressibilityProperties_(compressibilityProperties),
51  psi_
52  (
53  IOobject
54  (
55  psiName,
56  gamma.mesh().time().timeName(),
57  gamma.mesh()
58  ),
59  gamma.mesh(),
60  dimensionedScalar(dimensionSet(0, -2, 2, 0, 0), Zero)
61  ),
62  gamma_(gamma)
63 {}
64 
65 
66 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
67 
69 (
70  const dictionary& compressibilityProperties
71 )
72 {
73  compressibilityProperties_ = compressibilityProperties;
74 
75  return true;
76 }
77 
78 
79 // ************************************************************************* //
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:169
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
Foam::defineRunTimeSelectionTable
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
barotropicCompressibilityModel.H
Foam::barotropicCompressibilityModel::barotropicCompressibilityModel
barotropicCompressibilityModel(const barotropicCompressibilityModel &)=delete
No copy construct.
Foam::dimensionSet
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Definition: dimensionSet.H:108
Foam::barotropicCompressibilityModel::read
virtual bool read(const dictionary &compressibilityProperties)=0
Read compressibilityProperties dictionary.
Definition: barotropicCompressibilityModel.C:69
Foam::dimensionedScalar
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Definition: dimensionedScalarFwd.H:42
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
gamma
const scalar gamma
Definition: EEqn.H:9
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)