|
[Sponsors] |
June 4, 2021, 11:50 |
Slurm Bash Script for STAR-CCM+
|
#1 |
New Member
Jonathan De Sousa
Join Date: Jun 2021
Posts: 3
Rep Power: 5 |
Hi,
I currently need help writing a simple bash script to submit my STAR-CCM+ sim file via slurm. I have written a simple script but after about 10s from submitting my job, my job disappears from the job queue. The script is given below: #!/bin/bash #SBATCH --nodes=1 #SBATCH --ntasks=16 #SBATCH --mem=32000MB #SBATCH --time=12:00:00 #SBATCH --job-name=StarCCM #SBATCH --partition=medium #SBATCH --workdir="/home/username/work" module load star-ccm+ starccm+ -batch -power -podkey BI8J2TM8oU/FinQk2tpNvw -licpath 1999@flex.cd-adapco.com -np 16 $SLURM_SUBMIT_DIR/filename.sim > $SLURM_SUBMIT_DIR/output Note that the largest values for ntasks possible is 16 and for mem, it is 32GB, on my college HPC cluster. The version of STAR-CCM+ available is star-ccm+/14.04.011-R8. I have tried putting this after the "module load" command but with no success. Are there any recommendations as to how I could fix this bash script? |
|
June 6, 2021, 16:02 |
|
#2 |
Senior Member
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 516
Rep Power: 20 |
You have to specify the java-file with the commands for this run atfer the "-batch" option.
My "batchrun.java" looks like this (with some code removed): Code:
// STAR-CCM+ macro: batchrun.java package macro; import java.io.File; import static java.lang.Math.abs; import java.util.*; import star.common.*; import star.base.neo.*; import star.base.report.*; import star.vis.*; public class batchrun extends StarMacro { public void execute() { Simulation simulation_0 = getActiveSimulation(); simulation_0.getSimulationIterator().run(); simulation_0.saveState(simulation_0.getPresentationName() + ".sim"); } } |
|
Tags |
#slurm #starccm+ #cfd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running OpenFOAM case through shell script (bash) | ilaj | OpenFOAM Programming & Development | 2 | January 28, 2020 14:14 |
FSI simulation in SLURM cluster (input file and script) | Lara Gonçales | Structural Mechanics | 0 | January 20, 2020 16:45 |
How to write the Ansys lic usage Bash script from Windows machine | mg.mithun | Main CFD Forum | 0 | November 28, 2019 10:01 |
run openfoam with bash script | Gosi | OpenFOAM | 2 | April 11, 2013 10:10 |