CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Proposal for an extension for the timeoptions of Utilities

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2008, 10:37
Default Hi! One problem I encounter
  #1
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi!

One problem I encounter frequently is that the options -time/-latestTime only let me specify either all or one time-step. This is sometimes quite inconvenient (for instance a reconstructPar of a case of which one half has already been reconstructed only gives me the possibility to reconstruct the first half of the timesteps anew or reconstruct one time-step at a time; for utilities like sample that remove old data when being called this is also quite annoying if you want to sample only two time-steps out of 100)

I thought it would be nice to have an option -times that gives the possibility to specifie multiple times:
-times 100,101.5,105
or specify a range
-times 100_110
or an open range
-times 100_
or only ever 2 seconds
-times 100_2_110
or only every 5th time-step in the range
-times 100:5:110
or a combination
-times 0,50,100_

What do you think?

Actually I did an example implementation. It's a bit clumsy because I tried not to modify the application-sources and did not want to modify kernel-classes, but it works alright and as far as I can tell it does not break compatibility with the old options. I'll append it as a patch.

timesOption.patch
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   March 14, 2008, 10:59
Default Yes I totally agree and a more
  #2
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Yes I totally agree and a more general time and time-range selection scheme has already been implemented which will be in included in the next release.

Henry
henry is offline   Reply With Quote

Old   August 20, 2008, 10:23
Default Excuse me for being a bit slow
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Excuse me for being a bit slow-witted. That would be what the point "Extended time command line options." in the 1.5 Release-Notes is referring to, wouldn't it? My problem is, that I can't see how to select such a thing with the stock utilities (reconstructPar/checkMesh), I didn't find any reference in the documentation and in the source ($FOAM_SRC/OpenFOAM/include/addTime*.H etc would be the place to look at, wouldn't it?).

Did I miss something or is it possible that that feature got stuck in git somewhere and simply isn't in the release?

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 21, 2008, 13:09
Default Hi Bernhard, I'm not at my
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Hi Bernhard,

I'm not at my desk at the moment, but take a look at the timeSelector class (I think), it is used in some of the utils like Mach etc.
olesen is offline   Reply With Quote

Old   August 25, 2008, 17:28
Default Hi Mark! Thanks. Didn't see
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Mark!

Thanks. Didn't see that.

As a repentance I wrote this little page on the Wiki for all those who don't want to look it up in the source:
http://openfoamwiki.net/index.php/Ti...ection_Options

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 26, 2008, 20:13
Default Thanks for those tips Bernhard
  #6
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Thanks for those tips Bernhard :-)
msrinath80 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proposal for a modification of the initscripts to make switching versions easier gschaider OpenFOAM Bugs 2 December 21, 2007 15:10
New Utilities coops OpenFOAM Post-Processing 1 July 4, 2007 05:21
find a Phd and a master degree proposal Sabbagh Main CFD Forum 1 January 7, 2007 01:49
Proposal w.r.t. Meshing & Mesh Generation articles jasond CFD-Wiki 3 October 18, 2006 20:03
Reference Format Guidelines - a Proposal Jonas Larsson CFD-Wiki 4 September 16, 2005 05:54


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