CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

Sample time ranges

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 21, 2013, 01:10
Default Sample time ranges
  #1
Pj.
Member
 
Luca
Join Date: Mar 2013
Posts: 68
Rep Power: 4
Pj. is on a distinguished road
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?
Pj. is offline   Reply With Quote

Old   July 10, 2013, 06:41
Default
  #2
New Member
 
Join Date: Jun 2013
Posts: 1
Rep Power: 0
Hella is on a distinguished road
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
Hella is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 28 May 28, 2015 13:37
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37
pisoFoam with k-epsilon turb blows up - Some questions Heroic OpenFOAM Running, Solving & CFD 26 December 17, 2012 04:34
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 04:32
Modeling in micron scale using icoFoam m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 00:36


All times are GMT -4. The time now is 15:18.