Ansys: Difference between revisions

Jump to navigation Jump to search
3,883 bytes removed ,  8 months ago
m
no edit summary
mNo edit summary
mNo edit summary
Line 834: Line 834:
<!--T:1659-->
<!--T:1659-->
<tabs>
<tabs>
<tab name="Single node (stdenv/2016)">
{{File
|name=script-smp-2016.sh
|lang="bash"
|contents=
#!/bin/bash
#SBATCH --account=def-account  # Specify your account
#SBATCH --time=00-03:00        # Specify time (DD-HH:MM)
#SBATCH --mem=16G              # Specify memory for all cores
#SBATCH --ntasks=8            # Specify number of cores (1 or more)
#SBATCH --nodes=1              # Specify one node (do not change)
<!--T:4750-->
unset SLURM_GTIDS
<!--T:4751-->
module load StdEnv/2016
<!--T:4752-->
#module load ansys/19.1
#module load ansys/19.2
#module load ansys/2019R2
#module load ansys/2019R3
#module load ansys/2020R1
module load ansys/2020R2
<!--T:4753-->
mapdl -smp -b nolist -np $SLURM_NTASKS -dir $SLURM_TMPDIR -I YOURAPDLFILE.inp
<!--T:4754-->
rm -rf results-*
mkdir results-$SLURM_JOB_ID
cp -a --no-preserve=ownership $SLURM_TMPDIR/* results-$SLURM_JOB_ID
}}
</tab>
<tab name="Single node (stdenv/2020)">
<tab name="Single node (stdenv/2020)">
{{File
{{File
Line 896: Line 861:


<!--T:4759-->
<!--T:4759-->
rm -rf results-*
mkdir results-$SLURM_JOB_ID
cp -a --no-preserve=ownership $SLURM_TMPDIR/* results-$SLURM_JOB_ID
}}
</tab>
<tab name="Multinode (stdenv/2016)">
{{File
|name=script-dis-2016.sh
|lang="bash"
|contents=
#!/bin/bash
#SBATCH --account=def-account  # Specify your account
#SBATCH --time=00-03:00        # Specify time (DD-HH:MM)
#SBATCH --mem-per-cpu=2G      # Specify memory per core
#SBATCH --ntasks=8            # Specify number of cores (2 or more)
##SBATCH --nodes=2            # Specify number of nodes (optional)
##SBATCH --ntasks-per-node=4  # Specify cores per node (optional)
<!--T:4760-->
unset SLURM_GTIDS
<!--T:4761-->
module load StdEnv/2016
<!--T:4762-->
#module load ansys/2019R3
module load ansys/2020R1
<!--T:4763-->
export I_MPI_HYDRA_BOOTSTRAP=ssh; export KMP_AFFINITY=compact
mapdl -dis -mpi intelmpi -b nolist -np $SLURM_NTASKS -dir $SLURM_TMPDIR -I YOURAPDLFILE.inp
<!--T:4764-->
rm -rf results-*
rm -rf results-*
mkdir results-$SLURM_JOB_ID
mkdir results-$SLURM_JOB_ID
Line 1,106: Line 1,038:
::: <code>fluent -mpi=intel</code>, or,
::: <code>fluent -mpi=intel</code>, or,
::: <code>QTWEBENGINE_DISABLE_SANDBOX=1 cfx5</code>
::: <code>QTWEBENGINE_DISABLE_SANDBOX=1 cfx5</code>
::: ------------------------------------------------------------------------------------
::: <code>module load StdEnv/2016</code>
::: <code>module load ansys/2020R2</code> (or older versions)
:::  <code>fluent -mpi=intel</code>, or
::: <code>QTWEBENGINE_DISABLE_SANDBOX=1 cfx5</code>
::: o Where QTWEBENGINE_DISABLE_SANDBOX=1 prevents <code>cfx5 -> CFD-Post</code> from crashing on startup with message:
::: [<span style="Color:#ff7f50">Unexpected end of transmission from GUI.  Engine state was dumped ...</span>]


=== Mapdl === <!--T:1680-->
=== Mapdl === <!--T:1680-->
Line 1,126: Line 1,051:
::: <code>export QTWEBENGINE_DISABLE_SANDBOX=1</code> (only needed if using CFD-Post)
::: <code>export QTWEBENGINE_DISABLE_SANDBOX=1</code> (only needed if using CFD-Post)
::: <code>runwb2</code>
::: <code>runwb2</code>
::: ------------------------------------------------------------------------------------
::: <code>module load StdEnv/2016</code> (not available on Narval)
::: <code>module load ansys/2019R3</code> (or older versions)
::: <code>export PATH=$EBROOTNIXPKGS/bin:$PATH</code>
::: <code>xfwm4 --replace &</code> (only needed if using Ansys Mechanical)
::: <code>export QTWEBENGINE_DISABLE_SANDBOX=1</code> (only needed if using CFD-Post)
::: <code>runwb2</code>
::: o Where QTWEBENGINE_DISABLE_SANDBOX=1 prevents <code>CFX -> Results</code> from crashing on startup with message:
::: [<span style="Color:#ff7f50">Error! Application has terminated before command could be sent</span>]
::: <br>
::: <br>
::: NOTES :When running an Analysis Program such as Mechanical or Fluent in parallel on a single node, untick <i>Distributed</i> and specify a value of cores equal to your <b>salloc session setting minus 1</b>. The pulldown menus in the Ansys Mechanical workbench do not respond properly. As a workaround run <code>xfwm4 --replace</code> on the command line before starting workbench as shown. To make xfwm4 your default edit <code>$HOME/.vnc/xstartup</code> and change <code>mate-session</code> to <code>xfce4-session</code>.  Lastly, fluent from ansys/2022R2 does not currently work on compute nodes please use a different version.
::: NOTES :When running an Analysis Program such as Mechanical or Fluent in parallel on a single node, untick <i>Distributed</i> and specify a value of cores equal to your <b>salloc session setting minus 1</b>. The pulldown menus in the Ansys Mechanical workbench do not respond properly. As a workaround run <code>xfwm4 --replace</code> on the command line before starting workbench as shown. To make xfwm4 your default edit <code>$HOME/.vnc/xstartup</code> and change <code>mate-session</code> to <code>xfce4-session</code>.  Lastly, fluent from ansys/2022R2 does not currently work on compute nodes please use a different version.
Line 1,156: Line 1,072:
::: <code>module load StdEnv/2020 ansys/2021R2; A=212; B=5.12.6</code>, or
::: <code>module load StdEnv/2020 ansys/2021R2; A=212; B=5.12.6</code>, or
::: <code>module load StdEnv/2020 ansys/2021R1; A=211; B=5.12.6</code>, or
::: <code>module load StdEnv/2020 ansys/2021R1; A=211; B=5.12.6</code>, or
::: <code>module load StdEnv/2016 ansys/2020R2; A=202; B=5.12.6</code>, or
::: <code>module load StdEnv/2016 ansys/2020R1; A=201; B=5.10.1</code>, or
::: <code>module load StdEnv/2016 ansys/2019R3; A=195; B=5.10.1</code>, or
::: <code>export LD_LIBRARY_PATH=$EBROOTANSYS/v$A/CEI/apex$A/machines/linux_2.6_64/qt-$B/lib</code>
::: <code>export LD_LIBRARY_PATH=$EBROOTANSYS/v$A/CEI/apex$A/machines/linux_2.6_64/qt-$B/lib</code>
::: <code>ensight -X</code>
::: <code>ensight -X</code>
Line 1,189: Line 1,102:
::: click the Settings Tab -> Display -> tick X11 -> Apply -> OK -> File -> Exit
::: click the Settings Tab -> Display -> tick X11 -> Apply -> OK -> File -> Exit
::: The error popup should no longer appear when icemcfd is restarted.
::: The error popup should no longer appear when icemcfd is restarted.
::: ------------------------------------------------------------------------------------
::: <code>module load CcEnv StdEnv/2016 ansys/2020R2</code>, or
::: <code>module load CcEnv StdEnv/2016 ansys/2020R1</code>, or
::: <code>module load CcEnv StdEnv/2016 ansys/2019R3</code>
::: <code>export HOOPS_PICTURE=opengl</code>
::: <code>fluent | cfx5 | icemcfd</code><br>


=== Mapdl === <!--T:1681-->
=== Mapdl === <!--T:1681-->
Line 1,213: Line 1,120:
::: <code>module load SnEnv ansys/2021R1</code>, or
::: <code>module load SnEnv ansys/2021R1</code>, or
::: <code>module load SnEnv ansys/2020R2</code>
::: <code>module load SnEnv ansys/2020R2</code>
::: <code>runwb2</code>
::: ------------------------------------------------------------------------------------
::: <code>module load CcEnv StdEnv/2016 ansys/2020R1</code>, or
::: <code>module load CcEnv StdEnv/2016 ansys/2019R3</code>
::: <code>export PATH=$EBROOTNIXPKGS/bin:$PATH</code>
::: <code>runwb2</code>
::: <code>runwb2</code>
::: <br>
::: <br>
cc_staff
1,863

edits

Navigation menu