When using ANSYS CFX on Linux/UNIX systems, is it possible to link in extra libraries with User Fortran libraries (e.g. maths libraries)?
June 5, 2023 at 7:05 amFAQParticipant
This is indeed possible, but first a word of warning: If extra libraries are to be linked in this way, it is important that they are object code compatible with the User Fortran shared library. If possible, compile everything from source as the same compiler and compiler options are then used throughout, which is less error prone. First, consider the creation of a User Fortran library without linking any extra libraries, for which a command similar to that shown below would normally be used. This example would create a shared library called ‘library1.so’ from the source files file1.F file2.F and file3.F. cfx5mkext -name library1 file1.F file2.F file3.F If the routines in these files need to call some library functions (for example in libmaths1.a and libmaths2.a), then the library can be linked as follows: cfx5mkext -name library1 file1.F file2.F file3.F libmaths1.a libmaths2.a If the libmaths1.a libmaths2.a are not in the current working directory, then an abolute or relative path may be specified instead. Another, more flexible way of achieving the same result would be to use the -L option. This allows the path to the library files to be specified (in this example /home/fred/lib): cfx5mkext -L/home/fred/lib -name library1 -name library1 file1.F file2.F file3.F -lmaths1 -lmaths2 (Note that there may be more than one instance of -L and that -I can be used in the same way if the #include path needs to be appended to. Also, if it is required to link to system libraries, these can be linked in the same way. e.g. for the gzip library libgz.a, it would be necessary to add -lgz to the command line. The path to system libraries is usually added automatically by cfx5mkext and does not need to be added using the -L option.)
Introducing Ansys Electronics Desktop on Ansys Cloud
The Watch & Learn video article provides an overview of cloud computing from Electronics Desktop and details the product licenses and subscriptions to ANSYS Cloud Service that are...
How to Create a Reflector for a Center High-Mounted Stop Lamp (CHMSL)
This video article demonstrates how to create a reflector for a center high-mounted stop lamp. Optical Part design in Ansys SPEOS enables the design and validation of multiple...
Introducing the GEKO Turbulence Model in Ansys Fluent
The GEKO (GEneralized K-Omega) turbulence model offers a flexible, robust, general-purpose approach to RANS turbulence modeling. Introducing 2 videos: Part 1 provides background information on the model and a...
Postprocessing on Ansys EnSight
This video demonstrates exporting data from Fluent in EnSight Case Gold format, and it reviews the basic postprocessing capabilities of EnSight.
- How can I create a Cell Register from a Cell Zone?
- Left-handed faces troubleshooting
- How to overcome the model information incompatible with incoming mesh error?
- ANSYS Fluent: Introduction to the GEKO Turbulence Model Part I
- Delete or Deactivate Zone in Fluent
- ANSYS System Coupling: Two Way Fluid Structure Interaction – Part 1
- How to create and execute a FLUENT journal file?
- Running Python Script from Workbench
- What are the requirements for an axisymmetric analysis?
- How can I Export and import boxes / Systems from one Workbench Project to another?