|November 13, 2010, 14:51||
Macro to export data
Join Date: Aug 2009
Posts: 62Rep Power: 9
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.
|January 6, 2011, 17:52||
Join Date: Oct 2009
Posts: 637Rep Power: 13
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");
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.
|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|