Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| software:ansys-fluent:ansys-fluent [2018-04-25 13:43] – sraskar | software:ansys-fluent:ansys-fluent [2018-04-25 13:46] (current) – [Additional Resources] sraskar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== ANSYS FLUENT in batch ====== | ||
| + | ANSYS FLUENT is commercial software that may only be used by research groups running a private license server. | ||
| + | |||
| + | ===== Submitting job ===== | ||
| + | |||
| + | |||
| + | Copy a Grid Engine script file and all necessary input files to your working directory, and then | ||
| + | |||
| + | - Login headnode. | ||
| + | - Start workgroup shell. | ||
| + | - Change to your working directory. | ||
| + | - Submit the job. | ||
| + | |||
| + | <note tip> | ||
| + | Sample commands here demonstrate example for : (cluster '' | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | ssh traine@mills.hpc.udel.edu | ||
| + | workgroup -g it_css | ||
| + | cd / | ||
| + | qsub fluent-3ddp.qs | ||
| + | </ | ||
| + | |||
| + | The working directory ''/ | ||
| + | Grid Engine script file '' | ||
| + | ===== Downloading example ===== | ||
| + | |||
| + | An example that shows how to submit a batch mpi job to execute fluent 3ddp with an input journal file can be downloaded from | ||
| + | the link: [[http:// | ||
| + | |||
| + | On Mills, the commands | ||
| + | <code bash> | ||
| + | wget http:// | ||
| + | tar -zxf fluent-3ddp-mpi.tar.gz | ||
| + | </ | ||
| + | will get and extract the files to the directory '' | ||
| + | - **'' | ||
| + | - **'' | ||
| + | - **'' | ||
| + | |||
| + | <note important> | ||
| + | ANSYS/ | ||
| + | The exact value should be obtained from the owner of the license. | ||
| + | <code text> | ||
| + | ANSYS LICENSE MANAGER ERROR:Could not connect to any license server. | ||
| + | The server is down or is not responsive. | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== Running example ===== | ||
| + | |||
| + | Sample session from login to submission: | ||
| + | <code text> | ||
| + | wombat:~ jdoe$ ssh traine@mills.hpc.udel.edu | ||
| + | |||
| + | ............................................................ | ||
| + | |||
| + | Mills cluster (mills.hpc.udel.edu) | ||
| + | |||
| + | This computer system is maintained by University of | ||
| + | Delaware IT. Links to documentation and other online | ||
| + | resources can be found at: | ||
| + | |||
| + | http:// | ||
| + | |||
| + | For support, please contact consult@udel.edu | ||
| + | |||
| + | ............................................................ | ||
| + | |||
| + | Last login: Mon Oct 1 15:50:17 2012 from wombat.us.udel.edu | ||
| + | </ | ||
| + | |||
| + | <code text> | ||
| + | [traine@mills ~]$ cd / | ||
| + | </ | ||
| + | <code text> | ||
| + | [traine@mills traine]$ wget http:// | ||
| + | --2012-10-01 15: | ||
| + | Resolving www.udel.edu... 128.175.13.63 | ||
| + | Connecting to www.udel.edu|128.175.13.63|: | ||
| + | HTTP request sent, awaiting response... 200 OK | ||
| + | Length: 154348 (151K) [application/ | ||
| + | Saving to: “fluent-3ddp-mpi.tar.gz” | ||
| + | |||
| + | 100%[==================================================================> | ||
| + | |||
| + | 2012-10-01 15:46:12 (48.7 MB/s) - “fluent-3ddp-mpi.tar.gz” saved [154348/ | ||
| + | |||
| + | </ | ||
| + | <code text> | ||
| + | [traine@mills traine]$ tar -zxvf fluent-3ddp-mpi.tar.gz | ||
| + | fluent-3ddp-mpi/ | ||
| + | fluent-3ddp-mpi/ | ||
| + | fluent-3ddp-mpi/ | ||
| + | fluent-3ddp-mpi/ | ||
| + | </ | ||
| + | <code text> | ||
| + | [traine@mills traine]$ cd fluent-3ddp-mpi | ||
| + | </ | ||
| + | <code text> | ||
| + | [traine@mills fluent-3ddp-mpi]$ vi fluent-3ddp.qs | ||
| + | </ | ||
| + | * You **must** edit this file to gain access to this licensed product. | ||
| + | <code text> | ||
| + | [traine@mills fluent-3ddp-mpi]$ workgroup -g it_css | ||
| + | </ | ||
| + | <code text> | ||
| + | [(it_css: | ||
| + | Your job 82746 (" | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Files ===== | ||
| + | |||
| + | ==== Batch file ==== | ||
| + | '' | ||
| + | <code bash> | ||
| + | #$ -pe openmpi 4 | ||
| + | #$ -l psm_endpoints=1 | ||
| + | |||
| + | source / | ||
| + | |||
| + | export ANSYSLMD_LICENSE_FILE=port@ls.udel.edu | ||
| + | vpkg_require ansys | ||
| + | |||
| + | echo "-- begin fluent run --" | ||
| + | fluent 3ddp -g -i input-3d -t$NSLOTS -pinfiniband -mpi=openmpi -ssh | ||
| + | echo "-- end fluent run --" | ||
| + | </ | ||
| + | |||
| + | ==== Input file ==== | ||
| + | '' | ||
| + | <code text> | ||
| + | ; Read case file | ||
| + | rc 3d.cas | ||
| + | ; Initialize the solution | ||
| + | / | ||
| + | ; Calculate 50 iterations | ||
| + | it 50 | ||
| + | ; Write data file | ||
| + | wd it50-3d.dat | ||
| + | ; Calculate another 50 iterations | ||
| + | it 50 | ||
| + | ; Write final data file | ||
| + | wd 3d.dat | ||
| + | ; Exit Fluent | ||
| + | exit | ||
| + | yes | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Output file ==== | ||
| + | |||
| + | The fluent output with be in the queue script output file between the "-- begin fluent run --" and "-- end fluent run --" lines. | ||
| + | For example: | ||
| + | <code text> | ||
| + | -- begin fluent run -- | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | Loading "/ | ||
| + | Done. | ||
| + | / | ||
| + | / | ||
| + | Starting / | ||
| + | |||
| + | | ||
| + | |||
| + | | ||
| + | | ||
| + | This product is subject to U.S. laws governing export and re-export. | ||
| + | For full Legal Notice, see documentation. | ||
| + | |||
| + | Build Time: Oct 25 2011 11:19:48 EDT Build Id: 10398 | ||
| + | Loading "/ | ||
| + | Done. | ||
| + | |||
| + | |||
| + | | ||
| + | This is an academic version of ANSYS FLUENT. Usage of this product | ||
| + | | ||
| + | | ||
| + | | ||
| + | Host spawning Node 0 on machine " | ||
| + | / | ||
| + | / | ||
| + | Starting fixfiledes / | ||
| + | |||
| + | ------------------------------------------------------------------------------ | ||
| + | ID | ||
| + | ------------------------------------------------------------------------------ | ||
| + | host | ||
| + | n3 | ||
| + | n2 | ||
| + | n1 | ||
| + | n0* openmpi n015 Linux-64 | ||
| + | |||
| + | Selected system interconnect: | ||
| + | ------------------------------------------------------------------------------ | ||
| + | |||
| + | |||
| + | Initializing SGE | ||
| + | Done. | ||
| + | |||
| + | Reading journal file input... | ||
| + | |||
| + | > | ||
| + | Multicore SMT processors detected. Processor affinity set! | ||
| + | ; Read case file | ||
| + | rc 3d.cas | ||
| + | |||
| + | Reading " | ||
| + | Using buffering for scanning file. | ||
| + | |||
| + | 4000 hexahedral cells, zone 2, binary. | ||
| + | 1600 quadrilateral wall faces, zone 3, binary. | ||
| + | 100 quadrilateral pressure-outlet faces, zone 4, binary. | ||
| + | 100 quadrilateral velocity-inlet faces, zone 5, binary. | ||
| + | 11100 quadrilateral interior faces, zone 7, binary. | ||
| + | 4961 nodes, binary. | ||
| + | 4961 node flags, binary. | ||
| + | |||
| + | Building... | ||
| + | mesh | ||
| + | auto partitioning mesh by Metis (fast), | ||
| + | distributing mesh | ||
| + | parts...., | ||
| + | faces...., | ||
| + | nodes...., | ||
| + | cells...., | ||
| + | | ||
| + | | ||
| + | | ||
| + | mixture | ||
| + | | ||
| + | default-interior | ||
| + | velocity_inlet.1 | ||
| + | pressure_outlet.2 | ||
| + | wall | ||
| + | fluid | ||
| + | | ||
| + | Done. | ||
| + | |||
| + | > ; Initialize the solution | ||
| + | / | ||
| + | |||
| + | > ; Calculate 50 iterations | ||
| + | it 50 | ||
| + | iter continuity x-velocity y-velocity z-velocity | ||
| + | 1 1.0000e+00 3.0626e+01 0.0000e+00 0.0000e+00 | ||
| + | 2 5.2224e-01 1.8645e-02 9.7302e-04 9.3701e-04 | ||
| + | 3 3.4389e-01 1.1462e-02 3.6203e-04 3.3080e-04 | ||
| + | 4 2.6015e-01 7.1708e-03 1.8307e-04 1.6784e-04 | ||
| + | 5 1.6257e-01 3.6794e-03 1.1499e-04 1.1104e-04 | ||
| + | 6 1.1773e-01 2.9507e-03 1.0063e-04 9.8831e-05 | ||
| + | 7 8.9668e-02 2.6900e-03 9.9205e-05 9.6483e-05 | ||
| + | 8 7.2522e-02 2.5473e-03 8.9085e-05 8.7391e-05 | ||
| + | 9 5.9407e-02 2.3933e-03 7.3671e-05 7.2378e-05 | ||
| + | 10 4.3260e-02 2.1616e-03 6.6998e-05 6.6789e-05 | ||
| + | 11 3.3065e-02 2.0107e-03 6.3300e-05 6.2885e-05 | ||
| + | iter continuity x-velocity y-velocity z-velocity | ||
| + | 12 2.6991e-02 1.8833e-03 5.8103e-05 5.7767e-05 | ||
| + | 13 2.0547e-02 1.7679e-03 5.2381e-05 5.2213e-05 | ||
| + | 14 1.6036e-02 1.6245e-03 4.5816e-05 4.5595e-05 | ||
| + | 15 1.2198e-02 1.4862e-03 4.0081e-05 3.9796e-05 | ||
| + | 16 9.6683e-03 1.3218e-03 3.5188e-05 3.4946e-05 | ||
| + | 17 7.5870e-03 1.1556e-03 3.0637e-05 3.0361e-05 | ||
| + | 18 5.5529e-03 9.9136e-04 2.6857e-05 2.6885e-05 | ||
| + | 19 4.1636e-03 8.3279e-04 2.4361e-05 2.4271e-05 | ||
| + | 20 3.2192e-03 6.8891e-04 2.2513e-05 2.2368e-05 | ||
| + | 21 2.5922e-03 5.5693e-04 2.0894e-05 2.0774e-05 | ||
| + | 22 2.2036e-03 4.4272e-04 1.9067e-05 1.9030e-05 | ||
| + | iter continuity x-velocity y-velocity z-velocity | ||
| + | 23 1.8422e-03 3.4535e-04 1.6883e-05 1.6860e-05 | ||
| + | 24 1.5145e-03 2.6291e-04 1.4504e-05 1.4497e-05 | ||
| + | 25 1.2806e-03 1.9693e-04 1.2115e-05 1.2065e-05 | ||
| + | 26 1.0292e-03 1.4402e-04 9.8752e-06 9.8899e-06 | ||
| + | ! 27 solution is converged | ||
| + | 27 8.3820e-04 1.0405e-04 7.8272e-06 7.8486e-06 | ||
| + | |||
| + | > ; Write data file | ||
| + | wd it50-3d.dat | ||
| + | |||
| + | Writing " | ||
| + | Done. | ||
| + | |||
| + | |||
| + | > ; Calculate another 50 iterations | ||
| + | it 50 | ||
| + | iter continuity x-velocity y-velocity z-velocity | ||
| + | ! 27 solution is converged | ||
| + | 27 8.3820e-04 1.0405e-04 7.8272e-06 7.8486e-06 | ||
| + | ! 28 solution is converged | ||
| + | 28 6.7773e-04 7.3765e-05 6.0637e-06 6.0806e-06 | ||
| + | |||
| + | > ; Write another data file | ||
| + | wd 3d.dat | ||
| + | |||
| + | Writing " | ||
| + | Done. | ||
| + | |||
| + | |||
| + | > ; Exit Fluent | ||
| + | exit | ||
| + | The current case has not been saved. | ||
| + | OK to discard? [cancel] | ||
| + | yes | ||
| + | -- end fluent run -- | ||
| + | </ | ||
| + | |||
| + | ==== Data files ==== | ||
| + | |||
| + | The files " | ||
| + | |||
| + | ===== Additional Resources ===== | ||
| + | * [[https:// | ||