icoTabulatedI.H
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) 2020 OpenFOAM Foundation
9 Copyright (C) 2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29#include "icoTabulated.H"
30
31// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
32
33template<class Specie>
35(
36 const Specie& sp,
37 const nonUniformTable& rho
38)
39:
40 Specie(sp),
41 rho_(rho)
42{}
43
44
45// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46
47template<class Specie>
49(
50 const word& name,
51 const icoTabulated<Specie>& ip
52)
53:
54 Specie(name, ip),
55 rho_(ip.rho_)
56{}
57
58
59template<class Specie>
62{
64}
65
66
67template<class Specie>
70{
72}
73
74
75// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
76
77template<class Specie>
79(
80 scalar p,
81 scalar T
82) const
83{
84 return rho_.f(p, T);
85}
86
87
88template<class Specie>
90(
91 scalar p,
92 scalar T
93) const
94{
95 return p/this->rho(p, T);
96}
97
98
99template<class Specie>
101(
102 scalar p,
103 scalar T
104) const
105{
106 return 0;
107}
108
109
110template<class Specie>
112(
113 scalar p,
114 scalar T
115) const
116{
117 return 0;
118}
119
120
121template<class Specie>
123(
124 scalar p,
125 scalar T
126) const
127{
128 return 0;
129}
130
131
132template<class Specie>
134(
135 scalar p,
136 scalar T
137) const
138{
139 return 0;
140}
141
142
143template<class Specie>
145(
146 scalar p,
147 scalar T
148) const
149{
150 return 0;
151}
152
153
154template<class Specie>
156(
157 scalar p,
158 scalar T
159) const
160{
161 return 0;
162}
163
164
165template<class Specie>
167(
168 scalar p,
169 scalar T
170) const
171{
172 return 0;
173}
174
175
176// ************************************************************************* //
compactSpatialTensor S
The joint motion sub-space (3-DoF)
Definition: joint.H:132
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Definition: Time.C:717
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
tmp< GeometricField< Type, faPatchField, areaMesh > > H() const
Return the H operation source.
Definition: faMatrix.C:633
Incompressible of equation of state using non-uniform tabulated density vs temperature.
Definition: icoTabulated.H:92
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
autoPtr< icoTabulated > clone() const
Construct and return a clone.
Definition: icoTabulatedI.H:61
A class for handling words, derived from Foam::string.
Definition: word.H:68
volScalarField & p
const volScalarField & psi
const volScalarField & T
const volScalarField & Cv
Definition: EEqn.H:8
const volScalarField & Cp
Definition: EEqn.H:7
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Definition: exprTraits.C:59
dictionary dict