CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > STAR-CCM+

Macro to export data

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 13, 2010, 14:51
Default Macro to export data
  #1
Member
 
Jonny
Join Date: Aug 2009
Posts: 60
Rep Power: 8
Jonny6001 is on a distinguished road
Hello, I am new to Star CCM+ but even newer to Java. I fully appreciate how useful it can be and am starting to try and learn it.

At the moment my general Java knowledge is poor but specific Star CCM+ opperations is non existent. I would like to create a macro that exports some of the solution's Scalar plots plus scalar area averaged values at the last itteration, so the final value of outlet area averaged temperature for example. I would like this data and scalar images exported to an Excel file with the name of the simulation as the name for the excel file.

Is this a pretty tricky task to do?

Any help would be gratefully appreciated.

Thanks a lot.
Jonny6001 is offline   Reply With Quote

Old   January 6, 2011, 17:52
Default
  #2
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 637
Rep Power: 12
abdul099 is on a distinguished road
The easiest way is to record a macro and edit it slightly (e.g. path names...)

You can access report values via a macro with something like

AreaAverageReport areaAverageReport_0 = (AreaAverageReport) simulation_0.getReportManager().getReport("Name of report");
areaAverageReport_0.printReport();

I'm not sure wheter it's possible to write an Excel file directly from ccm+, but at least, you can write a .csv-file. It will need just a little knowledge of java programming.

Let me know if you still need help.
abdul099 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to export every data w.r.t time to txt file jaho CFX 94 August 25, 2015 09:45
export data at nodes Meenu FLUENT 1 December 30, 2011 02:24
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
macro for data automatic export Andrea CFX 0 May 9, 2008 08:09
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


All times are GMT -4. The time now is 11:52.