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

Generate mesh in batch

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

Reply
 
LinkBack Thread Tools 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: 6
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: 9
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: 6
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: 9
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: 6
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.
rks171 is offline   Reply With Quote

Reply

Tags
batch mode, meshing

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


All times are GMT -4. The time now is 20:31.