|
[Sponsors] |
June 29, 2011, 07:41 |
CCL Timestep Lists
|
#1 |
Member
Max
Join Date: Apr 2011
Posts: 47
Rep Power: 15 |
Hi,
I've got finished transient Analysis with several timesteps, and i need to run a CCL for every step to extract specified data. Here is a snippet of the problem Code:
! $ts =350,627,903,1180,1456,1732,2009,2285,2661,2836,3111,3386,3662,3938,4213; ! for($index=1; $cnt<=(15); $cnt++){ > load timestep=$ts[$index] ##Working CCL for one timestep with using the timestep number one time for naming a file like ! open(OFH,">HoeheMassFlowAves $ts[$index].dat"); } Regards Max |
|
June 29, 2011, 08:32 |
|
#2 |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
I think you need a ! before the last }, like:
Code:
!} Code:
} |
|
June 29, 2011, 09:47 |
|
#3 |
Member
Max
Join Date: Apr 2011
Posts: 47
Rep Power: 15 |
Hi Lance,
thanks, would have searched ages for this. Now, there isn't any error. Session gets loaded, but then nothing happens. Is there a mistake in calling the timesteps from the list? I havent found any examples for lists so i just did it like its used in other languages... |
|
June 29, 2011, 10:01 |
|
#4 | |
Senior Member
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22 |
Quote:
Code:
! for($index=1; $index<=(15); $index++){ @array=(2,4,8,10); $var = $array[0]; # gives $var == 2 ($var1,$var2) = $array[2,3]; # gives $var1 == 8, $var2 == 10 |
||
June 29, 2011, 11:13 |
|
#5 |
Member
Max
Join Date: Apr 2011
Posts: 47
Rep Power: 15 |
Yeah...sorry for this stupidity, heat around here seems to get in my head
Its working now, thanks for the great help |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Restart 2-way FSI with different timestep? | Lance | CFX | 10 | April 17, 2013 01:37 |
How to interrupt unsteady calculation and carry on without timestep increase? | aleisia | FLUENT | 1 | March 19, 2011 00:02 |
Timestep study | ijk | CFX | 6 | April 9, 2010 08:38 |
interTrackFoam timestep | virginie_e | OpenFOAM Running, Solving & CFD | 4 | April 6, 2009 06:02 |
Use of Timestep in obtaining solution. | hagupta | CFX | 7 | February 28, 2006 14:14 |