Ansys Free Student Software

Ansys Free Student Software

USERMAT Fortran compiler for ANSYS 2022 R1 Student version

    • rammohan.telikicherla
      Subscriber

      Hello,

      I want to compile the Fortran usermat subroutine with ANSYS 2022 R1 student version and I was looking for compilers that are compatible with it. Please guide me to where I can find the compiler that would be compatible with running the Fortran subroutines? Do I have to install Visual Studio 2012/ 19 to compile the subroutines?

      Thank you,

      Ram

    • George Karnos
      Ansys Employee


      * For UDFs, these supported compilers are recommended but optional, as a built-in compiler (Clang 10.0.0) is provided as part of the Fluent installation. You should enable the built-in compiler if the compiler you installed is an older version that is not supported; if Fluent determines that neither Microsoft Visual Studio nor Clang is installed on your computer, the built-in compiler is used automatically. For details, seeCompiling a UDF Using the GUI in theFluent Customization Manual.
      ** This compiler is only supported for compiling UDFs, and will only be used if Fluent determines that Microsoft Visual Studio is not installed on your computer.


      Note:The software compiler versions listed above may not correspond to the latest releases available from Intel and Microsoft but can be downloaded separately from the respective vendors' customer sites. If you need to purchase/obtain Intel Fortran, note that you must register on Intel's customer website with your Intel Fortran license information. Once logged into Intel's customer site, you have the option of downloading previous releases. For Microsoft Visual Studio, an MSDN subscription is required, which allows you to download previous releases. Note that purchasing the latest Microsoft Visual Studio software without an MSDN subscription may not entitle you to download previous releases.
    • rammohan.telikicherla
      Subscriber
      Hello Thank you very much for guiding me with the FORTRAN and Visual studio versions compatible with the ANSYS student workbench 2022.
      Please find the attached snapshots. When I installed the UPF extension for the ANSYS workbench, I got a warning.
      I have installed version 4.0 of the UPF extension which is compatible with versions 18 and 19.
      Would it cause potential issues with running it with ANSYS 2022 and do I need to install an updated UPF extension?
      Please let me know.
      Thank you Ram


    • George Karnos
      Ansys Employee
      I would say you need the updated one, if available.
    • Mike Rife
      Ansys Employee
      & That ACT Extension comes with the source code - if you look at it it is mostly defensive programming for OS version, bit type, WB version and compiler version. It looks like the only paths to not working are using Linux and 32 bit Windows. The other conditions try to implement the UPF but with a warning if not the right version.
      In my opinion unless you are a system admin implementing this for many users, I'd not worry about the warning message. If you have the right compiler etc, and it's configured correctly, then the extension should work. But the /UPF command method is easy to perform manually. Please see the Ansys Help; Mechanical APDL -> Programmer's Reference chapter 1.11.1 on using the /UPF command on Windows systems. It just requires:
      1) Setting the ANS_USE_UPF environment variable to True. I'd do this in a Windows batch file that then launches WB. That way you don't have to have the env var active all the time.
      2) Insert the /UPF command into the APDL input file. In WB Mechanical you are probably already using a commands object to define the UPF inputs (i.e. material model definition). Just add the command at the start of the same commands object.
      3) The actual user routine file needs to be in the MAPDL working directory. To do this just copy it to the WB Mechanical MECH folder for the analysis system prior to solving. The file will be copied, along with the input file, to the working directory MAPDL will use during the solve. You can right-click the Solution object and there is an option to open the folder. This will open MS File Explorer in the right folder. Just copy your user routine file here. Then solve.
      Mike
Viewing 4 reply threads
  • You must be logged in to reply to this topic.