TAGGED: upf
-
-
October 23, 2023 at 6:39 pm
Loïc Féréol
SubscriberHi 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 ! -
October 27, 2023 at 1:37 pm
Ashish Khemka
Forum ModeratorHi,
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
-
October 27, 2023 at 4:31 pm
Loïc Féréol
SubscriberHi,
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 -
October 27, 2023 at 6:09 pm
Ashish Khemka
Forum ModeratorHi Loïc,
Please wait for other members to comment.
Regards,
Ashish Khemka
-
November 29, 2023 at 8:27 pm
Loïc Féréol
SubscriberHi 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
-
- The topic ‘How to call homemade routines in an UPF ?’ is closed to new replies.
-
3190
-
1024
-
962
-
858
-
798
© 2025 Copyright ANSYS, Inc. All rights reserved.