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

Java Makro for SurfaceIntegralReport

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By taillanm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2017, 15:08
Default Java Macro for SurfaceIntegralReport
  #1
New Member
 
d
Join Date: Jun 2016
Posts: 14
Rep Power: 10
Awesomo is on a distinguished road
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
Attached Images
File Type: png Unbenannt.PNG (8.3 KB, 15 views)

Last edited by Awesomo; May 17, 2017 at 11:03.
Awesomo is offline   Reply With Quote

Old   May 15, 2017, 17:37
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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?
me3840 is offline   Reply With Quote

Old   May 15, 2017, 17:42
Default
  #3
New Member
 
d
Join Date: Jun 2016
Posts: 14
Rep Power: 10
Awesomo is on a distinguished road
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.
Awesomo is offline   Reply With Quote

Old   May 16, 2017, 00:56
Default
  #4
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 511
Rep Power: 20
JBeilke is on a distinguished road
You need to create one report per surface. You probably created just one report and selected all the surfaces as input.
JBeilke is offline   Reply With Quote

Old   May 16, 2017, 01:39
Default
  #5
New Member
 
d
Join Date: Jun 2016
Posts: 14
Rep Power: 10
Awesomo is on a distinguished road
But I need this for an x amount of surfaces which can not be handmade.. any tips for a Java macro for this?
Awesomo is offline   Reply With Quote

Old   May 17, 2017, 07:56
Default
  #6
Member
 
Join Date: Nov 2015
Posts: 57
Rep Power: 10
taillanm is on a distinguished road
Quote:
Originally Posted by Awesomo View Post
But I need this for an x amount of surfaces which can not be handmade.. any tips for a Java macro for this?

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
Awesomo likes this.
taillanm is offline   Reply With Quote

Old   May 17, 2017, 11:01
Default
  #7
New Member
 
d
Join Date: Jun 2016
Posts: 14
Rep Power: 10
Awesomo is on a distinguished road
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?
Attached Images
File Type: png Unbenannt.PNG (8.2 KB, 8 views)
Awesomo is offline   Reply With Quote

Old   May 17, 2017, 21:46
Default
  #8
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
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.
me3840 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
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


All times are GMT -4. The time now is 23:21.