# Extracting velocity data

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 March 7, 2011, 08:31 Extracting velocity data #1 New Member   Sebastian Join Date: Mar 2011 Posts: 13 Rep Power: 8 Hello, I have a simulation with a rectangular flow channel and a body inside. I would now like to measure fluid velocity at distinct points at every iteration and somehow output it to a table for further analysis (outside of star-ccm+). The points of interest lie in 3 planes perpendicular to the flow channel, each plane having 3 probe lines, each with 20 measurement points, giving (20 * 3 * 3 ) = 180 distinct measurement points in total. After consulting the manual my idea was to create 9 derived parts (probe lines) with a resolution of 20 each to emulate my measurement points. I fail however to set up proper reports on those probe lines since all I can do is have the maximum or minimum or average values and the like for each probe line reported instead of the values for all the 20 measurement points. What I could do of course would be to set up 180 probe points, along with 180 reports, 180 monitors and 180 plots. But clearly there must be a much more convenient way to measure data the way I want to do it, but I can't quite see how. Any pointers would be welcome! If it is of any help, I know my way around in Java and could use the API if that would be the only way to do it conveniently.

 March 7, 2011, 18:44 #2 Senior Member   Join Date: Apr 2009 Posts: 129 Rep Power: 10 Tools > Tables > XYZ Internal Table You won't be able to monitor these values on a plot in Star-CCM+, but you can view and export a table on demand for each iteration and view them there.

 March 9, 2011, 07:24 #3 New Member   Sebastian Join Date: Mar 2011 Posts: 13 Rep Power: 8 The XYZ Internal Table is a step in the right direction, however I need to extract the values automatically for every iteration/time step in a large simulation involving 100.000 iterations. Is there any possibility to have this accomplished automatically?

 March 9, 2011, 13:10 #4 Senior Member   Join Date: Apr 2009 Posts: 129 Rep Power: 10 Yes, automating exports is possible, but with XYZ tables it looks like it needs to be done with macros. I'm not fluent enough in Java to help you with that, so try contacting support or maybe someone else in this forum can chime in. Here's a starting point: https://www.wiki.ed.ac.uk/display/st...each+time+step Please share your final macro if you ever get it done. EDIT: try cd-adapco's forum too: http://javahut.cd-adapco.com/

March 9, 2011, 17:04
#5
New Member

Sebastian
Join Date: Mar 2011
Posts: 13
Rep Power: 8
I wrote a macro today and it actually works, I'll attach it to this post. Just for educational purposes though, I would strongly advise against using it like it is now, since it's just a quick 'n dirty piece of code without any error checks. Especially since f-w posted a link to a much more matured macro for this purpose. I will however refine it and post it when it's done either here or rather at the JAVA Hut website. Not easy by the way since StarCCMs JAVA API is very badly documented.

I'm still wondering if there is a built-in way to accomplish this though and so I also wrote to CD-adapco support. Anyhow thanks for your help and I'll post again once I know more.
Attached Files
 ObserverTest.java.txt (1.5 KB, 108 views)

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post ComFlu Main CFD Forum 0 November 15, 2009 18:30 unknown FLUENT 0 October 11, 2009 13:15 Janneke FLUENT 3 August 19, 2008 10:11 Kali Sanjay Phoenics 0 November 6, 2006 07:10 Syed Siemens 0 July 21, 2006 11:38

All times are GMT -4. The time now is 14:27.

 Contact Us - CFD Online - Privacy Statement - Top