Ansys: Difference between revisions

Jump to navigation Jump to search
854 bytes added ,  2 months ago
m
no edit summary
mNo edit summary
mNo edit summary
Line 166: Line 166:


<!--T:4733-->
<!--T:4733-->
rm -f cleanup* core*
rm -f core*


<!--T:2305-->
<!--T:2305-->
#module load StdEnv/2020
#module load StdEnv/2020     # no longer supported
#module load ansys/2019R3    # or newer versions (narval only)
#module load ansys/2019R3    # or newer versions (narval only)
#module load ansys/2021R2    # or newer versions (beluga, cedar, graham)
#module load ansys/2021R2    # or newer versions (beluga, cedar, graham)


<!--T:2306-->
<!--T:2306-->
module load StdEnv/2023
module load StdEnv/2023       # Do not change
module load ansys/2023R2      # or newer versions (beluga, cedar, graham, narval)
module load ansys/2023R2      # or newer versions (beluga, cedar, graham, narval)
MYJOURNALFILE=myfile.jou      # Specify your journal file name
MYVERSION=3d                  # Specify 2d, 2ddp, 3d or 3ddp
# ------- do not change any lines below --------


<!--T:4734-->
<!--T:4734-->
Line 196: Line 201:


<!--T:2310-->
<!--T:2310-->
# Specify 2d, 2ddp, 3d or 3ddp and replace sample with your journal filename …
if [ "$SLURM_NNODES" == 1 ]; then
if [ "$SLURM_NNODES" == 1 ]; then
  fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pshmem -i $MYJOURNALFILE
else
else
  fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=intel -ssh -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pib -cnf=/tmp/machinefile-$SLURM_JOB_ID -i $MYJOURNALFILE
fi
fi
}}
}}
Line 222: Line 226:


<!--T:4736-->
<!--T:4736-->
rm -f cleanup* core*
rm -f core*


<!--T:2205-->
<!--T:2205-->
#module load StdEnv/2020
#module load StdEnv/2020     # no longer supported
#module load ansys/2019R3    # or newer versions (narval only)
#module load ansys/2019R3    # or newer versions (narval only)
#module load ansys/2021R2    # or newer versions (beluga, cedar, graham)
#module load ansys/2021R2    # or newer versions (beluga, cedar, graham)


<!--T:2206-->
<!--T:2206-->
module load StdEnv/2023
module load StdEnv/2023       # Do not change
module load ansys/2023R2      # or newer module versions (beluga, cedar, graham, narval)
module load ansys/2023R2      # or newer module versions (beluga, cedar, graham, narval)
MYJOURNALFILE=myfile.jou      # Specify your journal file name
MYVERSION=3d                  # Specify 2d, 2ddp, 3d or 3ddp
# ------- do not change any lines below --------


<!--T:4737-->
<!--T:4737-->
Line 252: Line 261:


<!--T:2210-->
<!--T:2210-->
# Specify 2d, 2ddp, 3d or 3ddp and replace sample with your journal filename …
if [ "$SLURM_NNODES" == 1 ]; then
if [ "$SLURM_NNODES" == 1 ]; then
  fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pshmem -i $MYJOURNALFILE
else
else
  fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=intel -ssh -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pib -cnf=/tmp/machinefile-$SLURM_JOB_ID -i $MYJOURNALFILE
fi
fi
}}
}}
Line 278: Line 286:


<!--T:5733-->
<!--T:5733-->
rm -f cleanup* core*
rm -f core*


<!--T:5306-->
<!--T:5306-->
module load StdEnv/2023       
module load StdEnv/2023      # Do not change
module load ansys/2023R2      # or newer versions (narval)
module load ansys/2023R2      # or newer versions (narval only)
 
MYJOURNALFILE=myfile.jou      # Specify your journal file name
MYVERSION=3d                  # Specify 2d, 2ddp, 3d or 3ddp
 
# ------- do not change any lines below --------


<!--T:5735-->
<!--T:5735-->
export OPENMPI_ROOT=$EBROOTOPENMPI
export OPENMPI_ROOT=$EBROOTOPENMPI
export OMPI_MCA_hwloc_base_binding_policy=core
slurm_hl2hl.py --format ANSYS-FLUENT > /tmp/mf-$SLURM_JOB_ID
slurm_hl2hl.py --format ANSYS-FLUENT > /tmp/mf-$SLURM_JOB_ID
for i in `cat /tmp/mf-$SLURM_JOB_ID {{!}} uniq`; do echo "${i}:$(cat /tmp/mf-$SLURM_JOB_ID {{!}} grep $i {{!}} wc -l)" >> /tmp/machinefile-$SLURM_JOB_ID; done
for i in `cat /tmp/mf-$SLURM_JOB_ID {{!}} uniq`; do echo "${i}:$(cat /tmp/mf-$SLURM_JOB_ID {{!}} grep $i {{!}} wc -l)" >> /tmp/machinefile-$SLURM_JOB_ID; done
Line 291: Line 305:


<!--T:5310-->
<!--T:5310-->
# Specify 2d, 2ddp, 3d or 3ddp and replace sample with your journal filename …
if [ "$SLURM_NNODES" == 1 ]; then
if [ "$SLURM_NNODES" == 1 ]; then
  fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=openmpi -pshmem -i $MYJOURNALFILE
else
else
  fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=openmpi -ssh -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=openmpi -pib -cnf=/tmp/machinefile-$SLURM_JOB_ID -i $MYJOURNALFILE
fi
fi
}}
}}
Line 317: Line 330:


<!--T:6733-->
<!--T:6733-->
rm -f cleanup* core*
rm -f core*


<!--T:6306-->
<!--T:6306-->
module load StdEnv/2023       
module load StdEnv/2023      # Do not change   
module load ansys/2023R2      # or newer versions (narval)
module load ansys/2023R2      # or newer versions (narval only)
 
<!--T:6754-->
MYJOURNALFILE=myfile.jou      # Specify your journal file name
MYVERSION=3d                  # Specify 2d, 2ddp, 3d or 3ddp
 
# ------- do not change any lines below --------


<!--T:6735-->
<!--T:6735-->
export OPENMPI_ROOT=$EBROOTOPENMPI
export OPENMPI_ROOT=$EBROOTOPENMPI
export OMPI_MCA_hwloc_base_binding_policy=core
slurm_hl2hl.py --format ANSYS-FLUENT > /tmp/mf-$SLURM_JOB_ID
slurm_hl2hl.py --format ANSYS-FLUENT > /tmp/mf-$SLURM_JOB_ID
for i in `cat /tmp/mf-$SLURM_JOB_ID {{!}} uniq`; do echo "${i}:$(cat /tmp/mf-$SLURM_JOB_ID {{!}} grep $i {{!}} wc -l)" >> /tmp/machinefile-$SLURM_JOB_ID; done
for i in `cat /tmp/mf-$SLURM_JOB_ID {{!}} uniq`; do echo "${i}:$(cat /tmp/mf-$SLURM_JOB_ID {{!}} grep $i {{!}} wc -l)" >> /tmp/machinefile-$SLURM_JOB_ID; done
Line 330: Line 350:


<!--T:6310-->
<!--T:6310-->
# Specify 2d, 2ddp, 3d or 3ddp and replace sample with your journal filename …
if [ "$SLURM_NNODES" == 1 ]; then
if [ "$SLURM_NNODES" == 1 ]; then
  fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=openmpi -pshmem -i $MYJOURNALFILE
else
else
  fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=openmpi -ssh -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=openmpi -pib -cnf=/tmp/machinefile-$SLURM_JOB_ID -i $MYJOURNALFILE
fi
fi
}}
}}
Line 356: Line 375:


<!--T:6751-->
<!--T:6751-->
rm -f cleanup* core*
rm -f core*


<!--T:6752-->
<!--T:6752-->
module load CCEnv StdEnv/2023    # Do not change
module load CCEnv StdEnv/2023    # Do not change
module load ansys/2023R2        # or newer versions (niagara)
module load ansys/2023R2        # or newer versions (niagara only)
 
<!--T:6754-->
MYJOURNALFILE=myfile.jou        # Specify your journal file name
MYVERSION=3d                    # Specify 2d, 2ddp, 3d or 3ddp


<!--T:6753-->
<!--T:6753-->
# Customize this section to specify your remote license server
# These settings are used instead of your ~/.licenses/ansys.lic
# These settings are used instead of your ~/.licenses/ansys.lic
LICSERVER=license3.sharcnet.ca  # Specify license server hostname
LICSERVER=license3.sharcnet.ca  # Specify license server hostname
Line 369: Line 391:
INTEPORT=2325                    # Specify server interconnect port
INTEPORT=2325                    # Specify server interconnect port
VENDPORT=1793                    # Specify server vendor port
VENDPORT=1793                    # Specify server vendor port
# ------- do not change any lines below --------


<!--T:6744-->
<!--T:6744-->
Line 398: Line 422:
   mkdir -pv $SCRATCH/.fluentconf
   mkdir -pv $SCRATCH/.fluentconf
   touch $SCRATCH/.flrecent
   touch $SCRATCH/.flrecent
  # Specify 2d, 2ddp, 3d or 3ddp and replace sample with your journal filename
   if [ "$SLURM_NNODES" == 1 ]; then
   if [ "$SLURM_NNODES" == 1 ]; then
    fluent -g 2ddp -t $NCORES -affinity=0 -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pshmem -i $MYJOURNALFILE
   else
   else
    fluent -g 2ddp -t $NCORES -affinity=0 -cnf=/tmp/machinefile-$SLURM_JOB_ID -mpi=intel -ssh -i sample.jou
  fluent -g $MYVERSION -t $NCORES -affinity=0 -mpi=intelmpi -pib -cnf=/tmp/machinefile-$SLURM_JOB_ID -i $MYJOURNALFILE
   fi
   fi
fi
fi
cc_staff
1,894

edits

Navigation menu