TimeI.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2020 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
28// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29
31(
32 const word& ctrlDictName,
33 const argList& args,
34 const bool enableFunctionObjects,
35 const bool enableLibs
36)
37:
38 Foam::Time
39 (
40 ctrlDictName,
41 args,
42 "system",
43 "constant",
44 enableFunctionObjects,
45 enableLibs
46 )
47{}
48
49
51(
52 const word& ctrlDictName,
53 const fileName& rootPath,
54 const fileName& caseName,
55 const bool enableFunctionObjects,
56 const bool enableLibs
57)
58:
59 Foam::Time
60 (
61 ctrlDictName,
62 rootPath,
63 caseName,
64 "system",
65 "constant",
66 enableFunctionObjects,
67 enableLibs
68)
69{}
70
71
73(
74 const dictionary& dict,
75 const fileName& rootPath,
76 const fileName& caseName,
77 const bool enableFunctionObjects,
78 const bool enableLibs
79)
80:
81 Foam::Time
82 (
83 dict,
84 rootPath,
85 caseName,
86 "system",
87 "constant",
88 enableFunctionObjects,
89 enableLibs
90 )
91{}
92
93
95(
96 const fileName& rootPath,
97 const fileName& caseName,
98 const bool enableFunctionObjects,
99 const bool enableLibs
100)
101:
102 Time
103 (
104 rootPath,
105 caseName,
106 "system",
107 "constant",
108 enableFunctionObjects,
109 enableLibs
110 )
111{}
112
113
114// ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:80
Extract command arguments and options from the supplied argc and argv parameters.
Definition: argList.H:124
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A class for handling file names.
Definition: fileName.H:76
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
dictionary dict
Foam::argList args(argc, argv)