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

Star-CCM+ Surface Wrapper Batch Cluster

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2021, 10:21
Question Star-CCM+ Surface Wrapper Batch Cluster
  #1
Member
 
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5
wcj1n18 is on a distinguished road
Hi,

Is it possible to set up a surface wrapper in batch? What would be the code for doing this? My current script for the computer cluster is:

#!/bin/bash
#SBATCH --nodes=2
#SBATCH --time=03:00:00
#SBATCH --ntasks=80
#SBATCH --mail-type=ALL
#SBATCH --mail-user=...

module load starccm/15.06
module load openmpi/3.1.4/gcc

NODEFILE="$(pwd)/slurmhosts.$SLURM_JOB_ID.txt"
srun hostname -s &> $NODEFILE

#Mesh Domain
starccm+ -np $SLURM_NTASKS -machinefile $NODEFILE -load Large_Sim_parallel_mesh.sim -batch mesh

This works fine for meshing. Would it be possible to switch this for surface wrapper/ add surface wrapper beforehand such that it does surface wrapper and then meshing? I think perhaps I can use a java macro but cannot see info online/ in the Star-CCM+ manual about the macro for this. I haven't used Java macros yet.

As an additional question, is it possible to record a journal (like you can do in Fluent). This would record everything I do in the GUI which would make running multiple simulations (with minor differences) much easier.

Thanks!

Will
wcj1n18 is offline   Reply With Quote

Old   August 8, 2021, 09:02
Default
  #2
Member
 
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5
wcj1n18 is on a distinguished road
Anyone have any advice about this ?
Thank you
wcj1n18 is offline   Reply With Quote

Old   August 10, 2021, 07:03
Default
  #3
Member
 
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5
wcj1n18 is on a distinguished road
I've worked out how to do this now. For others that may be interested:

You can record all actions on the GUI as you can on Fluent and it records in Java- I couldn't spot this last time but it's near the top of the GUI. I simply did surface wrapper, mesh and save for a smaller case (smaller fluid domain and mesh). This can then be applied to other cases.

The batch script is:

#!/bin/bash
#Script to run a Starccm+ job
#set default resource requirements for job
#SBATCH --nodes=1
#SBATCH --time=00:10:00
#SBATCH --ntasks=4
#SBATCH --mail-type=ALL
#SBATCH --mail-user=...

#use starccm module to set up the environment for starccm+
module load starccm/15.06
module load openmpi/3.1.4/gcc

# Create our hosts file ala slurm
NODEFILE="$(pwd)/slurmhosts.$SLURM_JOB_ID.txt"
srun hostname -s &> $NODEFILE

#Surface Wrapper and Mesh Domain
starccm+ -np $SLURM_NTASKS -machinefile $NODEFILE -load Tetrahedral_Pack_4c.sim -batch Wrapper_Mesh_Save.java > Tetrahedral_Pack_4c_out

And that's it!

Will
wcj1n18 is offline   Reply With Quote

Reply

Tags
batch, cluster computing, java macro, star-ccm, surface wrapper


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
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? EternalSeekerX SU2 3 October 9, 2020 19:28
Surface Wrapper Problem Kamui STAR-CCM+ 3 January 28, 2019 12:58
Surface Wrapper issues luckyrob STAR-CCM+ 0 July 19, 2014 06:44
error in star ccm maurizio Siemens 3 October 16, 2007 06:17
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19


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