|
[Sponsors] |
March 24, 2011, 13:11 |
Macro Issue Exporting Chart Data
|
#1 |
New Member
Brady
Join Date: Jan 2011
Location: Calgary, Alberta, Canada
Posts: 12
Rep Power: 15 |
Hello,
I am having troubles with a macro I am trying to use to export chart data over a range of time steps. Below is the code I am attempting to use. It works and exports the first set of data but stops after that. Any idea why it doesn't keep running the loop? Code: !$start = 400; !$finish = 1400; !for($i=$start,$i<=$finish,$i+5) { > load timestep=$i EXPORT: Export File = C:/CFX/Unsteady 10 k e/$i.csv Export Chart Name = Pressure Chart Overwrite = On END >export chart !} Thanks, Brady |
|
March 24, 2011, 13:46 |
|
#2 |
New Member
Brady
Join Date: Jan 2011
Location: Calgary, Alberta, Canada
Posts: 12
Rep Power: 15 |
Nevermind, I figured it out. I created a new variable "name" to name my .csv files in sequential order. Here are my changes:
p, li { white-space: pre-wrap; } !$start = 400; !$finish = 420; !$name = 1; !for($i=$start; $i<$finish; $name++) { > load timestep=$i EXPORT: Export File = C:/CFX/Unsteady 10 k e/$name.csv Export Chart Name = Pressure Chart Overwrite = On END >export chart !$i=$i+5; !} |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Exporting data (cell values, ascii) and obtaining more data than cells! | TfG | FLUENT | 3 | April 3, 2015 01:18 |
Exporting multiple flow data from particle tracks | andreas_haakansson | FLUENT | 6 | March 16, 2011 02:34 |
[OpenFOAM] Cell Data to Point Data Issues | mcintoshjamie | ParaView | 2 | November 19, 2009 04:55 |
Extract Data from Polyline in a Macro (Tecplot) | Joe | Main CFD Forum | 0 | September 5, 2008 04:46 |
Extract Data from Polyline in a Macro | Joe | Main CFD Forum | 0 | September 5, 2008 04:45 |