Commit d7c73cb7 authored by Jan Siwiec's avatar Jan Siwiec

Update ansys-fluent.md

parent 5fa16586
Pipeline #11264 passed with stages
in 23 minutes and 31 seconds
......@@ -4,7 +4,7 @@
## Common Way to Run Fluent Over PBS File
To run ANSYS Fluent in batch mode you can utilize/modify the default fluent.pbs script and execute it via the qsub command.
To run ANSYS Fluent in batch mode, you can utilize/modify the default fluent.pbs script and execute it via the qsub command:
```bash
#!/bin/bash
......@@ -37,11 +37,11 @@ NCORES=`wc -l $PBS_NODEFILE |awk '{print $1}'`
fluent 3d -t$NCORES -cnf=$PBS_NODEFILE -g -i fluent.jou
```
Header of the pbs file (above) is common and description can be find on [this site][1]. [SVS FEM][b] recommends to utilize sources by keywords: nodes, ppn. These keywords allows to address directly the number of nodes (computers) and cores (ppn) which will be utilized in the job. Also the rest of code assumes such structure of allocated resources.
The header of the pbs file (above) is common and the description can be found on [this site][1]. [SVS FEM][b] recommends utilizing sources by keywords: nodes, ppn. These keywords allows addressing directly the number of nodes (computers) and cores (ppn) utilized in the job. In addition, the rest of the code assumes such structure of allocated resources.
Working directory has to be created before sending pbs job into the queue. Input file should be in working directory or full path to input file has to be specified. Input file has to be defined by common Fluent journal file which is attached to the Fluent solver via parameter -i fluent.jou
A working directory has to be created before sending the pbs job into the queue. The input file should be in the working directory or a full path to the input file has to be specified. The input file has to be defined by a common Fluent journal file which is attached to the Fluent solver via the -i fluent.jou parameter.
Journal file with definition of the input geometry and boundary conditions and defined process of solution has e.g. the following structure:
A journal file with the definition of the input geometry and boundary conditions and defined process of solution has, for example, the following structure:
```console
/file/read-case aircraft_2m.cas.gz
......@@ -53,7 +53,7 @@ Journal file with definition of the input geometry and boundary conditions and d
/exit yes
```
The appropriate dimension of the problem has to be set by parameter (2d/3d).
The appropriate dimension of the problem has to be set by a parameter (2d/3d).
## Fast Way to Run Fluent From Command Line
......@@ -61,11 +61,11 @@ The appropriate dimension of the problem has to be set by parameter (2d/3d).
fluent solver_version [FLUENT_options] -i journal_file -pbs
```
This syntax will start the ANSYS FLUENT job under PBS Professional using the qsub command in a batch manner. When resources are available, PBS Professional will start the job and return a job ID, usually in the form of _job_ID.hostname_. This job ID can then be used to query, control, or stop the job using standard PBS Professional commands, such as qstat or qdel. The job will be run out of the current working directory, and all output will be written to the file fluent.o _job_ID_.
This syntax will start the ANSYS FLUENT job under PBS Professional using the qsub command in a batch manner. When resources are available, PBS Professional will start the job and return the job ID, usually in the form of _job_ID.hostname_. This job ID can then be used to query, control, or stop the job using standard PBS Professional commands, such as qstat or qdel. The job will be run out of the current working directory and all output will be written to the fluent.o _job_ID_ file.
## Running Fluent via User's Config File
The sample script uses a configuration file called pbs_fluent.conf if no command line arguments are present. This configuration file should be present in the directory from which the jobs are submitted (which is also the directory in which the jobs are executed). The following is an example of what the content of pbs_fluent.conf can be:
If no command line arguments are present, the sample script uses a configuration file called pbs_fluent.conf. This configuration file should be present in the directory from which the jobs are submitted (which is also the directory in which the jobs are executed). The following is an example of what the content of pbs_fluent.conf can be:
```console
input="example_small.flin"
......@@ -81,13 +81,13 @@ input is the name of the input file.
case is the name of the .cas file that the input file will utilize.
fluent_args are extra ANSYS FLUENT arguments. As shown in the previous example, you can specify the interconnect by using the -p interconnect command. The available interconnects include ethernet (the default), myrinet, Infiniband, vendor, altix, and crayx. The MPI is selected automatically, based on the specified interconnect.
fluent_args are extra ANSYS FLUENT arguments. As shown in the previous example, you can specify the interconnect by using the -p interconnect command. The available interconnects include ethernet (default), Myrinet, InfiniBand, Vendor, Altix, and Crayx. MPI is selected automatically, based on the specified interconnect.
outfile is the name of the file to which the standard output will be sent.
mpp="true" will tell the job script to execute the job across multiple processors.
mpp="true" will tell the job script to execute the job across multiple processors.
To run ANSYS Fluent in batch mode with user's config file you can utilize/modify the following script and execute it via the qsub command.
To run ANSYS Fluent in batch mode with the user's config file, you can utilize/modify the following script and execute it via the qsub command:
```bash
#!/bin/sh
......@@ -142,13 +142,13 @@ It runs the jobs out of the directory from which they are submitted (PBS_O_WORKD
## Running Fluent in Parralel
Fluent could be run in parallel only under Academic Research license. To do so this ANSYS Academic Research license must be placed before ANSYS CFD license in user preferences. To make this change anslic_admin utility should be run
Fluent could be run in parallel only under the Academic Research license. To do this, the ANSYS Academic Research license must be placed before the ANSYS CFD license in user preferences. To make this change, the anslic_admin utility should be run:
```console
/ansys_inc/shared_les/licensing/lic_admin/anslic_admin
```
ANSLIC_ADMIN Utility will be run
The ANSLIC_ADMIN utility will be run:
![](../../../img/Fluent_Licence_1.jpg)
......@@ -156,7 +156,7 @@ ANSLIC_ADMIN Utility will be run
![](../../../img/Fluent_Licence_3.jpg)
ANSYS Academic Research license should be moved up to the top of the list.
The ANSYS Academic Research license should be moved up to the top of the list:
![](../../../img/Fluent_Licence_4.jpg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment