Ansys Products

Ansys Products

How can i resolve the fatal error LNK1181: cannot open input file ‘siapp.obj’ ?

    • A2148
      Subscriber

      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,

    • David Weed
      Ansys Employee
      nCan 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.htmlnVisual Studio 2012 (including the MS C++ compiler) and Intel FORTRAN 15.0.7 compilersnAlso, 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.n
    • A2148
      Subscriber
      nHope you are well and thanks for replying to me back. nThe above information was very helpful.nI have one more question, is there any guide book/documentation for UPF in Ansys. Do let me know.nMoreover, I need also help with UPF's code language...nn
    • David Weed
      Ansys Employee
      ,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?n
    • A2148
      Subscriber
      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..? nregardsn n
    • 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
Viewing 5 reply threads
  • You must be logged in to reply to this topic.