October 19, 2018 at 4:33 amsongSubscriber
I want to use binlib.dll in ansys. Therefore, I try to compile ResRdDemo.F against binlib.dll. Both binlib.dll and ResRdDemo.F are copied from Ansys student 19.0.
Environment and compiler are as follows:
compiler: Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on IA-32,
Version 188.8.131.524 Build 20180823
Command 1: ifort ResRdDemo.F binlib.dll
Intel(R) Visual Fortran Intel(R) 64 Compiler for applications running on IA-32,
Version 184.108.40.2064 Build 20180823
Copyright (C) 1985-2018 Intel Corporation. All rights reserved.
ifort: command line warning #10161: unrecognized source type 'binlib.dll'; objec
t file assumed
ResRdDemo.F(5): warning #5117: Bad # preprocessor line
ipo: warning #11010: file format not recognized for c:UsersUserDesktopbaoan
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation. All rights reserved.
ResRdDembj is created, but no executable file exists. But I think the first issue #include "impcom.inc" is caused by no preprocessing option. Then, how about the second problem "binlib.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x368"? Therefore, I introduce option /E, see command 2.
Command 2: ifort /E ResRdDemo.F binlib.dll
no output file is created. I can not see any errors neither.
I want to know this issue is caused by binlib.dll or ifort version issue or others?
Any help or comments are appreciated.
October 19, 2018 at 3:48 pmMike RifeAnsys Employee
The ifort command is missing a lot of flags. Please see the following Help section:
ANSYS 19 Help -> Mechanical APDL -> Programmer's Reference -> I Guide to Interfacing with ANSYS -> Chapter 2.1 Accessing ANSYS Binary Files -> 2.1.1 Access Routines to Results, Substructure, and Matrix Files.
Scroll down to 'On Windows Systems'. There it gives instructions on linking those demonstration files. There are some bat files in the Ansys Install that you can use to compile these. And not use the ifort command directly. Or I suppose you could read through the bat file then update your ifort command usage as needed.
Also the Ansys Student version supports Windows 10 and not 8.1. I believe the website will be updated to reflect this. Plus the compiler version being used does not seem to be supported. See the following for the supported compiler version:
ANSYS Help -> Installation & Licensing Guide -> Windows Installation Guide -> Chapter 2.2. Compiler Requirements for Windows Systems
October 20, 2018 at 5:50 pmsongSubscriber
Thank you for your clear and detailed explanation. I appreciate it. However, I use ansys student 19.0 version. The problem is that ansys student 19.0 version neither have a batch file "rdrwrt.bat" nor "custom" directory. Therefore, I do not know what flags are set in "rdrwrt.bat" or what flags must be set for binlib.dll use. The directory setting of ansys student 19.0 version is as follows:
C:Program FilesANSYS IncANSYS Studentv190ansyscustomizeinclude
C:Program FilesANSYS IncANSYS Studentv190ansyscustomizeuser
Is an ansys student version not allowed to use "rdrwrt.bat" and binlib.dll? If an ansys student version does not allow to use binlib.dll, why is binlib.dll installed?
Any more help or suggestions are appreciated.
October 26, 2018 at 3:42 pmsongSubscriber
thank you, it is solved.
- You must be logged in to reply to this topic.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Saving & sharing of Working project files in .wbpz format
- Understanding Force Convergence Solution Output
- An Unknown error occurred during solution. Check the Solver Output…..
- Solver Pivot Warning in Beam Element Model
- Colors and Mesh Display
- How to calculate the residual stress on a coating by Vickers indentation?
- whether have the difference between using contact and target bodies
- What is the difference between bonded contact region and fixed joint
- The solver engine was unable to converge on a solution for the nonlinear problem as constrained.
- User manual
© 2023 Copyright ANSYS, Inc. All rights reserved.