|
[Sponsors] |
August 3, 2021, 10:21 |
Star-CCM+ Surface Wrapper Batch Cluster
|
#1 |
Member
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5 |
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 |
|
August 8, 2021, 09:02 |
|
#2 |
Member
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5 |
Anyone have any advice about this ?
Thank you |
|
August 10, 2021, 07:03 |
|
#3 |
Member
Will Crawford-Jones
Join Date: Jan 2021
Posts: 43
Rep Power: 5 |
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 |
|
Tags |
batch, cluster computing, java macro, star-ccm, surface wrapper |
|
|
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 |