Loading...
Searching...
No Matches
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\*---------------------------------------------------------------------------*/
25volScalarField T
26(
27 IOobject
28 (
29 "T",
30 runTime.timeName(),
31 mesh,
32 IOobject::MUST_READ,
33 IOobject::AUTO_WRITE
34 ),
35 mesh
36);
37volScalarField yPos = mesh.C().component(vector::Y);
38volScalarField xPos = mesh.C().component(vector::X);
39
40volScalarField S
41(
42 IOobject
43 (
44 "S",
45 runTime.timeName(),
46 mesh,
47 IOobject::NO_READ,
48 IOobject::AUTO_WRITE
49 ),
50 T.mesh(),
51 dimensionedScalar("zero", dimensionSet(0, 0, -1, 1, 0, 0, 0), 0)
52);
53
54
55
56Info << "Reading transportProperties\n" << endl;
57
58IOdictionary transportProperties
59(
60 IOobject
61 (
62 "transportProperties",
63 runTime.constant(),
64 mesh,
65 IOobject::MUST_READ,
66 IOobject::NO_WRITE
67 )
68);
69
70
71dimensionedScalar DT
72(
73 "DT",
74 dimensionSet( 0, 2, -1, 0, 0, 0, 0),
75 scalar(1)
76);
Foam::fvMesh & mesh
Definition createMesh.H:47
Foam::Time & runTime
Definition createTime.H:33
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE))
volScalarField & T
volScalarField xPos
volScalarField yPos
volScalarField S(IOobject("S", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), T.mesh(), dimensionedScalar("zero", dimensionSet(0, 0, -1, 1, 0, 0, 0), 0))