forked from deepmodeling/deepflame-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathO2.H
More file actions
151 lines (103 loc) · 3.84 KB
/
Copy pathO2.H
File metadata and controls
151 lines (103 loc) · 3.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::O2
Description
water
SourceFiles
O2.C
\*---------------------------------------------------------------------------*/
#ifndef O2_H
#define O2_H
#include "liquidProperties.H"
#include "NSRDSfunc0.H"
#include "NSRDSfunc1.H"
#include "NSRDSfunc5.H"
#include "NSRDSfunc6.H"
#include "NSRDSfunc14.H"
#include "APIdiffCoefFunc.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
class O2
:
public liquidProperties
{
NSRDSfunc5 rho_;
NSRDSfunc1 pv_;
NSRDSfunc6 hl_;
NSRDSfunc14 Cp_;
NSRDSfunc0 h_;
NSRDSfunc14 Cpg_;
NSRDSfunc0 B_;
NSRDSfunc1 mu_;
NSRDSfunc1 mug_;
NSRDSfunc0 kappa_;
NSRDSfunc0 kappag_;
NSRDSfunc6 sigma_;
APIdiffCoefFunc D_;
public:
friend class liquidProperties;
TypeName("O2");
O2();
O2
(
const liquidProperties& l,
const NSRDSfunc5& density,
const NSRDSfunc1& vapourPressure,
const NSRDSfunc6& heatOfVapourisation,
const NSRDSfunc14& heatCapacity,
const NSRDSfunc0& enthalpy,
const NSRDSfunc14& idealGasHeatCapacity,
const NSRDSfunc0& secondVirialCoeff,
const NSRDSfunc1& dynamicViscosity,
const NSRDSfunc1& vapourDynamicViscosity,
const NSRDSfunc0& thermalConductivity,
const NSRDSfunc0& vapourThermalConductivity,
const NSRDSfunc6& surfaceTension,
const APIdiffCoefFunc& vapourDiffussivity
);
O2(const dictionary& dict);
virtual autoPtr<liquidProperties> clone() const
{
return autoPtr<liquidProperties>(new O2(*this));
}
inline scalar rho(scalar p, scalar T) const;
inline scalar pv(scalar p, scalar T) const;
inline scalar hl(scalar p, scalar T) const;
inline scalar Cp(scalar p, scalar T) const;
inline scalar h(scalar p, scalar T) const;
inline scalar Cpg(scalar p, scalar T) const;
inline scalar B(scalar p, scalar T) const;
inline scalar mu(scalar p, scalar T) const;
inline scalar mug(scalar p, scalar T) const;
inline scalar kappa(scalar p, scalar T) const;
inline scalar kappag(scalar p, scalar T) const;
inline scalar sigma(scalar p, scalar T) const;
inline scalar D(scalar p, scalar T) const;
inline scalar D(scalar p, scalar T, scalar Wb) const;
void writeData(Ostream& os) const;
friend Ostream& operator<<(Ostream& os, const O2& l);
};
Ostream& operator<<(Ostream& os, const O2& l);
}
#include "O2I.H"
#endif
// ************************************************************************* //