ITHACA-FV
2023.1
Loading...
Searching...
No Matches
tutorials
CFD
24HyperReduction
createFields.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
License
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
Info <<
"Reading field T\n"
<< endl;
26
27
volScalarField
T
28
(
29
IOobject
30
(
31
"T"
,
32
runTime
.timeName(),
33
mesh
,
34
IOobject::MUST_READ,
35
IOobject::AUTO_WRITE
36
),
37
mesh
38
);
39
40
41
Info <<
"Reading transportProperties\n"
<< endl;
42
43
IOdictionary
transportProperties
44
(
45
IOobject
46
(
47
"transportProperties"
,
48
runTime
.constant(),
49
mesh
,
50
IOobject::MUST_READ_IF_MODIFIED,
51
IOobject::NO_WRITE
52
)
53
);
54
55
56
Info <<
"Reading diffusivity DT\n"
<< endl;
57
58
dimensionedScalar DT
59
(
60
transportProperties
.lookup(
"DT"
)
61
);
mesh
Foam::fvMesh & mesh
Definition
createMesh.H:47
runTime
Foam::Time & runTime
Definition
createTime.H:33
transportProperties
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE))
T
volScalarField & T
Definition
createFields.H:41
Generated by
1.11.0