QGDsolver
The open source CFD toolbox
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Groups
interQHDFoam
createFaceFluxes.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) 2011-2016 OpenFOAM Foundation
9
Copyright (C) 2019 OpenCFD Ltd.
10
Copyright (C) 2016-2019 ISP RAS (www.ispras.ru) UniCFD Group (www.unicfd.ru)
11
-------------------------------------------------------------------------------
12
License
13
This file is part of QGDsolver library, based on OpenFOAM+.
14
15
OpenFOAM is free software: you can redistribute it and/or modify it
16
under the terms of the GNU General Public License as published by
17
the Free Software Foundation, either version 3 of the License, or
18
(at your option) any later version.
19
20
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
21
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23
for more details.
24
25
You should have received a copy of the GNU General Public License
26
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
27
28
Global
29
createFaceFluxes
30
31
Description
32
Creates the face-flux fields.
33
34
\*---------------------------------------------------------------------------*/
35
36
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
37
38
surfaceVectorField
gradAlpha1f
39
(
40
"gradAlpha1f"
,
fvsc::grad
(alpha1)
41
);
42
43
surfaceTensorField
gradUf
44
(
45
"gradUf"
,
46
fvsc::grad
(
U
)
47
);
48
49
surfaceVectorField
gradpf
50
(
51
"gradpf"
,
52
fvsc::grad
(
p
)
53
);
54
55
surfaceScalarField
rhoPhi
56
(
57
"rhoPhi"
,
58
rho1*
phi
59
);
60
61
surfaceVectorField
phiUfRhof
62
(
63
"phiUf"
,
64
phi
*
Uf
* rho1
65
);
66
phiUfRhof
.setOriented(
true
);
67
68
surfaceVectorField
phiRhofWf
69
(
70
"phiUf"
,
71
phi
*
Uf
* rho1
72
);
73
phiRhofWf
.setOriented(
true
);
74
75
surfaceScalarField
phiAlpha1f
76
(
77
"phiAlpha1f"
,
78
phi
*
alpha1f
79
);
80
81
surfaceScalarField
phiAlpha2f
82
(
83
"phiAlpha2f"
,
84
phi
*
alpha1f
85
);
86
87
surfaceScalarField
phiwo1
88
(
89
"phiwo1"
,
90
phi
*
alpha1f
91
);
92
surfaceScalarField
phiwo2
93
(
94
"phiwo2"
,
95
phi
*
alpha1f
96
);
97
surfaceScalarField
phiw1
98
(
99
"phiw1"
,
100
phi
*
alpha1f
101
);
102
surfaceScalarField
phiw2
103
(
104
"phiw2"
,
105
phi
*
alpha1f
106
);
107
108
surfaceScalarField
phiwm
109
(
110
"phiwm"
,
111
phiwo1
*0.0
112
);
113
surfaceScalarField
coeffp
114
(
115
"coeffp"
,
116
linearInterpolate(Tau1 /
rho
)
117
);
118
119
surfaceScalarField
phiWr
120
(
121
"phiWr"
,
122
phiwo1
*0.0
123
);
124
125
surfaceScalarField
phiu
126
(
127
"phiu"
,
128
mesh.Sf() & linearInterpolate(
U
)
129
);
130
surfaceScalarField
phi1
131
(
132
"phi1"
,
133
mesh.Sf() & linearInterpolate(
U
)
134
);
135
surfaceScalarField
phi2
136
(
137
"phi2"
,
138
mesh.Sf() & linearInterpolate(
U
)
139
);
140
141
142
// ************************************************************************* //
phiAlpha1f
surfaceScalarField phiAlpha1f("phiAlpha1f", phi *alpha1f)
phi1
surfaceScalarField phi1("phi1", mesh.Sf()&linearInterpolate(U))
phiw2
surfaceScalarField phiw2("phiw2", phi *alpha1f)
rho
volScalarField rho(IOobject("rho", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), thermo.rho())
phiw1
surfaceScalarField phiw1("phiw1", phi *alpha1f)
U
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
phiRhofWf
surfaceVectorField phiRhofWf("phiUf", phi *Uf *rho1)
gradUf
gradUf
Definition:
updateFields.H:34
phiwo2
phiwo2
Definition:
updateFluxes.H:43
phi2
surfaceScalarField phi2("phi2", mesh.Sf()&linearInterpolate(U))
phiwo1
phiwo1
Definition:
updateFluxes.H:42
phiUfRhof
surfaceVectorField phiUfRhof("phiUf", phi *Uf *rho1)
phiwm
surfaceScalarField phiwm("phiwm", phiwo1 *0.0)
gradpf
surfaceVectorField gradpf("gradpf", fvsc::grad(p))
p
volScalarField & p
Definition:
createFields.H:14
rhoPhi
surfaceScalarField rhoPhi("rhoPhi", rho1 *phi)
alpha1f
surfaceScalarField alpha1f("alpha1f",)
phi
phi
Definition:
createFaceFluxes.H:70
Uf
Uf
Definition:
updateFields.H:30
phiu
phiu
——–Start———
Definition:
updateFluxes.H:33
gradAlpha1f
gradAlpha1f
Definition:
updateFields.H:36
phiWr
surfaceScalarField phiWr("phiWr", phiwo1 *0.0)
Foam::fvsc::grad
tmp< surfaceVectorField > grad(const volScalarField &vF)
phiAlpha2f
surfaceScalarField phiAlpha2f("phiAlpha2f", phi *alpha1f)
coeffp
surfaceScalarField coeffp("coeffp",)
Generated by
1.8.5