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

Outputing scene pictures from a cluster

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 18, 2011, 12:14
Default Outputing scene pictures from a cluster
  #1
New Member
 
kw
Join Date: Oct 2011
Posts: 24
Rep Power: 5
Kasey is on a distinguished road
I am in a group using Star-CCM+ to measure drag on a locomotive. One thing that the company we are doing the work for wants is more pictures of pressure and velocity profiles around the locos. We are meshing and solving these simulations in two separate steps using a cluster. What we have been dong is bringing the meshed file, or the solved file back into star ccm, but now we have such huge files that it isn't working.

I have tried setting up a java macro to export these scenes, but it was never working out to give me the image I wanted.

Any ideas on coding an image export into the run script for a cluster?

Thanks.
Kasey is offline   Reply With Quote

Old   November 18, 2011, 13:44
Default
  #2
Super Moderator
 
Ryne Whitehill
Join Date: Aug 2009
Posts: 313
Rep Power: 10
rwryne is on a distinguished road
Quote:
Originally Posted by Kasey View Post
I am in a group using Star-CCM+ to measure drag on a locomotive. One thing that the company we are doing the work for wants is more pictures of pressure and velocity profiles around the locos. We are meshing and solving these simulations in two separate steps using a cluster. What we have been dong is bringing the meshed file, or the solved file back into star ccm, but now we have such huge files that it isn't working.

I have tried setting up a java macro to export these scenes, but it was never working out to give me the image I wanted.

Any ideas on coding an image export into the run script for a cluster?

Thanks.

No need for a script. Open the scene you want, and go to the Update item in the properties tere. It lets you save off pictures of that scene at certain iteration steps. (i.e. every 100, 10, whatever)
rwryne is offline   Reply With Quote

Old   November 19, 2011, 09:00
Default
  #3
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 637
Rep Power: 12
abdul099 is on a distinguished road
rwyne is right, you only need some lines in your macro when you want to save the same scene in different views or display different quantities.

There was a memory leak at least until version 6.02. After some time steps I got a "Heap space out of memory exception", when my simulation contained a lot of complex scenes. In this case, it would be better to add some lines to the macro and use only a few scenes and change the view, hardcopy, change the view, hardcopy etc... and solve after you've got all pictures for the current time step / iteration.

When you want to code something, just record a macro on a small, simple case and add this lines at the appropriate position to your run macro. You only have to make sure, the variable names (e.g. scene names) are the same and the applied view is the one you want to see.
It's also possible to execute a macro from your macro, but when you're not very familiar with macro programming, I recommend to copy and past the lines from a recorded macro.
abdul099 is offline   Reply With Quote

Old   November 22, 2011, 11:14
Default
  #4
New Member
 
kw
Join Date: Oct 2011
Posts: 24
Rep Power: 5
Kasey is on a distinguished road
Thanks for the help. I will try that out. The difficulty I had with using a macro, and hopefully it's not the same when saving at certain iterations, is that most of the time I didn't really know how to get the macro to zoom in on or display exactly what I wanted. For example sometimes when I wanted to export a mesh scene after the volume mesh, it would sometimes display the wind tunnel that I created around the part, and sometimes not. Sometimes it would be zoomed in, but other times the zooming would be way out to where I couldn't see what I wanted. All this with the same macro, which I recorded to have the scene hardcopied from the orientation I wanted. I must have screwed up on something.

I would also like to be able to get a visual check of the mesh before I send it into the solver. Would it be best to toil with the macro, or is there a way to do the update as the meshing finishes?

thanks
Kasey is offline   Reply With Quote

Old   November 23, 2011, 16:26
Default
  #5
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 637
Rep Power: 12
abdul099 is on a distinguished road
When you just output the image, it will write the scene as you can see it when you would open the scene. It will show the same boundaries, representation etc.
The macro gives you more flexibility since you can code some lines to change the view, apply another representation etc.
Usually it works fine, it should always give the same view once you've recorded it. When it gives different views, it might be due to a slow update of the scene, so the macro tries to hardcopy the scene although it's not updated correctly. Just go to your macro and delete all unnecessary changes of views since the recorded macro contains ALL commands, even when just zooming in a little. When that doesn't help, just try to hardcopy it twice with the same file name.

You can also code your macro to hardcopy a scene and do nothing until you've inspected the picture and tell it to continue, but of course that will add some complexity. When you don't do that interactively, maybe let the macro loop to look for a file with a specified name, like "continue" and break out of the loop when the file is present. Especially the command to continue is somehow ungainly.
But on the other hand, you should maybe work on your process to make it stable enough, so you don't have to inspect the mesh by your own before running it.

What you can't do is to mesh your case, apply a representation and output the image WITHOUT a macro. The problem is, you can't apply the representation without using a macro or doing it by hand.
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
Parallel cluster solving with OpenFoam? P2P Cluster? hornig OpenFOAM Programming & Development 8 December 5, 2010 17:06
How to install the OpenFoam in the cluster. Please help me! flying OpenFOAM Installation 6 November 27, 2009 04:00
Linux Cluster Performance with a bi-processor PC M. FLUENT 1 April 22, 2005 09:25
To Jonas: Linux Cluster Mark Render Main CFD Forum 1 June 20, 2002 04:19


All times are GMT -4. The time now is 04:26.