David Weed
Ansys Employee
nThe only resource on usercreep and UPFs, in general, that I can share is the Programmer's Reference in the help: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v211/en/ans_prog/Z7K4r1e5lcd.html%23UPFimplcrpjwf122099345nThe highlighted items are Fortran Boolean logic expressions; see table 8.2 here: http://www.cs.uwm.edu/classes/cs151/Bacon/Lecture/HTML/ch08s03.htmlnRegarding using python, I'm note sure if this is supported though C and C++ are. See the Programmer's Reference here: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v211/en/ans_prog/Q7K4r2b7lcd.htmln1.5. Programming in Languages Other Than FORTRANnIf you wish to run Mechanical APDL with user customizations, the preferred method is to design and program your custom routine in FORTRAN. Although you can use languages other than FORTRAN, in each case FORTRAN must provide the interface to the rest of the Mechanical APDL program. If you do use a language other than FORTRAN, such as the C or C++, your code may require a FORTRAN shell.nYou need to take care when calling FORTRAN subroutines from C or C++ subroutines. You must use the symbol associated with the FORTRAN subroutine when invoking the subroutine from a C or C++ function. This symbol typically differs slightly from the FORTRAN subroutine name, and is extremely system dependent.nOn many Linux systems, you build this symbol name by taking the FORTRAN subroutine name, converting it to lower case, and appending an underscore. For example, the symbol name for the FORTRAN subroutine HeapInquire would be heapinquire_. You would have to use the symbol heapinquire_ in the invoking C function to avoid an unsatisfied external reference when the program is linked.nKeep in mind that the instance described above is just an example. Compilers from different vendors may construct the symbols differently. Please consult the manuals for your specific compiler for information on how to call FORTRAN subroutines from C or C++ functions.nFor more information on FORTRAN compilers please refer to the installation guide specific to your operating system (ANSYS, Inc. Linux Installation Guide or ANSYS, Inc. Windows Installation Guide).n