OpenFOAM: API Guide
v2012
The open source CFD toolbox
thermo.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-2017 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
\*---------------------------------------------------------------------------*/
27
28
#include "
thermo.H
"
29
30
/* * * * * * * * * * * * * * * private static data * * * * * * * * * * * * * */
31
32
template
<
class
Thermo,
template
<
class
>
class
Type>
33
const
Foam::scalar
Foam::species::thermo<Thermo, Type>::tol_
= 1.0e-4;
34
35
template
<
class
Thermo,
template
<
class
>
class
Type>
36
const
int
Foam::species::thermo<Thermo, Type>::maxIter_
= 100;
37
38
39
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40
41
template
<
class
Thermo,
template
<
class
>
class
Type>
42
Foam::species::thermo<Thermo, Type>::thermo
(
const
dictionary
&
dict
)
43
:
44
Thermo(
dict
)
45
{}
46
47
48
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
49
50
template
<
class
Thermo,
template
<
class
>
class
Type>
51
void
Foam::species::thermo<Thermo, Type>::write
(
Ostream
& os)
const
52
{
53
Thermo::write
(os);
54
}
55
56
57
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
58
59
template
<
class
Thermo,
template
<
class
>
class
Type>
60
Foam::Ostream
& Foam::species::operator<<
61
(
62
Ostream
& os,
const
thermo<Thermo, Type>
& st
63
)
64
{
65
st.
write
(os);
66
return
os;
67
}
68
69
70
// ************************************************************************* //
Foam::species::thermo::write
void write(Ostream &os) const
Write to Ostream.
Definition:
thermo.C:51
Foam::species::thermo::thermo
thermo(const Thermo &sp)
Construct from components.
Definition:
thermoI.H:35
dict
dictionary dict
Definition:
searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition:
dictionary.H:121
Foam::Ostream::write
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
Foam::species::thermo
Definition:
thermo.H:55
Foam::vtk::write
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Definition:
foamVtkOutputTemplates.C:35
thermo.H
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition:
Ostream.H:56
src
thermophysicalModels
specie
thermo
thermo
thermo.C
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.