November 7, 2019 at 10:28 pmMikeFairSubscriber
We are developing a fairly non-trivial UDF which will likely be including a few of its own external library packages and reused in many Ansys Fluent simulations.
Compiling and debugging this UDF, using the tools within the Fluent GUI, is quickly becoming tiresome and we'd prefer to use a Visual Studio project to manage the code development, compilation, and testing iterations of the UDF DLL as much as we can. Especially since there will be multiple people collaborating on the code development itself (e.g. sharing source code via some source code management repository).
What needs to be done to make this possible?
Given the makefile, use of nmake, and directory structure the Fluent GUI seems to be using, it seems like with a couple appropriately configured settings in a Visual Studio Build Configuration, this could be fairly direct and straight forward to configure.
Specifically, we'd like at a minimum to be able to use Visual Studio for the DLL recompilation to manage code syntax and build errors. We can then use the Fluent GUI to unload/reload the DLL library as we work on it. We've also proven that by turning on the Debugging symbols and attaching to the Fluent process id, we can get dropped into the Debugger to step through the code (so that's good ).
Is there a command line build and working directory we can set up in a VS Project? Has Ansys already created a template project we can modify? Any assistance to get us going in the right direction on how to get this done would be greatly appreciated. We can't imagine we're the only/first people using Fluent in the Ansys community to have wanted/wished/considered doing this, and surprisingly it doesn't seem like this question has been asked before.
In the ideal situation, we could identify a Fluent Case directory to the Visual Studio project and use the Visual Studio "Build/Debug/Run" commands to manage as much of the unloading, rebuilding, reloading of the DLL, and restarting the Solve Calculation in Fluent straight from Visual Studio; I'm not expecting this can be done, but since I'm posting the question, might as well describe the whole scope, in case someone out there actually does have a solution for it.
November 12, 2019 at 2:11 pmRobAnsys Employee
I believe it is possible, as a colleague does this on LINUX, however the "how" isn't something I understand or can outline on here. Assuming you've got a University licence please contact the local support team.
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.
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.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error: Received signal SIGSEGV
© 2023 Copyright ANSYS, Inc. All rights reserved.