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-------------------------------------------------------------------------------
10License
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
26InClass
27 barotropicCompressibilityModel
28
29\*---------------------------------------------------------------------------*/
30
32
33// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34
35namespace Foam
36{
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 (
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// ************************************************************************* //
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
virtual bool read()
Re-read model coefficients if they have changed.
Abstract class for barotropic compressibility models.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Definition: dimensionSet.H:109
A class for handling words, derived from Foam::string.
Definition: word.H:68
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition: className.H:121
const scalar gamma
Definition: EEqn.H:9
dynamicFvMesh & mesh
word timeName
Definition: getTimeIndex.H:3
Namespace for OpenFOAM.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.