Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c901f9bc
Commit
c901f9bc
authored
Jun 19, 2019
by
Andrew Heather
Browse files
ENH: runTimeControl - updated time for maxDuration and minTimeStep conditions
parent
12afb3d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/utilities/runTimeControl/runTimeCondition/maxDurationCondition/maxDurationCondition.C
View file @
c901f9bc
...
...
@@ -2,10 +2,8 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd |
Copyright (C) 2018-2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -73,8 +71,6 @@ maxDurationCondition
{
initialised_
=
true
;
}
duration_
=
obr_
.
time
().
userTimeToTime
(
duration_
);
}
...
...
src/functionObjects/utilities/runTimeControl/runTimeCondition/minTimeStepCondition/minTimeStepCondition.C
View file @
c901f9bc
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd |
\\ / A nd |
Copyright (C) 2019 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
| Copyright (C) 2015 OpenFOAM Foundation
...
...
@@ -62,7 +62,9 @@ minTimeStepCondition
:
runTimeCondition
(
name
,
obr
,
dict
,
state
),
minValue_
(
dict
.
get
<
scalar
>
(
"minValue"
))
{}
{
minValue_
=
obr_
.
time
().
userTimeToTime
(
minValue_
);
}
// * * * * * * * * * * * * * * Public Member Functions * * * * * * * * * * * //
...
...
src/functionObjects/utilities/runTimeControl/runTimeCondition/minTimeStepCondition/minTimeStepCondition.H
View file @
c901f9bc
...
...
@@ -62,7 +62,7 @@ protected:
// Protected data
//- Minimum time step value to compare
const
scalar
minValue_
;
scalar
minValue_
;
public:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment