Loading...
Searching...
No Matches
TimeStateI.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) 2016 OpenFOAM Foundation
9 Copyright (C) 2021 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU 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
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
31inline Foam::scalar Foam::TimeState::timeOutputValue() const
32{
34}
35
36
38{
40}
41
42
43// FUTURE?
44// inline Foam::scalar Foam::TimeState::timeValue() const noexcept
45// {
46// return dimensionedScalar::value();
47// }
48
50inline Foam::label Foam::TimeState::timeIndex() const noexcept
51{
52 return timeIndex_;
53}
54
56inline Foam::scalar Foam::TimeState::deltaTValue() const noexcept
57{
58 return deltaT_;
59}
60
62inline Foam::scalar Foam::TimeState::deltaT0Value() const noexcept
63{
64 return deltaT0_;
65}
66
71}
72
77}
78
79
80inline bool Foam::TimeState::writeTime() const noexcept
81{
82 return writeTime_;
83}
84
85
86// ************************************************************************* //
virtual scalar timeToUserTime(const scalar t) const
Convert the real-time (s) into user-time (e.g. CA deg).
Definition TimeState.C:48
scalar timeOutputValue() const
Return the current user-time value. (ie, after applying any timeToUserTime() conversion).
Definition TimeStateI.H:24
dimensionedScalar deltaT0() const
Return old time step.
Definition TimeStateI.H:67
label timeIndex() const noexcept
Return the current time index.
Definition TimeStateI.H:43
scalar deltaTValue() const noexcept
Return time step value.
Definition TimeStateI.H:49
dimensionedScalar deltaT() const
Return time step.
Definition TimeStateI.H:61
bool writeTime() const noexcept
True if this is a write interval.
Definition TimeStateI.H:73
scalar deltaT0Value() const noexcept
Return old time step value.
Definition TimeStateI.H:55
const word & timeName() const noexcept
Return the current time name.
Definition TimeStateI.H:30
scalar deltaT0_
Definition TimeState.H:68
const word & name() const noexcept
const scalar & value() const noexcept
A class for handling words, derived from Foam::string.
Definition word.H:66
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
const direction noexcept
Definition scalarImpl.H:265
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.