ANSYS Fluent

De Wiki de Calcul Québec
Aller à : Navigation, rechercher
Cette page est une traduction de la page ANSYS Fluent et la traduction est complétée à 100 % et à jour.

Autres langues :anglais 100% • ‎français 100%

Sommaire

Description

ANSYS Fluent is a program capable of carrying out the physical modelling of fluid flow, turbulence, heat transfer and chemical reactions for industrial applications ranging from airflow around an airplane wing to combustion in a furnace, from bubble columns to offshore oil platforms, from blood circulation to semiconductor design and from the design of a clean room up to sewage treatment plants. Special models that allow the software to model combustion cylinders, aero-acoustics, turbines and multiphase systems have made possible the expansion of its field of application.

ANSYS Fluent is a commercial application. Each group wishing to use it at Calcul Québec must provide its own license. For more information, please contact us.

Particularities

SSH configuration and keys

ANSYS Fluent is an application that is loosely integrated, which means that the user is responsible for starting different processes on every node that is allocated using the batch script. It is therefore necessary to have a means of communication between the worker nodes, and in this case we use SSH.

As no information can be entered by the user during communication between nodes, it may be necessary to generate SSH keys. On certain servers, this is automatically done. To test if this is the case, use the command

[name@server $] ssh localhost


The SSH connection should work without asking anything on your part. If this is not the case, you should generate SSH keys.

How to start Fluent on several nodes

Usage on Cottos and Briarée

ANSYS Fluent is also available on the two clusters located at the Université de Montréal but to use it you must belong to a group which possesses a license for this software. An example of a job submission script for a Fluent job on Cottos is the following:

File : fluent_cottos.pbs
#!/bin/bash
#PBS -o output.txt
#PBS -j oe
#PBS -l nodes=4:ppn=8
#PBS -l walltime=12:00:00
 
cd "${PBS_O_WORKDIR}"
 
/share/apps/ANSYS/v130/CFX/bin/cfx5solve -maxet "11 [hr]" -start-method 'HP MPI Distributed Parallel' < fichier_journal.jou
 
################################################################
# Wait 30 seconds
sleep 30
# Assemble a list of all the nodes associated with this job
HLIST=`cat $PBS_NODEFILE | sort -u`
# For every such node, kill the "solver" process
for nom in $HLIST
do
ssh $nom "killall solver-hpmpi.exe"
done
################################################################


To use the software on Briarée, you just need to modify the value of PPN (12 instead of 8) and use the path /home/apps/Logiciels/ANSYS instead of /share/apps/ANSYS:

File : submit_fluent_briaree.pbs
#!/bin/bash
#PBS -j oe
#PBS -o output.txt
#PBS -l nodes=4:ppn=12
#PBS -l walltime=12:00:00
 
cd "${PBS_O_WORKDIR}"
 
module load ANSYS_CONC/v145
fluent 3ddp -t48 -ssh -pib -cnf=${PBS_NODEFILE} -mpi=pcmpi -g -i journal.jou > output1.dat


Journal File Example

File : journal.jou
; read files
/file/read-case "case.cas"
/file/read-data "data.dat"
 
; auto-save options
file/auto-save/case-frequency if-mesh-is-modified
file/auto-save/data-frequency 25
file/auto-save/root-name "autosave"
file/confirm-overwrite no
 
; solving
/solve/iterate 2000
 
; write results
/file/write-data "data.dat"
exit yes


Job Submission Script for Colosse

File : submit_fluent_moab.sh
#!/bin/bash
#PBS -N NameOfTheJob
#PBS -A abc-123-aa
#PBS -l nodes=4:ppn=8
#PBS -l walltime=12:00:00
 
cd "${PBS_O_WORKDIR}"
 
module load /home/smkalla12/modulefiles/apps/ansys-13.0-fluent
/clumeq/bin/moabhl2hl.py --format ANSYS-FLUENT > hosts.txt
nslots=$(wc -l hosts.txt)
fluent 3ddp -pinfiniband -mpi=hp -g -t$nslots -cnf=hosts.txt -ssh < journal.jou 1>&2 2>outputfile
rm hosts.txt


Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Ressources de Calcul Québec
Outils
Partager