|
[Sponsors] |
February 12, 2011, 15:43 |
reconstruct certain time steps
|
#1 |
Member
Join Date: Nov 2010
Posts: 54
Rep Power: 15 |
Hi
I have the time directories as 0, 0.001, 0.002 .... 0.499, 0.5 in the processors. I want to reconstruct only 0, 0.05, 0.10, ... 0.40, 0.45, 0.50 I know one could individually generate these time directories, but is there a single statement that I could use to reconstruct at intervals of 0.05 instead of 0.001? Thanks, gk |
|
February 14, 2011, 03:51 |
|
#2 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,679
Rep Power: 40 |
Quote:
If you don't mind a small workaround: Use a small Perl/Python/whatever program to generate the required list for you and then use it. For example, Code:
reconstructPar $(myTimes) ... Code:
-times 0,0.05,0.10,0.40,0.45,0.50 |
||
February 14, 2011, 13:19 |
|
#3 |
Member
Join Date: Nov 2010
Posts: 54
Rep Power: 15 |
Thanks so much, Mark!
This looks quite convenient too. gk |
|
April 30, 2019, 13:22 |
|
#4 | |
Member
Ramin
Join Date: Oct 2015
Posts: 33
Rep Power: 10 |
It doesn't have to be a time range. You can do it with this command:
Quote:
|
||
December 9, 2021, 03:30 |
floating point loop command
|
#5 |
New Member
Dohyun Kim
Join Date: Jul 2021
Posts: 2
Rep Power: 0 |
I've solved this problem using a loop command in linux terminal as below.
The range from 36 to 38, with time interval 0.05. Code:
for t in $(seq 36 .05 38); do reconstructPar -time $t; done |
|
December 9, 2021, 05:14 |
|
#6 |
Member
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8 |
Without using an explicit for loop, try:
Code:
reconstructPar -time $(seq -s ',' 0 0.05 0.5)
__________________
"When in doubt, use brute force." -- Ken Thompson |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calculation diverge after continue to run | zhajingjing | OpenFOAM | 0 | April 28, 2010 05:35 |
Time Steps gets smaller and smaller | titio | OpenFOAM Running, Solving & CFD | 1 | July 22, 2009 09:19 |
UDF for time steps | David | FLUENT | 0 | August 14, 2007 12:54 |
Time steps - Large Eddy - LES | Gernot | FLUENT | 0 | September 14, 2005 12:54 |
Number of time steps in fluent 4-NT | Newbie | FLUENT | 0 | March 24, 2001 14:44 |