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

turn off auto open scene

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 26, 2014, 16:22
Default turn off auto open scene
  #1
Member
 
Join Date: Nov 2012
Posts: 74
Rep Power: 14
JohnAB is on a distinguished road
Hello,

just a simple question:
I'm remotely running starccm+ on a computer that has no graphics capabilities and when I open starccm+ in the middle of a simulation, it crashes because it tries to open the scalar scene I am saving to file.
I cannot delete the scene because I want to export the png files.
But is there a way not to display any scene on starccm+ ?
Even if I do not open it, after a few iterations it would automatically open... is there a way to turn this off while keeping saving the scene to files ?

thanks!
JohnAB is offline   Reply With Quote

Old   March 27, 2014, 10:10
Default
  #2
Senior Member
 
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20
ping is on a distinguished road
this is confusing. when you say running remotely can we assume you mean you run just the server process with no gui - eg in batch mode using the -batch switch. this will run un-attended and write scene files to disk.

then it sounds like you are connecting to this running batch session. the best way to do this is from a computer that does have graphics ie using star-ccm+ in true client-server mode across a network or wlan - just need to connect to the correct server process and port thru the firewalls etc and it works very well
ping is offline   Reply With Quote

Old   March 27, 2014, 11:55
Default
  #3
Member
 
Join Date: Nov 2012
Posts: 74
Rep Power: 14
JohnAB is on a distinguished road
Ping, thanks for your answer.

My problem is that I have to get the .sim file ready on my computer: import geometry, set everything up until it is ready to mesh and still is about 1Mb.
I then export this to the cluster (linux) and I have to mesh on the cluster. I have not found any command to execute the volume mesh (is there any? that would help me a lot!) so that means I have to open starccm+ on the cluster and manually hit the volume mesh icon (I cannot mesh from my computer because then I would have to send a 1 to 10Gb file to the cluster, which is impossible with the bad connection I have, would take 10hrs for 1Gb).
After that, using commands only I can run my files.

What I want to do then, is open the starccm+ interface when it is running to be able to change, if needed, some parameters, or refine the mesh, or just tell that my simulation is already steady state and can be stopped. To do this, I have to open the starccm+ interface that is on the cluster, and then, because the remote computer has no graphics, the auto open of the scene makes it crash. Which means I cannot do what I want to do.

I think i cannot run starccm+ on my computer and remotely connect to the cluster because the cluster is behind the head node and a few firewalls do not allow me to directly connect to the cluster from my computer, only to the head node, which I am not allowed to run on a simulation on.
JohnAB is offline   Reply With Quote

Old   March 27, 2014, 21:49
Default
  #4
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25
me3840 is on a distinguished road
You do not have to open the interface to issue STAR-CCM+ commands.

If you use the -batch option you can specify a java file which can do almost anything to the sim file.

You can record Java commands from the GUI by using the record macro button. Save these files and run them later on your other computer in batch. You will not be able to work with the sim file interactively, but you can make extremely intelligent batch processing files that will do whatever you want.
me3840 is offline   Reply With Quote

Old   March 28, 2014, 02:49
Default
  #5
Senior Member
 
Ping
Join Date: Mar 2009
Posts: 556
Rep Power: 20
ping is on a distinguished road
yes a simple macro is the answer to your mesh and run issue - the one below was created by pushing the volume mesh icon then the run icon

however once the case is running on any computer you can in fact connect to it with a gui client and make changes to settings but not stop the iterations in batch mode since this saves the file and exits i think

connecting through the network and cluster to a node will be challenging but it is possible with help from a good network engineer assuming you can specify the name of the node to run the master server process on

----------------------

// STAR-CCM+ macro: mesh_then_run.java
package macro;

import java.util.*;

import star.common.*;
import star.meshing.*;

public class mesh_then_run extends StarMacro {

public void execute() {
execute0();
}

private void execute0() {

Simulation simulation_0 =
getActiveSimulation();

MeshPipelineController meshPipelineController_0 =
simulation_0.get(MeshPipelineController.class);

meshPipelineController_0.generateVolumeMesh();

simulation_0.getSimulationIterator().run();
}
}
ping 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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 11:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59


All times are GMT -4. The time now is 08:01.