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

Macro Issue Exporting Chart Data

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2011, 13:11
Default Macro Issue Exporting Chart Data
  #1
New Member
 
Brady
Join Date: Jan 2011
Location: Calgary, Alberta, Canada
Posts: 12
Rep Power: 15
recon9 is on a distinguished road
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
recon9 is offline   Reply With Quote

Old   March 24, 2011, 13:46
Default
  #2
New Member
 
Brady
Join Date: Jan 2011
Location: Calgary, Alberta, Canada
Posts: 12
Rep Power: 15
recon9 is on a distinguished road
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;
!}
recon9 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
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


All times are GMT -4. The time now is 08:44.