September 8, 2023 at 6:33 pmJamesSubscriber
I understand that I can use schemes to change parameters that are in my UDF. I have a few questions:
1) How do I define it? In a DEFINE macro in a UDF? In fluent? In a completely different file?
2) The fluent manual suggests that a scheme variable can be defined, for example, (rp-var-define ’pres_av/thread-id 2 ’integer #f). Does it have to be in parentheses?
3) If it is defined in a DEFINE macro, can I access the variable in another DEFINE macro?
4) I am a bit confused with the term "text interface". Does it mean the C compiler like vscode?
September 11, 2023 at 1:43 pmRobAnsys Employee
The TUI (text interface) is the console part and is usually found below the graphics window in the default view.
Scheme and rpvar commands are not something I'd recommend messing with unless you REALLY know what's going to happen. You will need the brackets, apostophies etc and they must be in the correct places. Otherwise they'll either fail, or do something interesting to your model, often both.
September 11, 2023 at 1:54 pmJamesSubscriber
alright thank you
September 11, 2023 at 1:51 pmSRPAnsys Employee
I suggest you to check ansys customization manual on scheme for detail explanation: 3.6.4. Accessing a Scheme Variable in a UDF (ansys.com)
Hope you will find this useful.
- 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.
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Difference between K-epsilon and K-omega Turbulence Model
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Suppress Fluent to open with GUI while performing in journal file
- Mesh Interfaces in ANSYS FLUENT
- Time Step Size and Courant Number
- error: Received signal SIGSEGV
© 2023 Copyright ANSYS, Inc. All rights reserved.