CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Sample time ranges (http://www.cfd-online.com/Forums/openfoam-post-processing/118084-sample-time-ranges.html)

Pj. May 21, 2013 01:10

Sample time ranges
 
A very quick question. I want to use sample on my simulation only for time 30+.

The help says
Code:

-time <ranges>    comma-separated time ranges - eg, ':10,20,40-70,1000:'
I tried
Code:

sample -time 30-60
Code:

sample -time '30-60'
Code:

sample -time :30-60:
Code:

sample -time ':30-60:'
but i always get

Code:

Create time

rejected ill-formed or empty range: ERROR--> FOAM Warning :
    From function Ostream& operator<<(Ostream&, const token&)
    in file db/IOstreams/token/tokenIO.C at line 95
    Error token



--> FOAM FATAL ERROR:
No times selected

    From function sample
    in file db/Time/timeSelector.C at line 257.

FOAM exiting

Which is the correct syntax?

Hella July 10, 2013 06:41

Probably you found out by yourself, but to complete the Thread:

Code:

sample -time '30:60'
should work.

How do you get the detailed help? Using
Code:

sample -help
(in OF 2.2) I only get

Code:

Usage: sample [-latestTime] [-time ranges] [-parallel] [-constant] [-noZero] [-case dir] [-region name]  [-help] [-doc] [-srcDoc]
Best regards,
Hella


All times are GMT -4. The time now is 09:50.