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

Meshing in cluster

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 2 Post By me3840
  • 2 Post By kguntur

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2014, 18:11
Default Meshing in cluster
  #1
New Member
 
Erik
Join Date: May 2014
Posts: 23
Rep Power: 11
egwuab is on a distinguished road
How can I run the surface and volume mesher in the cluster instead of running it with GUI in PC?
egwuab is offline   Reply With Quote

Old   May 23, 2014, 03:02
Default
  #2
Member
 
kris
Join Date: May 2014
Posts: 73
Rep Power: 11
kguntur is on a distinguished road
you need to use batch mode. There are commands given in starccm+ user guide. it goes something like
installation directory/starccm+ -batch <macro file> <.sim file>

You can record a macro to do the meshing.
kguntur is offline   Reply With Quote

Old   May 23, 2014, 12:06
Default
  #3
New Member
 
Erik
Join Date: May 2014
Posts: 23
Rep Power: 11
egwuab is on a distinguished road
Do you mind to tell me how to generate the macro file?
egwuab is offline   Reply With Quote

Old   May 23, 2014, 14:16
Default
  #4
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
I use the attached macro often to do this.

It will execute all part operations, surface mesh, and volume mesh, saving in between each step.

Code:
package macro;
import java.util.*;
import star.common.*;
import star.meshing.*;

public class meshAllTheThings extends StarMacro {
    
    public void execute () {
        Simulation sim = getActiveSimulation();
        
        String simPath = sim.getSessionPath();
        
        sim.get(MeshOperationManager.class).executeAll();
        
        sim.saveState(simPath);
        
        MeshPipelineController MPC = sim.get(MeshPipelineController.class);
        
        MPC.generateSurfaceMesh();
        
        sim.saveState(simPath);
        
        MPC.generateVolumeMesh();
        
        sim.saveState(simPath);

    }
    
}
dduque and pi120 like this.
me3840 is offline   Reply With Quote

Old   May 24, 2014, 10:00
Default
  #5
New Member
 
Erik
Join Date: May 2014
Posts: 23
Rep Power: 11
egwuab is on a distinguished road
im new to this, could you tell me how i include the macro in my job script for cluster?
egwuab is offline   Reply With Quote

Old   May 25, 2014, 02:26
Default
  #6
Member
 
kris
Join Date: May 2014
Posts: 73
Rep Power: 11
kguntur is on a distinguished road
save the above script as "meshAllTheThings.java". It is necessary that the java file name and the public class in the java file are the same.
Save that file in the same location as your sim file (not necessary, but easier).
Then in your command prompt (in windows) or command line (in linux) go to the directory where the above files are saved and type the following.

<cd-adapco installation directory>/starccm+ -batch <meshAllTheThings.java> <yourfile.sim>

change the commands in <> according to your settings.

Hope this helps.
dduque and zhxutong like this.
kguntur is offline   Reply With Quote

Old   May 27, 2014, 14:34
Default
  #7
New Member
 
Erik
Join Date: May 2014
Posts: 23
Rep Power: 11
egwuab is on a distinguished road
hi, i tried the job and add the .java file you suggested. However, it didnt run any mesh.
Here is how I call my starccm job

starccm+ -rsh ssh -batch <meshAllTheThings.java> -np $NSLOTS -machinefile $TMPDIR/machines starccm.sim

Could you point out the problem?
===========================================

i figured it out and now it can run in the cluster. thank you so much for your help Kris
egwuab is offline   Reply With Quote

Old   May 27, 2014, 14:53
Default
  #8
New Member
 
Erik
Join Date: May 2014
Posts: 23
Rep Power: 11
egwuab is on a distinguished road
Hi Kris,

If I already set up the physics and termination time of the simulation, will it run after it meshed the part? or I need to include another commands in the macro?

Regards
egwuab is offline   Reply With Quote

Old   May 27, 2014, 18:22
Default
  #9
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Your original question was how can you mesh on a cluster. The macro I put here does just that and only that. If you want it to also include running, you can record yourself hitting the run button and add that code on to the macro.
me3840 is offline   Reply With Quote

Old   May 28, 2014, 10:33
Default
  #10
New Member
 
Erik
Join Date: May 2014
Posts: 23
Rep Power: 11
egwuab is on a distinguished road
okay, thank you so much for your help !
egwuab is offline   Reply With Quote

Old   May 29, 2014, 13:47
Default
  #11
New Member
 
Erik
Join Date: May 2014
Posts: 23
Rep Power: 11
egwuab is on a distinguished road
I tried to run after the meshing but couldn't run it.
is there any macro command to run the CFD simulation.

i tried to run like this but it doesnt work.
starccm+ -rsh ssh -batch -np $NSLOTS -machinefile $TMPDIR/machines starccmfile.sim
egwuab is offline   Reply With Quote

Old   May 29, 2014, 18:22
Default
  #12
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
If you want help you need to be more descriptive.

"I tried to run after the meshing but couldn't run it. "

Why? What happened? Was there an error? Did the machine catch fire? We have no idea, you have to tell us.
me3840 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
[ANSYS Meshing] Migrating from GAMBIT to ANSYS Meshing David-CFD ANSYS Meshing & Geometry 1 April 1, 2011 05:22
meshing on a cluster jopawipr STAR-CCM+ 4 February 13, 2010 05:06
Singularity of grid?Volume meshing vs face meshing Ken Main CFD Forum 0 September 4, 2003 11:09
Volume Meshing & Face Meshing? singularity of grid ken FLUENT 0 September 4, 2003 11:08


All times are GMT -4. The time now is 10:45.