Star-CCM+: Difference between revisions

382 bytes removed ,  1 year ago
m
no edit summary
mNo edit summary
mNo edit summary
Line 56: Line 56:
#SBATCH --ntasks-per-node=1  # Do not change this value
#SBATCH --ntasks-per-node=1  # Do not change this value


# module load StdEnv/2016    # Uncomment for version 14.06.013 or older
module load StdEnv/2020      # Do not change


# module load starccm/14.06.013-R8
# module load starccm/18.02.008-R8
# module load starccm-mixed/14.06.013
module load starccm-mixed/18.02.008
# module load starccm/17.02.007-R8
module load starccm-mixed/17.02.007


export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
Line 69: Line 67:
mkdir -p "$STARCCM_TMP"
mkdir -p "$STARCCM_TMP"


slurm_hl2hl.py --format STAR-CCM+ > machinefile
slurm_hl2hl.py --format STAR-CCM+ > machinefile-$SLURM_JOB_ID


NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK))
NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK))


starccm+ -batch -power -np $NCORE -podkey $LM_PROJECT -licpath $CDLMD_LICENSE_FILE -machinefile $PWD/machinefile $PWD/your-file.sim
starccm+ -batch -power -np $NCORE -podkey $LM_PROJECT -licpath $CDLMD_LICENSE_FILE -machinefile $PWD/machinefile-$SLURM_JOB_ID $PWD/your-file.sim


}}</tab>
}}</tab>
Line 89: Line 87:
#SBATCH --ntasks-per-node=1  # Do not change this value
#SBATCH --ntasks-per-node=1  # Do not change this value


# module load StdEnv/2016    # Uncomment for version 14.06.013 or older
module load StdEnv/2020      # Do not change


# module load starccm/14.06.013-R8
# module load starccm/18.02.008-R8
# module load starccm-mixed/14.06.013
module load starccm-mixed/18.02.008
# module load starccm/17.02.007-R8
module load starccm-mixed/17.02.007


export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
Line 102: Line 98:
mkdir -p "$STARCCM_TMP"
mkdir -p "$STARCCM_TMP"


slurm_hl2hl.py --format STAR-CCM+ > machinefile
slurm_hl2hl.py --format STAR-CCM+ > machinefile-$SLURM_JOB_ID


NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK))
NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK))


starccm+ -batch -power -np $NCORE -podkey $LM_PROJECT -licpath $CDLMD_LICENSE_FILE -machinefile $PWD/machinefile $PWD/your-file.sim -mpi intel
starccm+ -batch -power -np $NCORE -podkey $LM_PROJECT -licpath $CDLMD_LICENSE_FILE -machinefile $PWD/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel


}}</tab>
}}</tab>
Line 122: Line 118:
#SBATCH --ntasks-per-node=1  # Do not change this value
#SBATCH --ntasks-per-node=1  # Do not change this value


# module load StdEnv/2016    # Uncomment for version 14.06.013 or older
module load StdEnv/2020      # Do not change


# module load starccm/14.06.013-R8
# module load starccm/18.02.008-R8
# module load starccm-mixed/14.06.013
module load starccm-mixed/18.02.008
# module load starccm/17.02.007-R8
module load starccm-mixed/17.02.007


export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
Line 139: Line 133:
NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK))
NCORE=$((SLURM_NTASKS * SLURM_CPUS_PER_TASK))


# Append -fabric psm2 to the following command line when loading module versions 15.04.010 (or newer) as shown
# Remove "-podkey $LM_PROJECT" from next line if using an institutional server
# If using an institutional server then remove "-podkey $LM_PROJECT" from the following command line ...


starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -np $NCORE -podkey $LM_PROJECT -licpath $CDLMD_LICENSE_FILE -machinefile $PWD/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -np $NCORE -podkey $LM_PROJECT -licpath $CDLMD_LICENSE_FILE -machinefile $PWD/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2
Line 174: Line 167:


# Remove -fabric psm2 from next line for module versions 17.02.00X and 17.04.00X
# Remove -fabric psm2 from next line for module versions 17.02.00X and 17.04.00X
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -np $NCORE -podkey $LM_PROJECT -licpath $CDLMD_LICENSE_FILE -machinefile $PWD/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -np $NCORE -podkey $LM_PROJECT -licpath $CDLMD_LICENSE_FILE -machinefile $PWD/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2


Line 212: Line 206:
         [ $i -eq 1 ] || sleep 5
         [ $i -eq 1 ] || sleep 5
         echo "Attempt number: "$i
         echo "Attempt number: "$i
         starccm+ -power -np $NCORE -podkey $LM_PROJECT   -machinefile $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID -batch $SLURM_SUBMIT_DIR/your-simulation-file.java $SLURM_SUBMIT_DIR/your-simulation-file.sim > $SLURM_JOB_ID.results
         starccm+ -batch -power -np $NCORE -podkey $LM_PROJECT -machinefile $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID $SLURM_SUBMIT_DIR/your-simulation-file.java $SLURM_SUBMIT_DIR/your-simulation-file.sim > $SLURM_JOB_ID.results
         RET=$?
         RET=$?
         i=$((i+1))
         i=$((i+1))
cc_staff
1,857

edits