Ansys Products

Ansys Products

ANSYS 2019 R3: Redirect Temporary/Scratch Files to New Directory (Fluent)

    • CMCsupport1
      Subscriber

      Good morning, 


      We provide CentOS 7 virtual accounts for our subscribers. Each account has about 8 cores and 16 to 32 GB of memory. These values are fixed.


      For home directory, we provide part of each account in volatile memory – reserved per instance – and permanent disk storage, that persists when students log in and log back out each day.


      Our virtual account administrator is reporting that during ANSYS simulations, users are generating large amounts of temporary/scratch files. These files are left behind by users when simulations have completed in both persistent and volatile memory.  His proposed solution is to attach additional disk storage to be used for temporary/scratch file read/write activity. This would be a new directory.  Each virtual account would be able to use this space.


      He has asked me to find a way to configure Fluent so that the program uses this new storage disk for all temporary/scratch files and all users. He would prefer to do this himself, by setting a variable in a configuration script file. This file would be run each time a user starts Fluent, so he doesn’t have to tell each user to make this change in teh program. Is this possible?


       


      Let us know if you need more information about our set-up.


       


      Thank you, 


      CMC Microsystems' Technical Support Staff


       

    • tsiriaks
      Ansys Employee

      Hello CMC Microsystems' Technical Support Staff


      Please refer to this KM from ANSYS Customer Portal (


       


      #########


      Solution # 2043293


      When Fluent is launched on a Linux system, by default, it will write out temp files to the /tmp directory.  However, many times the /tmp directory is not accessible to users or does not have enough disk space.  This behavior is hard coded into the Fluent run script.


      In order to change this behavior you will need to modify the Fluent run script located in the


      /ansys_inc/v172/fluent/fluent17.2.0/multiport/mpi_wrapper/bin directory.


      *Make sure you make a copy of the original file before modifying the Fluent run script.


      Modify the mpirun.fl script


      FROM:


      my_appfile="/tmp/fluent-appfile.$$"


      TO:


      my_appfile="/new_path/fluent-appfile.$$"


      #########


       


      Thanks,


      Win


       

    • CMCsupport1
      Subscriber

      Hello, Doctor,


      As in the past, we are obliged to ANSYS support staff for help. Please consider this case 'closed'.


       


      Regards,


      CMC Microsystems' Technical Support

    • tsiriaks
      Ansys Employee

      You are welcome. Sorry for the delayed response.


      Thanks,


      Win

Viewing 3 reply threads
  • You must be logged in to reply to this topic.