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

Generate mesh in batch

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By rks171

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2012, 20:44
Default Generate mesh in batch
  #1
Member
 
Join Date: Dec 2011
Location: State College, PA
Posts: 87
Rep Power: 15
rks171 is on a distinguished road
Is it possible in starccm+ to setup all the modeling choices that I want for making a mesh and then to do the meshing in batch instead of interactive mode? The geometry I'm meshing is very complex and meshing takes many hours. I would rather if I could submit the job to the job-queuing system on one of our clusters instead of tying up an interactive node. Furthermore, the computer that I would like to mesh on may not be able to open up a GUI. If this is possible, what is the command that I have to give on the command line?
rks171 is offline   Reply With Quote

Old   November 11, 2012, 11:43
Default
  #2
New Member
 
cfdguy's Avatar
 
Join Date: Mar 2009
Location: Brazil
Posts: 16
Rep Power: 17
cfdguy is on a distinguished road
Does this small macro help?

Code:
package macro;

import java.util.*;

import star.common.*;
import star.base.neo.*;
import star.meshing.*;

public class MeshAndSave extends StarMacro {

  public void execute() {
    execute0();
  }

  private void execute0() {

    Simulation sim = getActiveSimulation();

    MeshPipelineController msh = sim.get(MeshPipelineController.class);

    msh.generateSurfaceMesh();
    
    msh.generateVolumeMesh();
    
    sim.saveState("mesh.sim");

  }
  
}
__________________
Cheers,
cfdguy

** Every rose has its thorn **

PS: Please watch this Youtube channel.
cfdguy is offline   Reply With Quote

Old   November 12, 2012, 16:19
Default
  #3
Member
 
Join Date: Dec 2011
Location: State College, PA
Posts: 87
Rep Power: 15
rks171 is on a distinguished road
I didn't think of using a macro. So how do I start starccm+ and then execute this macro on startup from the command line?
rks171 is offline   Reply With Quote

Old   November 13, 2012, 05:22
Default
  #4
Member
 
Oliver Lauer
Join Date: Mar 2009
Location: Coburg
Posts: 57
Rep Power: 17
olauer is on a distinguished road
Did you ever read the manual?

Try
starccm+ -batch name.java case.sim
olauer is offline   Reply With Quote

Old   November 13, 2012, 09:32
Default
  #5
Member
 
Join Date: Dec 2011
Location: State College, PA
Posts: 87
Rep Power: 15
rks171 is on a distinguished road
Yep, I must of missed that somehow in that brief 11,000 page read, but thanks for pointing it out for me.
wcj1n18 likes this.
rks171 is offline   Reply With Quote

Reply

Tags
batch mode, meshing


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
[ICEM] How to generate this kind of mesh? mingersai ANSYS Meshing & Geometry 51 February 16, 2017 08:32
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 05:24
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 20:43
[snappyHexMesh] SnappyHexMesh not generate mesh first time mavimo OpenFOAM Meshing & Mesh Conversion 4 August 26, 2008 08:08
generate different mesh in CFX_MESH Eric CFX 0 June 23, 2006 10:09


All times are GMT -4. The time now is 12:46.