How can i resolve the fatal error LNK1181: cannot open input file 'siapp.obj' ?
hi,
I'm trying to link the working directory while using the ANSCUST.BAT file for my UPF. I have already installed the correct prerequisites Ansys v19.0, Fortran 17.0 update 4, and VS 2015. But still got this link error. Plz,
recommend anything.
kind regards
Best Answer
-
DavidW Evanston, ILForum Coordinator Posts: 65
Hi @2148A
Can you confirm that you're using ANSYS R19.0? For the Windows OS, the requirements for R19.0 are: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v190/ai_instl/win_compilers.html
Visual Studio 2012 (including the MS C++ compiler) and Intel FORTRAN 15.0.7 compilers
Also, when you install the software items, you should make sure that you install MS VS first then install IFORT; this is so that they can integrate correctly.
Answers
Hi @2148A
Can you confirm that you're using ANSYS R19.0? For the Windows OS, the requirements for R19.0 are: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v190/ai_instl/win_compilers.html
Visual Studio 2012 (including the MS C++ compiler) and Intel FORTRAN 15.0.7 compilers
Also, when you install the software items, you should make sure that you install MS VS first then install IFORT; this is so that they can integrate correctly.
Hi @DavidW
Hope you are well and thanks for replying to me back.
The above information was very helpful.
I have one more question, is there any guide book/documentation for UPF in Ansys. Do let me know.
Moreover, I need also help with UPF's code language...
@2148A, for documentation on ANSYS UPFs, see the Programmers Reference, specifically the Guide to User-Programmable Features: https://ansyshelp.ansys.com/account/secured?returnurl=/Views/Secured/corp/v211/en/ans_prog/Hlp_P_UPFTOC.html. Also, can you let me know what kind of help that you need with the UPF's code language?
@DavidW , can you share the free source of UPF learning and I'm working on creep. I'm sharing one screenshot below, can you tell me about these yellow highlighted words? I have one more question, can we use python for UPF..?
regards
Hi @2148A,
The 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%23UPFimplcrpjwf122099345
The highlighted items are Fortran Boolean logic expressions; see table 8.2 here: http://www.cs.uwm.edu/classes/cs151/Bacon/Lecture/HTML/ch08s03.html
Regarding 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.html
1.5. Programming in Languages Other Than FORTRAN
If 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.
You 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.
On 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.
Keep 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.
For 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).