Loading...
Searching...
No Matches
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\*---------------------------------------------------------------------------*/
32
33// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34
35namespace Foam
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 ),
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:191
Abstract class for barotropic compressibility models.
const dictionary & compressibilityProperties() const
Return the phase transport properties dictionary.
barotropicCompressibilityModel(const barotropicCompressibilityModel &)=delete
No copy construct.
virtual bool read(const dictionary &compressibilityProperties)=0
Read compressibilityProperties dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
A class for handling words, derived from Foam::string.
Definition word.H:66
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Definition className.H:142
const scalar gamma
Definition EEqn.H:9
dynamicFvMesh & mesh
word timeName
Definition getTimeIndex.H:3
Namespace for OpenFOAM.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static constexpr const zero Zero
Global zero (0).
Definition zero.H:127
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.