Star-CCM+/fr: Difference between revisions

Jump to navigation Jump to search
1,803 bytes added ,  5 months ago
Updating to match new version of source page
No edit summary
Tags: Mobile edit Mobile web edit
(Updating to match new version of source page)
Line 30: Line 30:




<div class="mw-translate-fuzzy">
<tabs>
<tabs>
<tab name="Béluga" >
<tab name="Béluga" >
Line 43: Line 44:
#SBATCH --mem=0              # demandez toute la mémoire par nœud
#SBATCH --mem=0              # demandez toute la mémoire par nœud
#SBATCH --ntasks-per-node=1  # ne pas modifier
#SBATCH --ntasks-per-node=1  # ne pas modifier
</div>


#SBATCH --account=def-group  # Specify some account
#SBATCH --time=00-01:00      # Time limit: dd-hh:mm
#SBATCH --nodes=1            # Specify 1 or more nodes
#SBATCH --cpus-per-task=40    # Request all cores per node
#SBATCH --mem=0              # Request all memory per node
#SBATCH --ntasks-per-node=1  # Do not change this value
<div class="mw-translate-fuzzy">
module load StdEnv/2020      # ne pas modifier
module load StdEnv/2020      # ne pas modifier
</div>


# chargez le module starccm/18.04.008-R8
#module load starccm/18.06.006-R8
module load starccm-mixed/18.04.008
module load starccm-mixed/18.06.006


export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
Line 62: Line 73:
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim


<div class="mw-translate-fuzzy">
}}</tab>
}}</tab>
<tab name="Cedar" >
<tab name="Cedar" >
Line 75: Line 87:
#SBATCH --mem=0              # demandez toute la mémoire par nœud
#SBATCH --mem=0              # demandez toute la mémoire par nœud
#SBATCH --ntasks-per-node=1  # ne pas modifier
#SBATCH --ntasks-per-node=1  # ne pas modifier
</div>
#SBATCH --account=def-group  # Specify some account
#SBATCH --time=00-01:00      # Time limit: dd-hh:mm
#SBATCH --nodes=1            # Specify 1 or more nodes
#SBATCH --cpus-per-task=48    # or 32 Request all cores per node
#SBATCH --mem=0              # Request all memory per node
#SBATCH --ntasks-per-node=1  # Do not change this value


<div class="mw-translate-fuzzy">
module load StdEnv/2020      # ne pas modifier
module load StdEnv/2020      # ne pas modifier
</div>


# chargez le module starccm/18.04.008-R8
#module load starccm/18.06.006-R8
module load starccm-mixed/18.04.008
module load starccm-mixed/18.06.006


export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
Line 94: Line 116:
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2
starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2


<div class="mw-translate-fuzzy">
}}</tab>
}}</tab>
<tab name="Graham" >
<tab name="Graham" >
Line 107: Line 130:
#SBATCH --mem=0              # demandez tous les cœurs par nœud
#SBATCH --mem=0              # demandez tous les cœurs par nœud
#SBATCH --ntasks-per-node=1  # ne pas modifier
#SBATCH --ntasks-per-node=1  # ne pas modifier
</div>


#SBATCH --account=def-group  # Specify some account
#SBATCH --time=00-01:00      # Time limit: dd-hh:mm
#SBATCH --nodes=1            # Specify 1 or more nodes
#SBATCH --cpus-per-task=32    # or 44 Request all cores per node
#SBATCH --mem=0              # Request all memory per node
#SBATCH --ntasks-per-node=1  # Do not change this value
<div class="mw-translate-fuzzy">
module load StdEnv/2020      # ne pas modifier
module load StdEnv/2020      # ne pas modifier
</div>


# chargez le module starccm/18.04.008-R8
#module load starccm/18.06.006-R8
module load starccm-mixed/18.04.008
module load starccm-mixed/18.06.006


export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
Line 126: Line 159:
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2
starccm+ -jvmargs -Xmx4G -jvmargs -Djava.io.tmpdir=$SLURM_TMPDIR -batch -power -podkey $LM_PROJECT -np $NCORE -licpath $CDLMD_LICENSE_FILE -machinefile $STARCCM_TMP/machinefile-$SLURM_JOB_ID $PWD/your-file.sim -mpi intel -fabric psm2


<div class="mw-translate-fuzzy">
}}</tab>
}}</tab>
<tab name="Narval" >
<tab name="Narval" >
Line 139: Line 173:
#SBATCH --mem=0              # demandez toute la mémoire par nœud
#SBATCH --mem=0              # demandez toute la mémoire par nœud
#SBATCH --ntasks-per-node=1  # ne pas modifier
#SBATCH --ntasks-per-node=1  # ne pas modifier
</div>


#SBATCH --account=def-group  # Specify some account
#SBATCH --time=00-01:00      # Time limit: dd-hh:mm
#SBATCH --nodes=1            # Specify 1 or more nodes
#SBATCH --cpus-per-task=64    # Request all cores per node
#SBATCH --mem=0              # Request all memory per node
#SBATCH --ntasks-per-node=1  # Do not change this value
<div class="mw-translate-fuzzy">
module load StdEnv/2020      # ne pas modifier
module load StdEnv/2020      # ne pas modifier
</div>


# chargez le module starccm/18.04.008-R8
#module load starccm/18.06.006-R8
module load starccm-mixed/18.04.008
module load starccm-mixed/18.06.006


export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
Line 167: Line 211:
#!/bin/bash
#!/bin/bash


<div class="mw-translate-fuzzy">
#SBATCH --time=0-00:30        # indiquez la limite de temps (jj-hh:mm)
#SBATCH --time=0-00:30        # indiquez la limite de temps (jj-hh:mm)
#SBATCH --nodes=1            # indiquez 1 ou plusieurs nœuds
#SBATCH --nodes=1            # indiquez 1 ou plusieurs nœuds
Line 175: Line 220:
   
   
cd $SLURM_SUBMIT_DIR
cd $SLURM_SUBMIT_DIR
</div>
<div class="mw-translate-fuzzy">
# chargez le module starccm/18.04.008-R8
module load starccm-mixed/18.04.008
</div>
#module load starccm/18.06.006-R8
module load starccm-mixed/18.06.006


ssh nia-gw -L 1999:flex.cd-adapco.com:1999 -L 2099:flex.cd-adapco.com:2099 -N -f
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export LM_PROJECT='YOUR CD-ADAPCO PROJECT ID GOES HERE'
export CDLMD_LICENSE_FILE="1999@127.0.0.1"
export CDLMD_LICENSE_FILE="1999@127.0.0.1"
module load CCEnv
module load StdEnv/2018.3
module load starccm/13.06.012-R8


ssh nia-gw -L 1999:flex.cd-adapco.com:1999 -L 2099:flex.cd-adapco.com:2099 -N -f
cd $SLURM_SUBMIT_DIR
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID
slurm_hl2hl.py --format STAR-CCM+ > $SLURM_SUBMIT_DIR/machinefile_$SLURM_JOB_ID
   
   
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE))
NCORE=$((SLURM_NNODES * SLURM_CPUS_PER_TASK * SLURM_NTASKS_PER_NODE))
   
   
# nous contournons les problèmes de licence
# Workaround for license failures:
# en lançant Star-CCM+ jusqu'à ce que le code de sortie soit égal à 0 (ici, au plus 5 fois)
# until the exit status is equal to 0, we try to get Star-CCM+ to start (here, for at least 5 times).
i=1
i=1
RET=-1
RET=-1
Line 195: Line 247:
         [ $i -eq 1 ] {{!}}{{!}} sleep 5
         [ $i -eq 1 ] {{!}}{{!}} sleep 5
         echo "Attempt number: "$I
         echo "Attempt number: "$I
         # supprimez <i>-power -podkey $LM_PROJECT</i> si vous utilisez un serveur de licence de votre établissement
         # Remove "-power -podkey $LM_PROJECT" when using an institutional license server…
         starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -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
         starccm+ -batch -power -podkey $LM_PROJECT -np $NCORE -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=$?
38,757

edits

Navigation menu