|
[Sponsors] |
May 15, 2017, 15:08 |
Java Macro for SurfaceIntegralReport
|
#1 |
New Member
d
Join Date: Jun 2016
Posts: 14
Rep Power: 10 |
Hello Guys!
How can I export surface integral reports for many surfaces in an csv file? In the picture you can see the individual report solutions. If i want to report it by an xyz-table, it is giving me only the sum of all surfaces and not the solution for each surface. Can anybody help here? Is there some kind of a written Java Makro or another solution? Greetings Last edited by Awesomo; May 17, 2017 at 11:03. |
|
May 15, 2017, 17:37 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
You can write a Java macro for this, yes. But it lists the values for each surface there on your screenshot, isn't that what you need? Or do you want the value for each face?
|
|
May 15, 2017, 17:42 |
|
#3 |
New Member
d
Join Date: Jun 2016
Posts: 14
Rep Power: 10 |
Thanks. To clarify my questions yes I want the values for each surface. My Surface Integral Reports shows also each value in the log but does give me the Sum of all surfaces as the final solution. Do you understand the point? It shows me the separate surfaces, but I can not use and export these single values; only the Sum of all Values.
|
|
May 16, 2017, 00:56 |
|
#4 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 511
Rep Power: 20 |
You need to create one report per surface. You probably created just one report and selected all the surfaces as input.
|
|
May 16, 2017, 01:39 |
|
#5 |
New Member
d
Join Date: Jun 2016
Posts: 14
Rep Power: 10 |
But I need this for an x amount of surfaces which can not be handmade.. any tips for a Java macro for this?
|
|
May 17, 2017, 07:56 |
|
#6 | |
Member
Join Date: Nov 2015
Posts: 57
Rep Power: 10 |
Quote:
Hi, yes you can easily make a macro that creates a report per surface and then extract its value in a common csv file. This is done by looping over all surfaces you have. Best is to record yourself doing it for one surface and then finding the appropriate java language to loop over all surfaces |
||
May 17, 2017, 11:01 |
|
#7 |
New Member
d
Join Date: Jun 2016
Posts: 14
Rep Power: 10 |
I have done it for one surface manually already, but I am not able to do it in a loop. Since the part and surfaces which are gettin created do have some "random" names (attached below). Any tips there for the looped macro? How can I say it which part and which surface should be taken for the reports?
|
|
May 17, 2017, 21:46 |
|
#8 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24 |
The easiest way would be to either name your surfaces with a common name that you can find easily with Java methods like .contains("string").
Another way would be to create some sort of filter query and use that as an input to your Java macro. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Java | sarahtuvia | STAR-CCM+ | 0 | March 31, 2016 10:42 |
Running salome-meca from a java script | Iche_Bins | Structural Mechanics | 0 | October 9, 2013 06:44 |
Macro to access java files in sub-directory | abraum | STAR-CCM+ | 3 | July 11, 2012 02:46 |
Getting OpenFOAM to coexist with an existing JAVA VM | nik777 | OpenFOAM Installation | 5 | February 22, 2007 07:21 |
java vs c++ | zxaar | Main CFD Forum | 10 | December 3, 2004 02:05 |