Loading...
Searching...
No Matches
createUf.H
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
25Global
26 createUf
27
28Description
29 Creates and initialises the velocity velocity field Uf.
30
31\*---------------------------------------------------------------------------*/
32
33// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34
35// Info<< "Reading/calculating face velocity Uf\n" << endl;
36
37// surfaceVectorField Uf
38// (
39// IOobject
40// (
41// "Uf",
42// runTime.timeName(),
43// mesh,
44// IOobject::READ_IF_PRESENT,
45// IOobject::AUTO_WRITE
46// ),
47// fvc::interpolate(U)
48// );
49
50Info << "Reading/calculating face velocity Uf\n" << endl;
51_Uf = autoPtr<surfaceVectorField>
52 (
53 new surfaceVectorField
54 (
55 IOobject
56 (
57 "Uf",
58 runTime.timeName(),
59 mesh,
60 IOobject::READ_IF_PRESENT,
61 IOobject::AUTO_WRITE
62 ),
63 fvc::interpolate(U)
64 )
65 );
66surfaceScalarField& Uf = _Uf();
67surfaceScalarField Uf0(Uf);
68
69_Uf0 = autoPtr<surfaceVectorField>
70 (
71 new surfaceVectorField(Uf0)
72 );
73
74
75
76// ************************************************************************* //