We’re putting the final touches on our new badges platform. Badge issuance remains temporarily paused, but all completions are being recorded and will be fulfilled once the platform is live. Thank you for your patience.
General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

How to call homemade routines in an UPF ?

TAGGED: 

    • Loïc Féréol
      Subscriber

      Hi ANSYS community,

      I'm currently studying the evolution of a state variable in a transient thermal problem. To do so, I'm using the UserMatTh subroutine. 
      To program in a more procedural way, I would like to calculate the state variable by calling another fortran file. I can't find how to compile it as I don't have access to any makefile.

      So my question is : Is it possible to use UPF which is calling a homemade fortran file ? If yes, how to compile and link it ?

      I hope my problem is clear enough and I thank you in advance !

    • Ashish Khemka
      Forum Moderator

      Hi,

      Please see if the following link is helpful: Chapter 2: UPF Subroutines and Functions (ansys.com)

      How to access the ANSYS Online Help

      Regards,

      Ashish Khemka

    • Loïc Féréol
      Subscriber

      Hi,

      Thank you for your answer. I already consulted this chapter to use the UserMatTh.F file. To make further developments, I want to implement homemade subroutines, stored in external fortran files, which will be called by UserMatTh.F . The problem is I cannot find in the manual if it is possible to use my own subroutines to conduct these sort of operations.

      Best,

      Loïc Féréol

    • Ashish Khemka
      Forum Moderator

      Hi Loïc,

      Please wait for other members to comment.

       

      Regards,

      Ashish Khemka

    • Loïc Féréol
      Subscriber

      Hi ANSYS community,

      I solved this problem a few weeks ago, it is possible to call homemade routines. The routines don't have to be linked via the GUI. You just have to call them in the main routine (e.g. UserMatTh.F). I recommand to test them outside of the simulation in a simple case.

      Best,

      Loïc Féréol

Viewing 4 reply threads
  • The topic ‘How to call homemade routines in an UPF ?’ is closed to new replies.