{"id":173,"date":"2013-04-22T14:35:06","date_gmt":"2013-04-22T14:35:06","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/?page_id=173"},"modified":"2018-09-19T13:53:27","modified_gmt":"2018-09-19T13:53:27","slug":"fluent","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/fluent\/","title":{"rendered":"Fluent"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>Ansys Fluent is a computational fluid dynamics application. Fluent v19.2, v19.1, v18.1, v18.0, v16.2, v14.0 and v13.0 are now available. The previous version, 6.3.26, is no longer available as the licences have end-of-lifed.<\/p>\n<h2>Restrictions on Use<\/h2>\n<p>Only users who have been added to the Fluent group can run the application. Owing to licence restrictions, only users from the School of MACE can be added to this group. Requests to be added to the Fluent group should be emailed to &#x69;&#x74;&#x73;&#45;&#114;i-&#x74;&#x65;&#x61;&#x6d;&#64;&#109;an&#x63;&#x68;&#x65;&#115;&#116;&#101;r&#46;&#x61;&#x63;&#x2e;&#117;&#107;<\/p>\n<p>Fluent jobs must not be run on the login node. If you need to run an interactive job please use <a href=\"\/csf2\/csf-user-documentation\/the-batch-system-sge\/qrsh\">qrsh<\/a> as detailed below.<\/p>\n<table style=\"text-align: center; width: 75%; margin-left: 12%; margin-right: 12%;\">\n<tbody>\n<tr>\n<td><em>Due to licence restrictions parallel jobs using version 13 and 14 can use no more that 4 cores. Newer versions may use up to 24 cores in fluent-smp.pe<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Set Up Procedure<\/h2>\n<p>Once you have been added to the Fluent group, you will be able to access the executables by using <em>one<\/em> of the following module commands:<\/p>\n<pre>module load apps\/binapps\/fluent\/19.2\r\nmodule load apps\/binapps\/fluent\/19.1\r\nmodule load apps\/binapps\/fluent\/19.0\r\nmodule load apps\/binapps\/fluent\/18.1\r\nmodule load apps\/binapps\/fluent\/18.0\r\nmodule load apps\/binapps\/fluent\/16.2        # Max 24 cores in a job (this and newer versions)\r\nmodule load apps\/binapps\/fluent\/14.0        # Max 4 cores in a job\r\nmodule load apps\/binapps\/fluent\/13.0        # Max 4 cores in a job\r\n<\/pre>\n<h2>Available Parallel Environments for Fluent<\/h2>\n<p>When running Fluent jobs, one of the Fluent-specific SGE parallel environments must be used; these ensure proper clean-up at the end of the job.<\/p>\n<p>Only one such environment is currently available:<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"width: 30%;\">fluent-smp.pe<\/td>\n<td>Suitable for parallel jobs of no more than 24 processes. The PE ensures that all processes are on the same compute node.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>See the instructions below for how to use this in your job submissions.<\/p>\n<h2>Required Input Files<\/h2>\n<p>To run a fluent job you will need a fluent <em>journal<\/em> file, a fluent <em>case<\/em> file and usually a data file which the case file will load.<\/p>\n<p>The journal file can be created either by asking fluent to write it while using the fluent GUI (which can be run from the CSF or from a desktop PC installation). Alternatively, the journal file can be written by hand. This is common &#8211; they are often very simple files which load the case and data files, then start the simulation (we have seen journal files that are only 3 lines long).<\/p>\n<h3>UDF Files<\/h3>\n<p>If you need to compile a <em>User Defined Function<\/em> (UDF) file, this should be done on the CSF. Fluent will usually do this automatically when your job runs provided you have a line in your <em>case<\/em> (<code>.cas<\/code>) file similar to:<\/p>\n<pre>(udf\/compile\/files ((\"libudf\" (source \"\/scratch\/<em>username<\/em>\/<em>my_project<\/em>\/<em>my_udf<\/em>.c\") (header))))\r\n<\/pre>\n<p>This will ask fluent to compile your UDF source file (named <code>my_udf.c<\/code> in a directory named <em>my_project<\/em> in your scratch area &#8211; change as required).<\/p>\n<p>If you wish to check your UDF code compiles on the CSF <em>before<\/em> submitting a job to the batch system, you can run:<\/p>\n<pre>csf_compile_udf --help\r\n<\/pre>\n<p>for instructions on how to use this script to check your code.<\/p>\n<h2>Running Fluent in Parallel in batch<\/h2>\n<p>Fluent is SGE-aware, so there is no need to write a SGE submission script. You can run <code>fluent<\/code> on the login node and it will submit a job to the batch system for you. You must tell Fluent that you wish to run your job under SGE and pass the name of the parallel environment and number of cores you would like to use, for example, to run a 2-core job:<\/p>\n<pre># Run this on the CSF login node at ask fluent to submit a batch job\r\n\r\nfluent 3d -g -t<strong>2<\/strong> -ssh -sge -sgepe fluent-smp.pe <strong>2<\/strong> -i <em>input.jou<\/em>\r\n               ^                                ^      ^\r\n               |                                |      | \r\n               +---------------+----------------+      +--- Journal file to run\r\n                               |\r\n               The value given to the \"-t\" option\r\n               MUST be the same as the value given\r\n               to the \"-sgepe fluent-smp.pe\" option\r\n               (in this example, <strong>2<\/strong> [cores])\r\n<\/pre>\n<h2>Running High Memory Fluent Jobs in Parallel<\/h2>\n<p>The HIGHMEM nodes are NOT currently available while the CSF3 merger takes place. DO NOT USE.<\/p>\n<p>Please DO NOT use this option unless you genuinely need more than 4GB per core as the available resources for such work is very limited.<\/p>\n<p>The built in SGE functions of fluent are unable to take account of &#8216;<code>-l<\/code>&#8216; options passed to it. The following will submit a fluent job the to 8GB per core nodes:<\/p>\n<pre># Run this on the CSF login node to submit a batch job yourself\r\n\r\nqsub -V -cwd -l highmem -pe fluent-smp.pe <strong>2<\/strong> -b y fluent 3ddp -g -t<strong>2<\/strong> -ssh -i <em>input.jou<\/em>\r\n     ^                                         ^        ^                           ^\r\n     |                                         |        |                           |\r\n     +--------------------+--------------------+        +-------------+-------------+\r\n                          |                                           |\r\n           Flags given to the qsub command            Flags given to the fluent command\r\n           used to submit the batch job.              that will be run in the batch job.\r\n<\/pre>\n<p>The <code>-V<\/code> and <code>-cwd<\/code> are important to ensure your job finds the fluent command and the input file. The above command is equivalent to the following jobscript:<\/p>\n<pre>#!\/bin\/bash\r\n#$ -V\r\n#$ -cwd\r\n#$ -l highmem\r\n#$ -pe fluent-smp.pe 2\r\n\r\n# In a jobscript the $NSLOTS variable is automatically set to the number\r\n# given on the '#$ -pe' line (2 in this case). Now run fluent.\r\n\r\nfluent 3ddp -g -t<strong>$NSLOTS<\/strong> -ssh -i <em>input.jou<\/em>\r\n<\/pre>\n<p>If you use a jobscript you should then submit it from the login node using<\/p>\n<pre>qsub <em>jobscript<\/em>\r\n<\/pre>\n<p>where <code><em>jobscript<\/em><\/code> is the name of your jobscript file.<\/p>\n<h2>Running Serial Interactive Jobs via qrsh<\/h2>\n<p>The running of <strong>serial<\/strong>, interactive jobs is tolerated. This is mainly used to set up a simulation which can then be saved to file and run in batch. You may need to use the GUI to set up a UDF. If you are setting up a parallel UDF please email <a href=\"&#109;&#x61;&#x69;&#108;&#x74;&#x6f;:&#x69;&#x74;s&#45;&#x72;i&#45;&#x74;e&#97;&#x6d;&#64;&#109;&#x61;n&#99;&#x68;&#x65;&#115;&#x74;&#x65;&#114;&#x2e;&#x61;c&#x2e;&#x75;k\">its-ri&#45;&#116;&#101;&#97;&#109;&#64;&#109;&#x61;&#x6e;&#x63;&#x68;&#x65;&#x73;&#x74;&#x65;&#x72;&#x2e;&#x61;&#x63;&#46;uk<\/a>.<\/p>\n<p>You may run fluent interactively using the <code>short<\/code> option which has a time limit of 1 hour.<\/p>\n<h3>Starting Fluent interactively on short nodes<\/h3>\n<pre>qrsh -l short -l inter \r\n<\/pre>\n<p>Then, once <code>qrsh<\/code> has returned a commandline on a compute node, load the appropriate environment module and start Fluent:<\/p>\n<pre>module load apps\/binapps\/fluent\/16.2          # Load the modulefile for the version you require\r\nfluent\r\n<\/pre>\n<p>Notes:<\/p>\n<ol>\n<li>Attempting to combine the above steps by, from the login node, using the single command\n<pre># Do NOT do this - it will fail!\r\nqrsh -l short -l inter \/opt\/gridware\/apps\/binapps\/fluent\/14.0\/ansys_inc\/v140\/fluent\/bin\/fluent<\/pre>\n<p>will result in an <strong>incorrect environment<\/strong> for Fluent and the GUI may not operate correctly.<\/li>\n<li>Linux: if the render window section of the GUI does not display your model try setting the following before running fluent:\n<pre class=\"in2\">export LIBGL_ALWAYS_INDIRECT=1<\/pre>\n<\/li>\n<li>alternatively run fluent using:\n<pre class=\"in2\">fluent -driver x11<\/pre>\n<\/li>\n<li>Windows: if the render window is slow to redraw or flashes try running fluent using:\n<pre class=\"in2\">fluent -driver x11<\/pre>\n<\/li>\n<\/ol>\n<p><strong>Note:<\/strong> For the GUI to work you must have an X server running on your PC. See the instructions on the <a href=\"\/csf2\/getting-started-on-the-csf\/using-an-app-with-a-gui-x11-and-qrsh\/\">using GUI based applications<\/a> page.<\/p>\n<h2>Further Information<\/h2>\n<p>Further information on Fluent and other CFD applications may be found by <a href=\"http:\/\/cfd.mace.manchester.ac.uk\/twiki\/bin\/view\/Forum\/ForumCFD\">visiting the MACE CFD Forum<\/a>.<\/p>\n<p>More information about <a href=\"\/csf2\/csf-user-documentation\/sge-interactive-jobs-qrsh\/\">qrsh<\/a> on the CSF.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Ansys Fluent is a computational fluid dynamics application. Fluent v19.2, v19.1, v18.1, v18.0, v16.2, v14.0 and v13.0 are now available. The previous version, 6.3.26, is no longer available as the licences have end-of-lifed. Restrictions on Use Only users who have been added to the Fluent group can run the application. Owing to licence restrictions, only users from the School of MACE can be added to this group. Requests to be added to the Fluent.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/fluent\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":31,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-173","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/comments?post=173"}],"version-history":[{"count":21,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/173\/revisions"}],"predecessor-version":[{"id":4854,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/173\/revisions\/4854"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/31"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/media?parent=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}