ITHACA-FV
2023.1
Loading...
Searching...
No Matches
src
ITHACA_FOMPROBLEMS
UnsteadyNSTTurb
createPhi.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
██╗████████╗██╗ ██╗ █████╗ ██████╗ █████╗ ███████╗██╗ ██╗
3
██║╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔══██╗ ██╔════╝██║ ██║
4
██║ ██║ ███████║███████║██║ ███████║█████╗█████╗ ██║ ██║
5
██║ ██║ ██╔══██║██╔══██║██║ ██╔══██║╚════╝██╔══╝ ╚██╗ ██╔╝
6
██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ╚████╔╝
7
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═══╝
8
9
* In real Time Highly Advanced Computational Applications for Finite Volumes
10
* Copyright (C) 2017 by the ITHACA-FV authors
11
-------------------------------------------------------------------------------
12
13
License
14
This file is part of ITHACA-FV
15
16
ITHACA-FV is free software: you can redistribute it and/or modify
17
it under the terms of the GNU Lesser General Public License as published by
18
the Free Software Foundation, either version 3 of the License, or
19
(at your option) any later version.
20
21
ITHACA-FV is distributed in the hope that it will be useful,
22
but WITHOUT ANY WARRANTY; without even the implied warranty of
23
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
GNU Lesser General Public License for more details.
25
26
You should have received a copy of the GNU Lesser General Public License
27
along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
28
29
\*---------------------------------------------------------------------------*/
30
31
#ifndef createPhi_H
32
#define createPhi_H
33
34
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
35
36
Info <<
"Reading/calculating face flux field phi\n"
<< endl;
37
38
_phi
= autoPtr<surfaceScalarField>
39
(
40
new
surfaceScalarField
41
(
42
IOobject
43
(
44
"phi"
,
45
runTime
.timeName(),
46
mesh
,
47
IOobject::READ_IF_PRESENT,
48
IOobject::AUTO_WRITE
49
),
50
linearInterpolate(
U
) &
mesh
.Sf()
51
)
52
);
53
surfaceScalarField&
phi
=
_phi
();
54
55
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56
57
#endif
58
59
// ************************************************************************* //
mesh
Foam::fvMesh & mesh
Definition
createMesh.H:47
runTime
Foam::Time & runTime
Definition
createTime.H:33
phi
surfaceScalarField & phi
Definition
createPhi.H:46
U
volVectorField & U
Definition
createFields.H:42
_phi
_phi
Definition
createFields.H:110
Generated by
1.11.0