|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Join Date: Dec 2011
Location: State College, PA
Posts: 87
Rep Power: 15 ![]() |
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?
|
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2009
Location: Brazil
Posts: 16
Rep Power: 18 ![]() |
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. |
|
|
|
|
|
|
|
|
#3 |
|
Member
Join Date: Dec 2011
Location: State College, PA
Posts: 87
Rep Power: 15 ![]() |
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?
|
|
|
|
|
|
|
|
|
#4 |
|
Member
Oliver Lauer
Join Date: Mar 2009
Location: Coburg
Posts: 57
Rep Power: 18 ![]() |
Did you ever read the manual?
Try starccm+ -batch name.java case.sim |
|
|
|
|
|
|
|
|
#5 |
|
Member
Join Date: Dec 2011
Location: State College, PA
Posts: 87
Rep Power: 15 ![]() |
Yep, I must of missed that somehow in that brief 11,000 page read, but thanks for pointing it out for me.
|
|
|
|
|
|
![]() |
| Tags |
| batch mode, meshing |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |