Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
12License
13 This file is part of ITHACA-FV
14 ITHACA-FV is free software: you can redistribute it and/or modify
15 it under the terms of the GNU Lesser 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 ITHACA-FV is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU Lesser General Public License for more details.
22 You should have received a copy of the GNU Lesser General Public License
23 along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
24\*---------------------------------------------------------------------------*/
25
26#ifndef createPhi_H
27#define createPhi_H
28
29Info << "Reading/calculating face flux field phi\n" << endl;
30
31_phi = autoPtr<surfaceScalarField>
32 (
33 new surfaceScalarField
34 (
35 IOobject
36 (
37 "phi",
38 runTime.timeName(),
39 mesh,
40 IOobject::READ_IF_PRESENT,
41 IOobject::AUTO_WRITE
42 ),
43 linearInterpolate(U) & mesh.Sf()
44 )
45 );
46surfaceScalarField& phi = _phi();
47surfaceScalarField phi0(phi);
48
49_phi0 = autoPtr<surfaceScalarField>
50 (
51 new surfaceScalarField(phi0)
52 );
53
54#endif
Foam::fvMesh & mesh
Definition createMesh.H:47
Foam::Time & runTime
Definition createTime.H:33
surfaceScalarField & phi
Definition createPhi.H:46
surfaceScalarField phi0(phi)
_phi0
Definition createPhi.H:49
volVectorField & U
_phi