H.P.C.

HPC - Ansys Tool

1. Step1. Login with user Mobaxter..

ssh –X username@10.3.0.4 

2. Step2. Submit job using script file .sh
qsub ansys-dgx.sh
(or)
qsub ansys-gpu.sh

Note- this will submit for resource from HPC and walltime , if you don’t have script file you can create using blow example.

**Jupyter Script Demo**
**How to Create the Script:**

1. Run the command -
vim ansys-dgx.sh
or
vim ansys-gpu.sh

2. Copy and paste the lines below into the script.

3. Adjust the required ncpus and ngpus.

Select the walltime to set a time limit for your work.

Save the script by typing :wq!.


Note – please user minimum ncpus and ngpus as requirement



**************Demo ansys Script ##1******************************

Step3 -- Copy and paste below details in ansys-gpu.sh file
#!/bin/bash
#PBS -N ansys_fluent
#PBS -l select=1:ncpus=10:ngpus=1
#PBS -q dgx
#PBS -l walltime=12:00:00
#PBS -o $PBS_O_WORKDIR/ansys_fluent.log
# Change to the working directory where your input files are located
cd $PBS_O_WORKDIR

# Save output files (modify this as needed)
mv output_case.out $PBS_O_WORKDIR/
**************Demo ansys Script ##2****************************

Step3 -- Copy and paste below details in ansys-dgx.sh file
    #!/bin/bash
#PBS -N ansys_fluent
#PBS -l select=1:host=dgx:ncpus=8:ngpus=1
#PBS -q dgx
#PBS -l walltime=12:00:00
#PBS -o $PBS_O_WORKDIR/ansys_fluent.log
#PBS -joe
# Change to the working directory where your input files are located
cd $PBS_O_WORKDIR
# Save output files (modify this as needed)
mv output_case.out $PBS_O_WORKDIR/
    

Step -4 Save the script by typing.
    :wq!
    
Step-5 run command
qstat –aw

(this command help you to see where your job is running –verify you node )

{NOTE – if you are submit gpu.sh job then ssh on gpu node , if you are submit dgx job ssh on dgx node}


Step-6 now ssh – where your job in Running
 ssh –X dgx
or
#ssh –X(node name after verify “qstat –aw” command)
Step-7 after login
 module load apps/ansys

Step -8 run ansys using fluent Command
fluent

Step -9 kill job after work done
qdel –W force <job ID>

{note – if you want to check your id using command #qstat –aw}



Central Computting Facilities MANIT Bhopal